Page 1 of 3

MIBs and Plugins for Hard drive health

Posted: Fri Mar 22, 2013 2:40 am
by MPIvan
Hi
im trying to find a good plugin (simple) that will show me the health of a hard disk. As im trying some of the plugins im getting errors like:
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)
.1.3.6.1.4.1.6574.2.1.1.2.: Unknown Object Identifier ()
and
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.25.1.5
so i guess i have to download MIBs for Dell PC (we use Dell pc everywhere) and if i do ... can someone tell me from where do download and where or how to implement them ...

Re: MIBs and Plugins for Hard drive health

Posted: Fri Mar 22, 2013 4:36 am
by pep
Try running from a shell a snmpwalk command.

I don't know why you get those errors... you have net-snmp updated on the nagios machine??? Is snmp correctly configured in the windows you want to monitor?

BTW, I strongly recommend using this for windows hosts:

http://www.edcint.co.nz/checkwmiplus/

If that not suits your needs, check here:

http://nagios.manubulon.com/

Re: MIBs and Plugins for Hard drive health

Posted: Fri Mar 22, 2013 7:23 am
by scottwilkerson
MPIvan wrote:Hi
im trying to find a good plugin (simple) that will show me the health of a hard disk. As im trying some of the plugins im getting errors like:
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)
.1.3.6.1.4.1.6574.2.1.1.2.: Unknown Object Identifier ()
and
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.25.1.5
so i guess i have to download MIBs for Dell PC (we use Dell pc everywhere) and if i do ... can someone tell me from where do download and where or how to implement them ...

Cna you show the full command you are running, additionally have you changed/added MIBs on the system recently?

Re: MIBs and Plugins for Hard drive health

Posted: Mon Mar 25, 2013 2:26 am
by MPIvan
Hi,
im using snmpwalk and i have the errors on this command "snmpwalk -v 1 -c mrtg 10.2.0.56 IP-MIB::ipAdEntIfIndex" i have this error
root@nagios:/usr/local/nagios/libexec# !1815
snmpwalk -v 1 -c mrtg 10.2.0.56 IP-MIB::ipAdEntIfIndex
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)
Did not find 'zeroDotZero' in module SNMPv2-SMI (/usr/share/mibs/ietf/IP-MIB)
Timeout: No Response from 10.2.0.56
and no i have not change or add something (mib) or other things.

Re: MIBs and Plugins for Hard drive health

Posted: Mon Mar 25, 2013 9:58 am
by abrist
Is snmp installed, configured, and running on the remote host?
Have you looked at the different smart/drive health plugins on the exchange?

http://exchange.nagios.org/index.php?op ... word=smart
http://exchange.nagios.org/index.php?op ... e%20health

Re: MIBs and Plugins for Hard drive health

Posted: Tue Mar 26, 2013 7:29 am
by MPIvan
Yes it is installed... i use NSClient++ and for now it works ok, on nagios i can see other things like usage of disk CPU,UPTime, Process etc...
Yes i am looking different smart/drive health plugins on the exchange page and 4,5 plugins gave me that error.

here are the some of the plugins that gave me the error:
check_win_snmp_disk.pl and check_synology_disk

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.0.56

check_cpqdisks
Can't locate SNMP.pm in @INC (@INC contains: /root/perl5/lib/perl5/x86_64-linux-gnu-thread-multi /root/perl5/lib/perl5/x86_64-linux-gnu-thread-multi /root/perl5/lib/perl5 /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl .) at ./check_cpqdisks line 17.
BEGIN failed--compilation aborted at ./check_cpqdisks line 17.

Re: MIBs and Plugins for Hard drive health

Posted: Tue Mar 26, 2013 9:48 am
by slansing
It seems you may not have the perl package installed, please run the following, assuming you have CPAN installed:

Code: Select all

cpan

Code: Select all

install Net::SNMP
If you do not have CPAN installed, you can install it via YUM's Repo's.

Re: MIBs and Plugins for Hard drive health

Posted: Wed Mar 27, 2013 10:53 am
by MPIvan
it is installed ... i use cpan and have the next one
cpan> install Net::SNMP

cpan[2]> install Net::SNMP
Net::SNMP is up to date (v6.0.1).

so i guess i have all installed and ok ...

Re: MIBs and Plugins for Hard drive health

Posted: Wed Mar 27, 2013 2:16 pm
by slansing
For good measure lets check the other required packages, and we will use yum this time. Run the following:

Code: Select all

yum install net-snmp* perl-Net-SNMP* perl-SNMP* -y

Re: MIBs and Plugins for Hard drive health

Posted: Thu Mar 28, 2013 2:53 am
by MPIvan
here is what i have ...
root@nagios:~# yum install net-snmp* perl-Net-SNMP* perl-SNMP* -y
Setting up Install Process
No package net-snmp* available.
No package perl-Net-SNMP* available.
No package perl-SNMP* available.
Nothing to do
root@nagios:~#