Bandwith Graphs show 0/0 in all network hosts.

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
psasines
Posts: 43
Joined: Wed Nov 21, 2018 5:19 am

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

Post 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
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

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

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
psasines
Posts: 43
Joined: Wed Nov 21, 2018 5:19 am

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

Post by psasines »

Hi,

It's worked!!

Thank you a lot for your entire Help.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

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

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
ganderson
Posts: 24
Joined: Tue Feb 05, 2019 1:16 am

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

Post 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?
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

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

Post by tgriep »

Starting a new thread would be best to keep the issues separate.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked