[mrtg] MRTG Graphs not Refreshing

Courtney, Wrolf Wrolf.Courtney at mtahq.org
Tue Dec 30 22:43:11 CET 2014


You shouldn't have RunAsDaemon and have MRTG in crontab.

Wrolf

From: Mohammad Hassan [mailto:Mohammad.Hassan at hughes.com]
Sent: Tuesday, December 30, 2014 4:21 PM
To: Courtney, Wrolf; mrtg at lists.oetiker.ch
Subject: RE: MRTG Graphs not Refreshing

I have one index.html file because I only have one .cfg file for all the routers. I didn't setup the mrtg on this box, but it seems all the created .cfgs for each router were concated to one file and are being run with "RunAsDaemon: Yes"

<Router_Name> is just a placeholder for the actual router cfg file. I didn't specify the name for security purposes.


From: mrtg [mailto:mrtg-bounces+mohammad.hassan=hughes.com at lists.oetiker.ch] On Behalf Of Courtney, Wrolf
Sent: Tuesday, December 30, 2014 4:16 PM
To: mrtg at lists.oetiker.ch<mailto:mrtg at lists.oetiker.ch>
Subject: Re: [mrtg] MRTG Graphs not Refreshing

OK, the interface stats are incrementing, MRTG should be picking that up.

Do you have just one router to create an index.html for? I notice you have -output=/var/www/html/mrtg/index.html, I have a separate index.html for each router I monitor.

Also, what is on your cfgmaker command line (in <Router_Name>.cfg)?

Wrolf

From: Mohammad Hassan [mailto:Mohammad.Hassan at hughes.com]
Sent: Tuesday, December 30, 2014 4:05 PM
To: Courtney, Wrolf; mrtg at lists.oetiker.ch<mailto:mrtg at lists.oetiker.ch>
Subject: RE: MRTG Graphs not Refreshing

Wrolf,

Thanks. Here are the results:

Looks like they are increasing. Also, they were being polled before I reran the following after deleting the .pid file and all files (including .html and and index in /var/www/html/mrtg"

*/5 * * * * env LANG=C /usr/local/mrtg-2/bin/mrtg /etc/mrtg/<Router_Name>.cfg
./indexmaker --output=/var/www/html/mrtg/index.html /etc/mrtg/<Router_Name>.cfg

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.oetiker.ch/pipermail/mrtg/attachments/20141230/b6eada22/attachment-0001.html>


More information about the mrtg mailing list