Page 1 of 1

Router interface counters working but nagios shows 0.

Posted: Tue Aug 27, 2019 9:54 am
by vijilants
Nagios XI version: 5.6.5
XI installed from: manual
XI UUID: 1a0c8662-0bed-4b2e-8b4b-d8409007c87d
Release info: cedarnms1 3.10.0-957.5.1.el7.x86_64 x86_64
CentOS Linux release 7.6.1810 (Core)
Gnome is not installed

Hi,

Can someone please advise to fix this issue.

I am polling a router interface for bandwidth but on nagios it shows 0. However if I manually poll it from the system from a linux prompt, it shows octets populating.

All other interfaces appear to work apart from this one. Can someone advise on how to fix this ?

Thanks

Here is the nagios output:
nagios@cedarnms1 ~]$ /usr/local/nagios/libexec/check_rrdtraf -f /var/lib/mrtg/192.168.44.4_9.rrd -w 45.00,45.00 -c 47.50,47.50 -l M
OK - Current BW in: 0Mbps Out: 0Mbps|in=0Mb/s;45.00;47.50 out=0Mb/s;45.00;47.50
Here is the maual poll:
[XXX@cedarnms1 ~]$ snmpwalk 192.168.44.4 -v 2c -c XXXXXXXX .1.3.6.1.2.1.2.2.1.16.9
IF-MIB::ifOutOctets.9 = Counter32: 611336352

Re: Router interface counters working but nagios shows 0.

Posted: Tue Aug 27, 2019 10:23 am
by scottwilkerson
Is the manual poll incriminating significantly between polls? I ask because showing octets doesn't mean there is much traffic currently

Re: Router interface counters working but nagios shows 0.

Posted: Tue Aug 27, 2019 10:24 am
by scottwilkerson
Also, lets verify that the RRD is getting updated by checking the timestamp

Code: Select all

ls -al /var/lib/mrtg/192.168.44.4_9.rrd

Re: Router interface counters working but nagios shows 0.

Posted: Tue Aug 27, 2019 11:03 am
by vijilants
There is approx 57mbs of continuous traffic running through the interface.

However this has suddenly burst in to life. I have had this before and I can't figure it out.

Here are the results you requested:

Code: Select all

-rw-rw-r-- 1 apache nagios 105312 Aug 27 11:54 /var/lib/mrtg/192.168.44.4_9.rrd
Here is the latest command output:

Code: Select all

[nagios@cedarnms1 ~]$ /usr/local/nagios/libexec/check_rrdtraf -f /var/lib/mrtg/192.168.44.4_9.rrd -w 70.00,70.00 -c 80.80,80.80 -l M
OK - Current BW in: 56.92Mbps Out: 56.77Mbps|in=56.926422Mb/s;70.00;80.80 out=56.773702Mb/s;70.00;80.80

Re: Router interface counters working but nagios shows 0.

Posted: Tue Aug 27, 2019 11:18 am
by scottwilkerson
With it working now it is going to be hard to debug.

The rrd is updated by MRTG, if it happens again it would be interesting to see the results of manually running the MRTG command to see if you get any errors

Code: Select all

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