Page 3 of 3

Re: MIBs and Plugins for Hard drive health

Posted: Mon Apr 08, 2013 10:31 am
by abrist
Great, it is in your path now. Try to run the plugin.

Re: MIBs and Plugins for Hard drive health

Posted: Tue Apr 09, 2013 9:24 am
by MPIvan
Ok im now totally lost. Here is something that i cant understand.... im using "check_win_snmp_disk.pl" this plugin and here is what i get

Code: Select all

root@nagios:/usr/local/nagios/libexec# !2004
./check_win_snmp_disk.pl 10.2.1.10 IvanMP 80 90
SNMP to 10.2.1.10 is not available
Check command: '/usr/bin/snmpstatus -v 1 10.2.1.10 -c public -t 5 -r 0'
Result: MIB search path: /root/.snmp/mibs:/usr/share/mibs/site:/usr/share/snmp/mibs:/usr/share/mibs/iana:/usr/share/mibs/ietf:/usr/share/mibs/netsnmp
Cannot find module (sysUpTime): At line 0 in (none)
Timeout: No Response from 10.2.1.10
root@nagios:/usr/local/nagios/libexec#
also i was trying this plugin:

Code: Select all

root@nagios:/usr/local/nagios/libexec# !2042
./check_perc.pl -D glob -T sm -H 10.2.1.10 -C IvanMP
SNMP returned unknown output: MIB search path: /root/.snmp/mibs:/usr/share/mibs/site:/usr/share/snmp/mibs:/usr/share/mibs/iana:/usr/share/mibs/ietf:/usr/share/mibs/netsnmp

root@nagios:/usr/local/nagios/libexec# !2045
./check_perc.pl -D -H 10.2.1.10 -C IvanMP
ERROR - must define -D, -H, -T, and either -C or -u.
Usage: check_perc.pl [-dhlnV] -D glob|phys|log|con -T sm|am -H <host>
                     [-v 1|2c|3] -C <community> | -u <user>
                     [-a MD5|SHA][-A <authpass>][-x DES|AES][-X <privpass>]
                     [-e <secengine>][-E <conengine][-N <context>]
Try '--help' for more information.

root@nagios:/usr/local/nagios/libexec# !2046
./check_perc.pl -D glob -T sm -H 10.2.1.10:12489 -C IvanMP
MIB search path: /root/.snmp/mibs:/usr/share/mibs/site:/usr/share/snmp/mibs:/usr/share/mibs/iana:/usr/share/mibs/ietf:/usr/share/mibs/netsnmp
Cannot find module (sysUpTime): At line 0 in (none)
Timeout: No Response from 10.2.1.10:12489
root@nagios:/usr/local/nagios/libexec#
So i was think that im doing something wrong. So i start to try something with snmpwalk and i use this next steps to see what will do.

Code: Select all

root@nagios:/usr/local/nagios/libexec# !2058
snmpwalk -v 2c -c IvanMP 10.2.1.10 SNMPv2-MIB
MIB search path: /root/.snmp/mibs:/usr/share/mibs/site:/usr/share/snmp/mibs:/usr/share/mibs/iana:/usr/share/mibs/ietf:/usr/share/mibs/netsnmp
Cannot find module (sysUpTime): At line 0 in (none)
SNMPv2-MIB: Unknown Object Identifier (Sub-id not found: (top) -> SNMPv2-MIB)
root@nagios:/usr/local/nagios/libexec# !2059
snmpwalk -v 2c -c IvanMP 10.2.1.10 SNMPv2-MIB::sysUpTime.0
MIB search path: /root/.snmp/mibs:/usr/share/mibs/site:/usr/share/snmp/mibs:/usr/share/mibs/iana:/usr/share/mibs/ietf:/usr/share/mibs/netsnmp
Cannot find module (sysUpTime): At line 0 in (none)
SNMPv2-MIB::sysUpTime.0 = Timeticks: (7551901) 20:58:39.01
root@nagios:/usr/local/nagios/libexec#
And on the last line there is the result but im still getting some errors like you can see
MIB search path: /root/.snmp/mibs:/usr/share/mibs/site:/usr/share/snmp/mibs:/usr/share/mibs/iana:/usr/share/mibs/ietf:/usr/share/mibs/netsnmp
Cannot find module (sysUpTime): At line 0 in (none)
and also im geting the result
SNMPv2-MIB::sysUpTime.0 = Timeticks: (7551901) 20:58:39.01
And now i relay lost in all this info that i get, and on the other hand i have put the same pc 10.2.1.10 on nagios to monitoring uptime hard and process with check_nt and it works fine. no errors just results.
also i was testing the same thing with the cisco router, and as i sad early that i have downloaded the cisco mibs following this commands

Code: Select all

cd /usr/share/mibs/netsnmp
wget ftp://ftp.cisco.com/pub/mibs/v2/SNMPv2-MIB.my
wget ftp://ftp.cisco.com/pub/mibs/v1/RFC1213-MIB.my
wget ftp://ftp.cisco.com/pub/mibs/v2/IANAifType-MIB.my
wget ftp://ftp.cisco.com/pub/mibs/v2/SNMPv2-TC.my
wget ftp://ftp.cisco.com/pub/mibs/v2/SNMPv2-SMI.my
echo "mibs +sysUpTime" >> /etc/snmp/snmp.conf
now the ftp sites are change but you can find them on [url=http://tools.cisco.com/Support/SNMP/do/BrowseMIB.do?local=en&step=2]this[/url] page
and here is some example

Code: Select all

snmpwalk -v 2c -c TestCisco 172.25.0.56
iso.3.6.1.2.1.47.1.4.1.0 = Timeticks: (24669) 0:04:06.69
iso.3.6.1.2.1.51.2.1.0 = Gauge32: 0
iso.3.6.1.2.1.51.2.2.0 = INTEGER: 0
iso.3.6.1.2.1.51.2.3.0 = INTEGER: 0
iso.3.6.1.2.1.51.2.4.0 = INTEGER: 0
iso.3.6.1.2.1.51.2.5.0 = INTEGER: 0
iso.3.6.1.2.1.52.2.1.0 = INTEGER: 0
iso.3.6.1.2.1.68.1.1.0 = INTEGER: 1
iso.3.6.1.2.1.68.1.2.0 = INTEGER: 2
iso.3.6.1.2.1.68.2.1.0 = Counter32: 0
iso.3.6.1.2.1.68.2.2.0 = Counter32: 0
iso.3.6.1.2.1.68.2.3.0 = Counter32: 0
iso.3.6.1.2.1.83.1.1.1.0 = INTEGER: 2
iso.3.6.1.2.1.83.1.1.7.0 = Gauge32: 0
iso.3.6.1.2.1.88.1.1.1.0 = INTEGER: 60
iso.3.6.1.2.1.88.1.1.2.0 = Gauge32: 0
iso.3.6.1.2.1.88.1.1.3.0 = Gauge32: 0
iso.3.6.1.2.1.88.1.1.4.0 = Gauge32: 0
iso.3.6.1.2.1.88.1.1.5.0 = Counter32: 0
iso.3.6.1.2.1.88.1.2.1.0 = Counter32: 0
iso.3.6.1.2.1.88.1.4.1.0 = Counter32: 0
iso.3.6.1.2.1.92.1.1.1.0 = Gauge32: 500
iso.3.6.1.2.1.92.1.1.2.0 = Gauge32: 15
iso.3.6.1.2.1.92.1.2.1.0 = Counter32: 0
iso.3.6.1.2.1.92.1.2.2.0 = Counter32: 0
So can some one tell me what is going on here whit this mibs and suggest a good plugin for health on hard disk on a pc, because i cant diagnostic what is going on ... is it a plugins or the mibs or something totally unknown :)

Re: MIBs and Plugins for Hard drive health

Posted: Tue Apr 09, 2013 12:28 pm
by abrist
Any of the smart health checking scripts will work fine. Most check them through nrpe or check_by_ssh. They usually rely on smartctl and if you use a raid controller, you may be required to give the plugin access to your raid configuration bin.
http://exchange.nagios.org/index.php?op ... word=smart
http://exchange.nagios.org/index.php?op ... k%20health