[mrtg] MRTG multiple processes

Pavel Ruzicka pavouk at pavouk.org
Thu Mar 18 18:22:28 CET 2010


Hi Matt,

thank you very mych for reply. I will look at script, if it is the right
solution for me :-)

Pavel

> > Hello,
> 
> I have troubles, when MRTG have unaccesible more boxes and doesn't
> 
> > end
> 
> in 5 minutes interval.
> 
> Hi Pavel,
> 
> I found the lockfile handling in MRTG to be woefully inadequate, so
> I wrote a wrapper for MRTG that does more robust device locking
> and checking to make sure the system load on the box doesn't
> go too high; then I just call the wrapper script in my crontab entries,
> rather than the mrtg script itself, like this--I use a separate config
> file for each device, and then have a separate line in the crontab file
> for each device:
> 
> #
> 0-59/5 * * * * /home/mrtg/scripts/mrtg.wrapper /home/mrtg/cfg/pat1.dee.cfg
> 0-59/5 * * * * /home/mrtg/scripts/mrtg.wrapper /home/mrtg/cfg/pat2.dee.cfg
> #
> 
> 
> And here's my wrapper script--feel free to hack it up into something
> that works for you.  ^_^;
> 
> Matt



More information about the mrtg mailing list