SNMP router graphing

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
dwatson
Posts: 18
Joined: Mon Oct 24, 2011 9:43 pm

SNMP router graphing

Post by dwatson »

HI
I have Nagios XI VM installed and up and running that is montioring srevers etc fine.
I also have setup SNMP on all the site routers to monitor uptime, bandwidth etc.

Out of 30+ routers, only 3 of the routers are graphing for some reason. I have checked SNMP by doing a SNMPwalk to the router and the counters are increasing.

See below-
[root@sysmon libexec]# snmpwalk -c "public" -v 2c 10.11.8.1 ifInOctets.1
IF-MIB::ifInOctets.1 = Counter32: 947012794

I have added the host and it finds the interfaces fine when using the config wizard, but when I run a check_rrdtraf, it only reports 0bps... See below

[root@sysmon libexec]# ./check_rrdtraf -f '/var/lib/mrtg/10.11.8.1_1.rrd' -w 1 -c 2
OK - Current BW in: 0bps Out: 0bps|in=0b/s;1;2 out=0b/s;1;2

This is however working on 3 routers which are the same router and have the similar config.

working router

[root@sysmon libexec]# snmpwalk -c "public" -v 2c 10.11.33.1 ifInOctets.1
IF-MIB::ifInOctets.1 = Counter32: 634929203


[root@lsysmon libexec]# ./check_rrdtraf -f '/var/lib/mrtg/10.11.33.1_1.rrd' -w 1 -c 2
CRITICAL - Current BW in: 290.11Kbps Out: 181.48Kbps|in=290.117433Kb/s;1;2 out=181.486951Kb/s;1;2
You have new mail in /var/spool/mail/root


With the walk showing the counter incrementing and some routers working, i think it must be something to do with Nagios XI.

can someone please help?

thanks in adavance

David
User avatar
nscott
Posts: 1040
Joined: Wed May 11, 2011 8:54 am

Re: SNMP router graphing

Post by nscott »

What do you get when you do this:

[code}cat /etc/mrtg/mrtg.confg | grep '2c'[/code]
Nicholas Scott
Former Nagios employee
dwatson
Posts: 18
Joined: Mon Oct 24, 2011 9:43 pm

Re: SNMP router graphing

Post by dwatson »

Hi Nicholas

I get alot of output, i had to trim the below, but have attached the output in a txt file


# /usr/bin/cfgmaker --show-op-down --zero-speed=100000000 --snmp-options=:::::2c --noreversedns flpcpublic@flpcstlrb01
Target[flpcstlrb01_1]: 1:flpcpublic@flpcstlrb01:::::2c
Target[flpcstlrb01_2]: 2:flpcpublic@flpcstlrb01:::::2c
Target[flpcstlrb01_3]: 3:flpcpublic@flpcstlrb01:::::2c
Target[flpcstlrb01_4]: 4:flpcpublic@flpcstlrb01:::::2c
# Target[flpcstlrb01_5]: 5:flpcpublic@flpcstlrb01:::::2c
Target[flpcstlrb01_6]: 6:flpcpublic@flpcstlrb01:::::2c
# /usr/bin/cfgmaker --show-op-down --zero-speed=4000000 --snmp-options=:::::2c --noreversedns netmon@10.11.8.1
Target[10.11.8.1_1]: 1:netmon@10.11.8.1:::::2c
Target[10.11.8.1_2]: 2:netmon@10.11.8.1:::::2c
# Target[10.11.8.1_3]: 3:netmon@10.11.8.1:::::2c
# /usr/bin/cfgmaker --show-op-down --zero-speed=4000000 --snmp-options=:::::2c --noreversedns netmon@10.11.40.1
Target[10.11.40.1_1]: 1:netmon@10.11.40.1:::::2c
Target[10.11.40.1_2]: 2:netmon@10.11.40.1:::::2c
# Target[10.11.40.1_3]: 3:netmon@10.11.40.1:::::2c
# /usr/bin/cfgmaker --show-op-down --zero-speed=100000000 --snmp-options=:::::2c --noreversedns netmon@10.11.42.1
# System: fsrgyr02c18.ims.isp.com
Target[10.11.42.1_1]: 1:netmon@10.11.42.1:::::2c
Title[10.11.42.1_1]: Traffic Analysis for 1 -- fsrgyr02c18.ims.isp.com
PageTop[10.11.42.1_1]: <h1>Traffic Analysis for 1 -- fsrgyr02c18.ims.isp.com</h1>
<td>fsrgyr02c18.ims.isp.com in REG </td>
Target[10.11.42.1_2]: 2:netmon@10.11.42.1:::::2c
Title[10.11.42.1_2]: Traffic Analysis for 2 -- fsrgyr02c18.ims.isp.com
PageTop[10.11.42.1_2]: <h1>Traffic Analysis for 2 -- fsrgyr02c18.ims.isp.com</h1>
<td>fsrgyr02c18.ims.isp.com in REG </td>
Target[10.11.42.1_3]: 3:netmon@10.11.42.1:::::2c
Title[10.11.42.1_3]: Traffic Analysis for 3 -- fsrgyr02c18.ims.isp.com
PageTop[10.11.42.1_3]: <h1>Traffic Analysis for 3 -- fsrgyr02c18.ims.isp.com</h1>
<td>fsrgyr02c18.ims.isp.com in REG </td>
# Target[10.11.42.1_4]: 4:netmon@10.11.42.1:::::2c
# Title[10.11.42.1_4]: Traffic Analysis for 4 -- fsrgyr02c18.ims.isp.com
# PageTop[10.11.42.1_4]: <h1>Traffic Analysis for 4 -- fsrgyr02c18.ims.isp.com</h1>
# <td>fsrgyr02c18.ims.isp.com in REG </td>
# Target[10.11.42.1_5]: 5:netmon@10.11.42.1:::::2c
# Title[10.11.42.1_5]: Traffic Analysis for 5 -- fsrgyr02c18.ims.isp.com
# PageTop[10.11.42.1_5]: <h1>Traffic Analysis for 5 -- fsrgyr02c18.ims.isp.com</h1>
# <td>fsrgyr02c18.ims.isp.com in REG </td>
# /usr/bin/cfgmaker --show-op-down --zero-speed=100000000 --snmp-options=:::::2c --noreversedns netmon@10.11.38.1
# /usr/bin/cfgmaker --show-op-down --zero-speed=100000000 --snmp-options=:::::2c --noreversedns netmon@10.11.45.65
Target[10.11.45.65_1]: 1:netmon@10.11.45.65:::::2c
Target[10.11.45.65_2]: 2:netmon@10.11.45.65:::::2c
Target[10.11.45.65_3]: 3:netmon@10.11.45.65:::::2c
# Target[10.11.45.65_4]: 4:netmon@10.11.45.65:::::2c
# Target[10.11.45.65_5]: 5:netmon@10.11.45.65:::::2c
Title[10.11.38.65_3]: Traffic Analysis for 3 -- fqglcr02c18.ims.isp.com# Target[10.9.31.1_9]: 9:netmon@10.9.31.1:::::2c
# Target[10.9.31.1_10]: 10:netmon@10.9.31.1:::::2c
# Target[10.9.31.1_11]: 11:netmon@10.9.31.1:::::2c
Target[10.9.31.1_12]: 12:netmon@10.9.31.1:::::2c
Target[10.9.31.1_13]: 13:netmon@10.9.31.1:::::2c
Target[10.9.31.1_14]: 14:netmon@10.9.31.1:::::2c


the funny thing is, the routers that are reporting are not in this list. 10.11.33.1
You do not have the required permissions to view the files attached to this post.
User avatar
nscott
Posts: 1040
Joined: Wed May 11, 2011 8:54 am

Re: SNMP router graphing

Post by nscott »

Yeah the fix for this is quick:

Code: Select all

cp /etc/mrtg/mrtg.cfg /etc/mrtg/mrtg.cfg.bkp
sed 's/2c/2/g' /etc/mrtg/mrtg.cfg -i
Then your graphs will start populating, it may take 20 to 30 minutes for the change to be noticeable.
Nicholas Scott
Former Nagios employee
dwatson
Posts: 18
Joined: Mon Oct 24, 2011 9:43 pm

Re: SNMP router graphing

Post by dwatson »

thanks, that has resolved my issue