Maybe it is something in your .cfg file - maybe if you post it we will see 
something.

Wrolf

From: Mohammad Hassan [mailto:[email protected]]
Sent: Tuesday, December 30, 2014 4:44 PM
To: Courtney, Wrolf; [email protected]
Subject: RE: MRTG Graphs not Refreshing

I apologize, that should have been:
env LANG=C /usr/local/mrtg-2/bin/mrtg /etc/mrtg/<Router_Name>.cfg

And not:
*/5 * * * * env LANG=C /usr/local/mrtg-2/bin/mrtg /etc/mrtg/<Router_Name>.cfg

It is not in crontab.

From: Courtney, Wrolf [mailto:[email protected]]
Sent: Tuesday, December 30, 2014 4:43 PM
To: Mohammad Hassan; [email protected]<mailto:[email protected]>
Subject: RE: MRTG Graphs not Refreshing

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

Wrolf

From: Mohammad Hassan [mailto:[email protected]]
Sent: Tuesday, December 30, 2014 4:21 PM
To: Courtney, Wrolf; [email protected]<mailto:[email protected]>
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:[email protected]] On 
Behalf Of Courtney, Wrolf
Sent: Tuesday, December 30, 2014 4:16 PM
To: [email protected]<mailto:[email protected]>
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:[email protected]]
Sent: Tuesday, December 30, 2014 4:05 PM
To: Courtney, Wrolf; [email protected]<mailto:[email protected]>
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

_______________________________________________
mrtg mailing list
[email protected]
https://lists.oetiker.ch/cgi-bin/listinfo/mrtg

Reply via email to