[mrtg] Re: mrtg showing very high cpu usage cause of other apprunning
james
hackerwacker at cybermesa.com
Fri Sep 5 05:32:36 MEST 2003
>
> - Make the file executable.
I don't this you have to make the config executable
>
> Am I right ?
Looks good
>
> How do I run it though ?
Try my nasty start script:
#! /bin/sh
kill `cat /home/mrtg/mrtg.pid`
rm -f /home/mrtg/mrtg.pid
/usr/bin/perl -w /usr/local/mrtg-2/bin/mrtg /home/mrtg/mrtg.cfg\
--logging /var/log/mrtg.log
> And what happens if the daemon fails ?
Run this script as a cron every 4 hours. I do this so my graphs are
synced with NTP time. I do not find MRTG ever fails, though.
Or write a script to check the pid every <whatever> mins, restart if
pid not present.
> Any other "gotchas" ?
been running MRTG this way for 2 years, no gotchas I can think of.
>
> Thanks again @!
>
> Regards,
--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive http://www.ee.ethz.ch/~slist/mrtg
FAQ http://faq.mrtg.org Homepage http://www.mrtg.org
WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
More information about the mrtg
mailing list