Page 1 of 2

problem snmp netapp

Posted: Tue Mar 01, 2016 10:02 am
by andressete
Hi everybody;

I´m trying to monitoring a NetApp FAS8040, I have the oid list, and the MIB.

I'm using check_snmp like:
./check_snmp -C community -P 2c -H netappname -o sysUpTime.0 ... and it works ok, reply SNMP OK - Timeticks: (1760790603) 203 days, 19:05:06.03

But when I try monitoring the oid diskFailedShutdown (.1.3.6.1.4.1.789.0.21) o diskFailed (.1.3.6.1.4.1.789.0.22) and I specific the MIB, like:

./check_snmp -C community -P 2c -H netappname -o .1.3.6.1.4.1.789.0.22 -m /tmp/netapp.mib .. reply: SNMP OK - Such Object available on this agent at this OID .... and the status is NO OK. I have put the MIB in /usr/share/snmp/mibs/ .. and the same reply

I am very grateful for any help
Best regards

Re: problem snmp netapp

Posted: Tue Mar 01, 2016 5:49 pm
by tgriep
Can you run the following commands and post the output?

Code: Select all

./check_snmp -C community -P 2c -H netappname -o .1.3.6.1.4.1.789.0.22 -m all
snmptranslate -Td .1.3.6.1.4.1.789.0.22
ls -l /usr/share/snmp/mibs
Just checking to see if the OID is found and if the MIB files have the right permissions.

Re: problem snmp netapp

Posted: Wed Mar 02, 2016 2:09 am
by andressete
yes, of course:

./check_snmp -C public -P community -H netappname -o .1.3.6.1.4.1.789.0.22 -m all .. reply --> SNMP OK - Such Object available on this agent at this OID


snmptranslate -Td .1.3.6.1.4.1.789.0.22 .. reply:

SNMPv2-SMI::enterprises.789.0.22
enterprises OBJECT-TYPE
-- FROM SNMPv2-SMI, RFC1155-SMI
::= { iso(1) org(3) dod(6) internet(1) private(4) enterprises(1) 789 0 22 }

ls -l /usr/share/snmp/mibs

-rw-r--r--. 1 root nagios 17455 Oct 10 2012 AGENTX-MIB.txt
-rw-r--r--. 1 root nagios 50948 Oct 10 2012 BRIDGE-MIB.txt
-rw-r--r--. 1 root nagios 68104 Oct 10 2012 DISMAN-EVENT-MIB.txt
-rw-r--r--. 1 root nagios 24613 Oct 10 2012 DISMAN-SCHEDULE-MIB.txt
-rw-r--r--. 1 root nagios 64311 Oct 10 2012 DISMAN-SCRIPT-MIB.txt
-rw-r--r--. 1 root nagios 84492 Oct 10 2012 EtherLike-MIB.txt
-rw-r--r--. 1 root nagios 4660 Oct 10 2012 HCNUM-TC.txt
-rw-r--r--. 1 root nagios 52544 Oct 10 2012 HOST-RESOURCES-MIB.txt
-rw-r--r--. 1 root nagios 10583 Oct 10 2012 HOST-RESOURCES-TYPES.txt
-rw-r--r--. 1 root nagios 4819 Oct 10 2012 IANA-ADDRESS-FAMILY-NUMBERS-MIB.txt
-rw-r--r--. 1 root nagios 29665 Oct 10 2012 IANAifType-MIB.txt
-rw-r--r--. 1 root nagios 4299 Oct 10 2012 IANA-LANGUAGE-MIB.txt
-rw-r--r--. 1 root nagios 3513 Oct 10 2012 IANA-RTPROTO-MIB.txt
-rw-r--r--. 1 root nagios 5066 Oct 10 2012 IF-INVERTED-STACK-MIB.txt
-rw-r--r--. 1 root nagios 71691 Oct 10 2012 IF-MIB.txt
-rw-r--r--. 1 root nagios 16782 Oct 10 2012 INET-ADDRESS-MIB.txt
-rw-r--r--. 1 root nagios 46286 Oct 10 2012 IP-FORWARD-MIB.txt
-rw-r--r--. 1 root nagios 185667 Oct 10 2012 IP-MIB.txt
-rw-r--r--. 1 root nagios 15936 Oct 10 2012 IPV6-ICMP-MIB.txt
-rw-r--r--. 1 root nagios 48703 Oct 10 2012 IPV6-MIB.txt
-rw-r--r--. 1 root nagios 7257 Oct 10 2012 IPV6-TCP-MIB.txt
-rw-r--r--. 1 root nagios 2367 Oct 10 2012 IPV6-TC.txt
-rw-r--r--. 1 root nagios 4400 Oct 10 2012 IPV6-UDP-MIB.txt
-rw-r--r--. 1 root nagios 5931 Oct 10 2012 LM-SENSORS-MIB.txt
-rw-r--r--. 1 root nagios 42375 Oct 10 2012 MTA-MIB.txt
-rw-r--r-- 1 nagios nagios 1157080 Mar 1 12:26 netapp.mib
-rw-r--r-- 1 nagios nagios 1076089 Mar 1 12:39 NETAPP-MIB.mib this is the MIB netapp official.
-rw-r--r-- 1 nagios nagios 1076089 Mar 1 13:46 NETAPP-MIB.txt
-rw-r--r-- 1 nagios nagios 1157080 Mar 1 13:46 netapp.txt
-rw-r--r--. 1 root nagios 15732 Oct 10 2012 NET-SNMP-AGENT-MIB.txt
-rw-r--r--. 1 root nagios 9160 Oct 10 2012 NET-SNMP-EXAMPLES-MIB.txt
-rw-r--r--. 1 root nagios 9198 Oct 10 2012 NET-SNMP-EXTEND-MIB.txt
-rw-r--r--. 1 root nagios 2036 Oct 10 2012 NET-SNMP-MIB.txt
-rw-r--r--. 1 root nagios 3351 Oct 10 2012 NET-SNMP-PASS-MIB.txt
-rw-r--r--. 1 root nagios 4686 Oct 10 2012 NET-SNMP-TC.txt
-rw-r--r--. 1 root nagios 5039 Oct 10 2012 NET-SNMP-VACM-MIB.txt
-rw-r--r--. 1 root nagios 21006 Oct 10 2012 NETWORK-SERVICES-MIB.txt
-rw-r--r--. 1 root nagios 24694 Oct 10 2012 NOTIFICATION-LOG-MIB.txt
-rw-r--r--. 1 root nagios 3067 Oct 10 2012 RFC1155-SMI.txt
-rw-r--r--. 1 root nagios 79667 Oct 10 2012 RFC1213-MIB.txt
-rw-r--r--. 1 root nagios 1174 Oct 10 2012 RFC-1215.txt
-rw-r--r--. 1 root nagios 147822 Oct 10 2012 RMON-MIB.txt
-rw-r--r--. 1 root nagios 45323 Oct 10 2012 SCTP-MIB.txt
-rw-r--r--. 1 root nagios 4595 Oct 10 2012 SMUX-MIB.txt
-rw-r--r--. 1 root nagios 15490 Oct 10 2012 SNMP-COMMUNITY-MIB.txt
-rw-r--r--. 1 root nagios 22342 Oct 10 2012 SNMP-FRAMEWORK-MIB.txt
-rw-r--r--. 1 root nagios 5496 Oct 10 2012 SNMP-MPD-MIB.txt
-rw-r--r--. 1 root nagios 20014 Oct 10 2012 SNMP-NOTIFICATION-MIB.txt
-rw-r--r--. 1 root nagios 9106 Oct 10 2012 SNMP-PROXY-MIB.txt
-rw-r--r--. 1 root nagios 22769 Oct 10 2012 SNMP-TARGET-MIB.txt
-rw-r--r--. 1 root nagios 39201 Oct 10 2012 SNMP-USER-BASED-SM-MIB.txt
-rw-r--r--. 1 root nagios 2205 Oct 10 2012 SNMP-USM-AES-MIB.txt
-rw-r--r--. 1 root nagios 21101 Oct 10 2012 SNMP-USM-DH-OBJECTS-MIB.txt
-rw-r--r--. 1 root nagios 8263 Oct 10 2012 SNMPv2-CONF.txt
-rw-r--r--. 1 root nagios 29305 Oct 10 2012 SNMPv2-MIB.txt
-rw-r--r--. 1 root nagios 8924 Oct 10 2012 SNMPv2-SMI.txt
-rw-r--r--. 1 root nagios 38034 Oct 10 2012 SNMPv2-TC.txt
-rw-r--r--. 1 root nagios 5775 Oct 10 2012 SNMPv2-TM.txt
-rw-r--r--. 1 root nagios 34162 Oct 10 2012 SNMP-VIEW-BASED-ACM-MIB.txt
-rw-r--r--. 1 root nagios 28564 Oct 10 2012 TCP-MIB.txt
-rw-r--r--. 1 root nagios 16418 Oct 10 2012 TRANSPORT-ADDRESS-MIB.txt
-rw-r--r--. 1 root nagios 2163 Oct 10 2012 UCD-DEMO-MIB.txt
-rw-r--r--. 1 root nagios 4402 Oct 10 2012 UCD-DISKIO-MIB.txt
-rw-r--r--. 1 root nagios 3010 Oct 10 2012 UCD-DLMOD-MIB.txt
-rw-r--r--. 1 root nagios 8118 Oct 10 2012 UCD-IPFWACC-MIB.txt
-rw-r--r--. 1 root nagios 46150 Oct 10 2012 UCD-SNMP-MIB.txt
-rw-r--r--. 1 root nagios 20882 Oct 10 2012 UDP-MIB.txt


Thank you very much.
Best regards.

Re: problem snmp netapp

Posted: Wed Mar 02, 2016 6:59 am
by andressete
If I run:

snmpwalk -v 2c -c community netappname .1.3.6.1.4.1.789.0 .. reply : SNMPv2-SMI::enterprises.789.0 = No Such Object available on this agent at this OID

However, if I run:

snmpwalk -v 2c -c community netappname .1.3.6.1.4.1.789.1 ... reply more than 13.000 lines with oid to monitoring ...

maybe I'm wrong using .1.3.6.1.4.1.789.0 ??

thanks again!

Re: problem snmp netapp

Posted: Wed Mar 02, 2016 2:02 pm
by tgriep
As long at the mib file are the same, I would delete the duplicated mib files
-rw-r--r-- 1 nagios nagios 1157080 Mar 1 12:26 netapp.mib
-rw-r--r-- 1 nagios nagios 1076089 Mar 1 12:39 NETAPP-MIB.mib

Then create this file on the Nagios system

Code: Select all

/etc/snmp/snmp.conf
and add the following.

Code: Select all

mibs +ALL
Then run this and see it it returns the netapp mib file

Code: Select all

snmptranslate -Td .1.3.6.1.4.1.789.0.22
That is the correct OID for failed disks.

Re: problem snmp netapp

Posted: Thu Mar 03, 2016 2:20 am
by andressete
I followed the steps and the result is:

-bash-4.1$ snmptranslate -Td .1.3.6.1.4.1.789.0.22

NETAPP-MIB::diskFailed
diskFailed NOTIFICATION-TYPE
-- FROM NETAPP-MIB
OBJECTS { productTrapData, productSerialNum }
DESCRIPTION "One or more disks failed.
The trap includes a string describing the failed disk(s)."
::= { iso(1) org(3) dod(6) internet(1) private(4) enterprises(1) netapp(789) 0 22 }

Now is it ok? How can I monitoring this oid with nagios?

Thanks again!
Best regards.

Re: problem snmp netapp

Posted: Thu Mar 03, 2016 3:10 pm
by tgriep
Try running this command on the Nagios server and post the output.

Code: Select all

./check_snmp -C community -P 2c -H netappname -o .1.3.6.1.4.1.789.0.22

Re: problem snmp netapp

Posted: Fri Mar 04, 2016 2:08 am
by andressete
./check_snmp -C community -P 2c -H netappname -o .1.3.6.1.4.1.789.0.22 .. reply --> SNMP OK - Such Object available on this agent at this OID

I'm in the same situation like in the first message... :-(

If you are other idea.. I'll be very graceful.

Thanks again.

Re: problem snmp netapp

Posted: Fri Mar 04, 2016 10:01 am
by tgriep
I looked up that OID number and found that it is a SNMP Trap and it cannot be polled.
For you to get status of the drive failure, you would have to setup your Nagios system to receive traps.
I included a few links for doing that. One for Nagios XI and one for Nagios Core.
https://assets.nagios.com/downloads/nag ... agios.html

Re: problem snmp netapp

Posted: Mon Mar 07, 2016 4:53 am
by andressete
yes.. passive checks... well I will work in this way, If I have news o final answer I will post again

Thank you very much for you help!!