SMART hard-disk monitoring

Andre Bergei Andre.Bergei at ergo.no
Fri Sep 1 17:41:13 CEST 2006


> Has anyone got a check plugin working for monitoring SMART hard disk 
> status thresholds?

Just another idea here:

If you got smarttools installed, and net snmpd running you can use "extended" net snmp checks.

In your snmpd.conf add something like this: (change your device settings of course)

sh SMART_health_disk0 /usr/sbin/smartctl -H -d cciss,0 /dev/cciss/c0d0 |grep Health

sh SMART_drive_temp_disk0 /usr/sbin/smartctl -A -d cciss,0 /dev/cciss/c0d0 | egrep 'Current' | sed 's/^.*:....[^0-9]//' | sed 's/[^0-9]*$//'

Uh, you might want to refine those sed statements to something more efficient.

When you this up and running, just use check_snmp to get you values.

/andré

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list