Page 1 of 1

Using Nagios to Monitor CRC Errors

Posted: Thu Aug 22, 2013 11:06 am
by and1100
Hello,

I am trying to have our Nagios monitor CRC errors. On the switch, we were able to run this to see the errors:

Code: Select all

#sh snmp mib walk RMON-MIB::etherStatsCRCAlignErrors
RMON-MIB::etherStatsCRCAlignErrors[1] = Counter32: 0 Packets
RMON-MIB::etherStatsCRCAlignErrors[2] = Counter32: 0 Packets
RMON-MIB::etherStatsCRCAlignErrors[3] = Counter32: 0 Packets
RMON-MIB::etherStatsCRCAlignErrors[4] = Counter32: 0 Packets
RMON-MIB::etherStatsCRCAlignErrors[5] = Counter32: 0 Packets
RMON-MIB::etherStatsCRCAlignErrors[6] = Counter32: 0 Packets
RMON-MIB::etherStatsCRCAlignErrors[7] = Counter32: 0 Packets
RMON-MIB::etherStatsCRCAlignErrors[8] = Counter32: 0 Packets
RMON-MIB::etherStatsCRCAlignErrors[9] = Counter32: 0 Packets
RMON-MIB::etherStatsCRCAlignErrors[10] = Counter32: 0 Packets
RMON-MIB::etherStatsCRCAlignErrors[11] = Counter32: 0 Packets
RMON-MIB::etherStatsCRCAlignErrors[12] = Counter32: 0 Packets
RMON-MIB::etherStatsCRCAlignErrors[13] = Counter32: 0 Packets
RMON-MIB::etherStatsCRCAlignErrors[14] = Counter32: 0 Packets
RMON-MIB::etherStatsCRCAlignErrors[15] = Counter32: 0 Packets
RMON-MIB::etherStatsCRCAlignErrors[16] = Counter32: 0 Packets
RMON-MIB::etherStatsCRCAlignErrors[17] = Counter32: 0 Packets
RMON-MIB::etherStatsCRCAlignErrors[18] = Counter32: 0 Packets
RMON-MIB::etherStatsCRCAlignErrors[19] = Counter32: 2 Packets
RMON-MIB::etherStatsCRCAlignErrors[20] = Counter32: 0 Packets
RMON-MIB::etherStatsCRCAlignErrors[21] = Counter32: 0 Packets
RMON-MIB::etherStatsCRCAlignErrors[22] = Counter32: 0 Packets
RMON-MIB::etherStatsCRCAlignErrors[23] = Counter32: 0 Packets
RMON-MIB::etherStatsCRCAlignErrors[24] = Counter32: 0 Packets
RMON-MIB::etherStatsCRCAlignErrors[97] = Counter32: 0 Packets
RMON-MIB::etherStatsCRCAlignErrors[98] = Counter32: 0 Packets
When I use the following on check_snmp I receive:

Code: Select all

./check_snmp -H 10.10.x.x -P 2c -C secret -o ifOperStatus.2 -r 1 -m RFC1213-MIB
SNMP OK - up(1) |
I don't believe this is working as hoped -- I feel it is just checking the status of the interface. When I run it on an interface that IS down/not connected...

Code: Select all

./check_snmp -H 10.10.x.x -P 2c -C secret -o ifOperStatus.4 -r 1 -m RFC1213-MIB
SNMP CRITICAL - *down(2)* |
Can anyone shed some light on why the -m is not functioning properly?

Thank you.

Re: Using Nagios to Monitor CRC Errors

Posted: Thu Aug 22, 2013 1:49 pm
by sreinhardt
The problem, lies in that you are specifying the ifOperstatus oid, which simply checks if the port is up or down. You want to be checking RMON-MIB::etherStatsCRCAlignErrors just like you did in the walk. I am not sure if you can specify it as I just stated, or if you need to find the specific shortname or use full oid, however the first step is definitely changing the -o flag.

Re: Using Nagios to Monitor CRC Errors

Posted: Thu Aug 22, 2013 2:29 pm
by and1100
Hi,

Thank you for the reply.

I will try to located the OID and run it. It appears to be a bit more difficult to track down then I thought.

Thanks.

Re: Using Nagios to Monitor CRC Errors

Posted: Thu Aug 22, 2013 3:12 pm
by abrist
Best of luck. Let us know if you have continued problems.

Re: Using Nagios to Monitor CRC Errors

Posted: Fri Aug 23, 2013 1:01 pm
by and1100
Hi,

I believe I have the correct OID but I am still having issues:

Code: Select all

./check_snmp -H 10.10.x.x -P 2c -C secret -o 1.3.6.1.2.1.16.1.1.1.8
SNMP OK -  = No Such Instance currently exists at this OID |
After some digging I believe that this is the correct OID. Is there something am missing or is it simply stating it does not exist?

Re: Using Nagios to Monitor CRC Errors

Posted: Fri Aug 23, 2013 1:23 pm
by sreinhardt
Could you post the RFC1213-MIB mib? Also, are you certain that the device you are using supports snmp checking of the crc counter? What model and manufacturer is it?

Re: Using Nagios to Monitor CRC Errors

Posted: Fri Aug 23, 2013 1:46 pm
by and1100
Hello,

Here is it ran on the switch (Arista DCS-7124SX):

switch-5#sh snmp mib walk RMON-MIB::etherStatsCRCAlignErrors
RMON-MIB::etherStatsCRCAlignErrors[1] = Counter32: 0 Packets
RMON-MIB::etherStatsCRCAlignErrors[2] = Counter32: 0 Packets
RMON-MIB::etherStatsCRCAlignErrors[3] = Counter32: 1 Packets
RMON-MIB::etherStatsCRCAlignErrors[4] = Counter32: 0 Packets
RMON-MIB::etherStatsCRCAlignErrors[5] = Counter32: 0 Packets
RMON-MIB::etherStatsCRCAlignErrors[6] = Counter32: 0 Packets
RMON-MIB::etherStatsCRCAlignErrors[7] = Counter32: 0 Packets
RMON-MIB::etherStatsCRCAlignErrors[8] = Counter32: 0 Packets
RMON-MIB::etherStatsCRCAlignErrors[9] = Counter32: 0 Packets
RMON-MIB::etherStatsCRCAlignErrors[10] = Counter32: 0 Packets
RMON-MIB::etherStatsCRCAlignErrors[11] = Counter32: 0 Packets
RMON-MIB::etherStatsCRCAlignErrors[12] = Counter32: 0 Packets
RMON-MIB::etherStatsCRCAlignErrors[13] = Counter32: 0 Packets
RMON-MIB::etherStatsCRCAlignErrors[14] = Counter32: 0 Packets
RMON-MIB::etherStatsCRCAlignErrors[15] = Counter32: 0 Packets
RMON-MIB::etherStatsCRCAlignErrors[16] = Counter32: 0 Packets
RMON-MIB::etherStatsCRCAlignErrors[17] = Counter32: 0 Packets
RMON-MIB::etherStatsCRCAlignErrors[18] = Counter32: 0 Packets
RMON-MIB::etherStatsCRCAlignErrors[19] = Counter32: 0 Packets
RMON-MIB::etherStatsCRCAlignErrors[20] = Counter32: 0 Packets
RMON-MIB::etherStatsCRCAlignErrors[21] = Counter32: 0 Packets
RMON-MIB::etherStatsCRCAlignErrors[22] = Counter32: 0 Packets
RMON-MIB::etherStatsCRCAlignErrors[23] = Counter32: 0 Packets
RMON-MIB::etherStatsCRCAlignErrors[24] = Counter32: 0 Packets

Re: Using Nagios to Monitor CRC Errors

Posted: Fri Aug 23, 2013 1:58 pm
by sreinhardt
OK, this does state that your device supports the crc checks, however it is not the mib needed. The mib, would be the file installed on your nagios machine to interpret the oids as shortnames as you just showed. You might also try:

Code: Select all

./check_snmp -H 10.10.x.x -P 2c -C secret -o RMON-MIB::etherStatsCRCAlignErrors[1]
or
./check_snmp -H 10.10.x.x -P 2c -C secret -o RMON-MIB::etherStatsCRCAlignErrors.1

Re: Using Nagios to Monitor CRC Errors

Posted: Fri Aug 23, 2013 2:29 pm
by and1100
Hi,

Awesome, that worked as desired!


./check_snmp -H 10.10.x.x -P 2c -C secret -o RMON-MIB::etherStatsCRCAlignErrors.1 -r 0
SNMP OK - 0 Packets | RMON-MIB::etherStatsCRCAlignErrors.1=0c


./check_snmp -H 10.10.x.x -P 2c -C secret -o RMON-MIB::etherStatsCRCAlignErrors.3 -r 0
SNMP CRITICAL - *1 Packets* | RMON-MIB::etherStatsCRCAlignErrors.3=1c

Thank you very much! I will try to code it into the cfgs and see if I have any issues.

Re: Using Nagios to Monitor CRC Errors

Posted: Fri Aug 23, 2013 2:34 pm
by sreinhardt
Perfect! Good luck and let us know if there are other issues. I'll lock this up then.