Page 1 of 1

SNMP Check not showing warning

Posted: Mon Jun 15, 2015 12:46 pm
by CFT6Server
I have an SNMP check for failed disk count on NetApp controllers. I noticed that I am not getting any warning or critical alerts. The value seems to be fine, but the status is still OK. Perhaps the argument used are wrong?

Code: Select all

# /usr/local/nagios/libexec/check_snmp -H kdcnap10c04mgt -P 2c -c public -t 30 -o enterprises.789.1.6.4.7.0 -w '1' -c '2'
SNMP OK - 1 | NETAPP-MIB::diskFailedCount.0=1;1;2;

# /usr/local/nagios/libexec/check_snmp -H kdcnap10c04mgt -P 2c -c public -t 30 -o enterprises.789.1.6.4.7.0 -c '1'
SNMP OK - 1 | NETAPP-MIB::diskFailedCount.0=1;;1;
advance status.JPG

Re: SNMP Check not showing warning

Posted: Mon Jun 15, 2015 1:10 pm
by ssax
Have you tried just using the numbers instead of the string?

Code: Select all

/usr/local/nagios/libexec/check_snmp -H kdcnap10c04mgt -P 2c -c public -t 30 -o enterprises.789.1.6.4.7.0 -w 1 -c 2
/usr/local/nagios/libexec/check_snmp -H kdcnap10c04mgt -P 2c -c public -t 30 -o enterprises.789.1.6.4.7.0 -c 1

Re: SNMP Check not showing warning

Posted: Mon Jun 15, 2015 2:07 pm
by CFT6Server
Yes I tried those as well. The original configurations was using that and I added the quote to test.

Code: Select all

# /usr/local/nagios/libexec/check_snmp -H kdcnap10c04mgt -P 2c -c public -t 30 -o enterprises.789.1.6.4.7.0 -w 1 -c 2
SNMP OK - 1 | NETAPP-MIB::diskFailedCount.0=1;1;2;

# /usr/local/nagios/libexec/check_snmp -H kdcnap10c04mgt -P 2c -c public -t 30 -o enterprises.789.1.6.4.7.0 -c 1
SNMP OK - 1 | NETAPP-MIB::diskFailedCount.0=1;;1;

Re: SNMP Check not showing warning

Posted: Mon Jun 15, 2015 2:17 pm
by ssax
Try capitalizing the C for the community:

Code: Select all

/usr/local/nagios/libexec/check_snmp -H kdcnap10c04mgt -P 2c -C public -t 30 -o enterprises.789.1.6.4.7.0 -w 1 -c 2
/usr/local/nagios/libexec/check_snmp -H kdcnap10c04mgt -P 2c -C public -t 30 -o enterprises.789.1.6.4.7.0 -c 1

Re: SNMP Check not showing warning

Posted: Mon Jun 15, 2015 2:20 pm
by CFT6Server
No Difference....

Code: Select all

# /usr/local/nagios/libexec/check_snmp -H kdcnap10c04mgt -P 2c -C public -t 30 -o enterprises.789.1.6.4.7.0 -c 1
SNMP OK - 1 | NETAPP-MIB::diskFailedCount.0=1;;1;

# /usr/local/nagios/libexec/check_snmp -H kdcnap10c04mgt -P 2c -C public -t 30 -o enterprises.789.1.6.4.7.0 -w 1 -c 2
SNMP OK - 1 | NETAPP-MIB::diskFailedCount.0=1;1;2;

Re: SNMP Check not showing warning

Posted: Mon Jun 15, 2015 2:43 pm
by ssax
Oh, I think I see the issue:

Code: Select all

/usr/local/nagios/libexec/check_snmp -H kdcnap10c04mgt -P 2c -C public -t 30 -o enterprises.789.1.6.4.7.0 -c 0
The OID that you're looking at really should be 0, it's a total count of number of disks that have failed.

If you only want to warn on one disk being failed and go to critical anything over 1:

Code: Select all

/usr/local/nagios/libexec/check_snmp -H kdcnap10c04mgt -P 2c -C public -t 30 -o enterprises.789.1.6.4.7.0 -w 0 -c 1