SNMP Check not showing warning

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
CFT6Server
Posts: 506
Joined: Wed Apr 15, 2015 4:21 pm

SNMP Check not showing warning

Post 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
You do not have the required permissions to view the files attached to this post.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: SNMP Check not showing warning

Post 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
CFT6Server
Posts: 506
Joined: Wed Apr 15, 2015 4:21 pm

Re: SNMP Check not showing warning

Post 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;
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: SNMP Check not showing warning

Post 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
CFT6Server
Posts: 506
Joined: Wed Apr 15, 2015 4:21 pm

Re: SNMP Check not showing warning

Post 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;
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: SNMP Check not showing warning

Post 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
Locked