Using Nagios to Monitor CRC Errors

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
and1100
Posts: 93
Joined: Mon Mar 25, 2013 8:37 am

Using Nagios to Monitor CRC Errors

Post 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.
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Using Nagios to Monitor CRC Errors

Post 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.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
and1100
Posts: 93
Joined: Mon Mar 25, 2013 8:37 am

Re: Using Nagios to Monitor CRC Errors

Post 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.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Using Nagios to Monitor CRC Errors

Post by abrist »

Best of luck. Let us know if you have continued problems.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
and1100
Posts: 93
Joined: Mon Mar 25, 2013 8:37 am

Re: Using Nagios to Monitor CRC Errors

Post 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?
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Using Nagios to Monitor CRC Errors

Post 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?
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
and1100
Posts: 93
Joined: Mon Mar 25, 2013 8:37 am

Re: Using Nagios to Monitor CRC Errors

Post 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
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Using Nagios to Monitor CRC Errors

Post 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
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
and1100
Posts: 93
Joined: Mon Mar 25, 2013 8:37 am

Re: Using Nagios to Monitor CRC Errors

Post 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.
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Using Nagios to Monitor CRC Errors

Post by sreinhardt »

Perfect! Good luck and let us know if there are other issues. I'll lock this up then.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Locked