Page 4 of 4

Re: Bandwith Graphs show 0/0 in all network hosts.

Posted: Mon Feb 04, 2019 7:05 am
by psasines
Hi,

I ran these all commands, however it did not work.
After running these commands I added a new device with SNMPv3 and the graphics still do not generate data in the bandwidth

Re: Bandwith Graphs show 0/0 in all network hosts.

Posted: Mon Feb 04, 2019 1:07 pm
by tgriep
Maybe it is a permission problem with some of the files as all of the tests seem to work running as root.
Lets change how the MRTG application runs.

Edit the /etc/cron.d/mrtg file and change this line from

Code: Select all

*/5 * * * * root LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg --lock-file /var/lib/mrtg/mrtg.lock --confcache-file /var/lib/mrtg/mrtg.ok --user=nagios --group=nagios
to

Code: Select all

*/5 * * * * root LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg --lock-file /var/lib/mrtg/mrtg.lock --confcache-file /var/lib/mrtg/mrtg.ok
Save the change and restart cron by running
service crond restart

Wait for 20 minutes and see if you start to see the bandwidth.

Re: Bandwith Graphs show 0/0 in all network hosts.

Posted: Tue Feb 05, 2019 5:55 am
by psasines
Hi,

It's worked!!

Thank you a lot for your entire Help.

Re: Bandwith Graphs show 0/0 in all network hosts.

Posted: Tue Feb 05, 2019 10:27 am
by tgriep
That is good news that it is working now. Let us know if it is OK to lock the post for you as solved.

Re: Bandwith Graphs show 0/0 in all network hosts.

Posted: Wed Feb 06, 2019 3:19 am
by ganderson
I have been stalking this topic...now that the original user is happy, can I continue this thread?

Our environment also ran with improved reliability when running MRTG as an root, but it is still a bit ... unreliable. But either way, I don't really want to run MRTG as root - this server has secrets that need to be protected, and I consider the risks too high...

Do I need to start another thread?

Re: Bandwith Graphs show 0/0 in all network hosts.

Posted: Wed Feb 06, 2019 9:37 am
by tgriep
Starting a new thread would be best to keep the issues separate.