I added some new routers and switches to our monitoring setup using the router/switch wizard in XI (v 5.5.9), but I can only get bandwidth information from the Routers. On the routers I get status info *and* bandwidth information. However, my new switches all show bandwidth OK but don't give me any values.
I have quite a few other switches that are reporting correctly, it's just these new ones that are causing a problem. Their config settings are identical, their hardware is identical, and other stuff at the same site is working. I'm using SNMP v3 via the check_xi-service_mrtgtraf check which is working elsewhere.
My check command looks like this:
$ /usr/local/nagios/libexec/check_rrdtraf -f /var/lib/mrtg/s212dists.n_112.rrd -w 19000.00,19000.00 -c 20000.00,20000.00 -l M
OK - Current BW in: 0Mbps Out: 0Mbps|in=0Mb/s;19000.00;20000.00 out=0Mb/s;19000.00;20000.00
What am I missing?
Unable to get Bandwidth values on new devices
-
Matthew.Cary
- Posts: 32
- Joined: Fri Nov 10, 2017 11:43 am
-
npolovenko
- Support Tech
- Posts: 3457
- Joined: Mon May 15, 2017 5:00 pm
Re: Unable to get Bandwidth values on new devices
Hello, @Matthew.Cary. It could be that new devices have a very little bandwidth and so check_rrdtraf is rounding it to 0 Megabytes.
Please open the following cron /etc/cron.d/mrtg and change it to:
Please open the following cron /etc/cron.d/mrtg and change it to:
*/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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
-
Matthew.Cary
- Posts: 32
- Joined: Fri Nov 10, 2017 11:43 am
Re: Unable to get Bandwidth values on new devices
To confirm: I should remove the --user=xxxx and --group=xxxx from the end of that line?
Otherwise my file already looks exactly like what you posted
Otherwise my file already looks exactly like what you posted
-
npolovenko
- Support Tech
- Posts: 3457
- Joined: Mon May 15, 2017 5:00 pm
Re: Unable to get Bandwidth values on new devices
@Matthew.Cary, Yes, please do. And then run:
service crond restart
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
-
Matthew.Cary
- Posts: 32
- Joined: Fri Nov 10, 2017 11:43 am
Re: Unable to get Bandwidth values on new devices
It took some time, but that appears to have eventually fixed the issue.
Out of curiosity, why was the name and usergroup causing the issue?
Out of curiosity, why was the name and usergroup causing the issue?
-
npolovenko
- Support Tech
- Posts: 3457
- Joined: Mon May 15, 2017 5:00 pm
Re: Unable to get Bandwidth values on new devices
@Matthew.Cary, We added a security feature in the latest version of XI to run mrtg cron as the nagios user. In the past it used to run as root. However, some users encountered problems where mrtg stopped updating after this change and we're still looking into the cause. In the meantime, deleting nagios user allows the mrtg cron to run as in previous versions.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.