crontab versus deamon

interfasys

Verified User
Joined
Oct 31, 2003
Messages
2,099
Location
Switzerland
I can't make up my mind about whether I should run MRTG as a deamon or with the help of a cron job.

I guess there are other applications that can also be run both ways.

So which is better for 5 minutes interval readings? Does it make a difference?
 

DirectAdmin Support

Administrator
Staff member
Joined
Feb 27, 2003
Messages
9,051
In *my* opinion, I would run it as a cron job. That way, you don't have to worry if its running at all. I was faced with the same problem when designing the task queue, and the cron job won out, as the crond is rock solid, and is nice enough to email you when anything is outputted. Also, since mrtg will be completely idle for 5 minutes at a time, it doesn't make much sense to have it sitting in memory, just twiddling it's fingers ;) ... Just my 2 cents, I'm sure there are other opinions out there.

John
 

The Prohacker

Verified User
Joined
May 23, 2003
Messages
142
It depends on usage.. If your only polling a few sources.. Then cron it.. Its much easier..

Now if your polling a few hundred ports via SNMP it can be useful to run it as a daemon to save resources...
 
Top