Re: MRTG Graphs not Refreshing

"Courtney, Wrolf" <[email protected]>
Newsgroups gmane.network.mrtg.user
Message-ID <C22DA43300E0E24F8BCA9A53CE460F2E24111338@NYCT2BWYEXMB01.transit.nyct.com>
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]
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.