check SMART plugin for older SCSI disks?

Eric Pearce epearce at amberpoint.com
Thu Jan 8 19:52:52 CET 2009


I've got some older Linux systems with Ultra SCSI III disks (mostly Seagate).  The default check_ide_smart doesn't seem to work on them.

# /usr/local/nagios/libexec/check_ide_smart  -n --device=/dev/sdb 
CRITICAL - SMART_ENABLE: Invalid argument
CRITICAL - SMART_CMD_ENABLE

But smartctl does seem capable of getting useful info:

# smartctl -H /dev/sdb
smartctl version 5.36 [x86_64-redhat-linux-gnu] Copyright (C) 2002-6 Bruce Allen
Home page is http://smartmontools.sourceforge.net/

SMART Health Status: OK

# smartctl -a /dev/sdb
smartctl version 5.36 [x86_64-redhat-linux-gnu] Copyright (C) 2002-6 Bruce Allen
Home page is http://smartmontools.sourceforge.net/

Device: SEAGATE  ST3146854LC      Version: 0003
Serial number: 3KN08NJK00007544JRCD
Device type: disk
Transport protocol: Parallel SCSI (SPI-4)
Local Time is: Thu Jan  8 10:48:26 2009 PST
Device supports SMART and is Enabled
Temperature Warning Enabled
SMART Health Status: OK

Current Drive Temperature:     44 C
Drive Trip Temperature:        68 C
Elements in grown defect list: 0
Vendor (Seagate) cache information
  Blocks sent to initiator = 3197703675
  Blocks received from initiator = 3575667103
  Blocks read from cache and sent to initiator = 3039198837
  Number of read and write commands whose size <= segment size = 2268949035
  Number of read and write commands whose size > segment size = 3492095
Vendor (Seagate/Hitachi) factory information
  number of hours powered up = 21576.68
  number of minutes until next internal SMART test = 34

Error counter log:
           Errors Corrected by           Total   Correction     Gigabytes    Total
               ECC          rereads/    errors   algorithm      processed    uncorrected
           fast | delayed   rewrites  corrected  invocations   [10^9 bytes]  errors
read:   80167895        0         0  80167895   80167895      70833.129           0
write:         0        0         0         0          0      13343.062           0

Non-medium error count:        5

[GLTSD (Global Logging Target Save Disable) set. Enable Save with '-S on']
No self-tests have been logged
Long (extended) Self Test duration: 2125 seconds [35.4 minutes]

I've tried various perl and python scripts that others have mentioned, but no luck so far.
Does someone have a plugin that will work on this drive type? (or perhaps a modification to check_ide_smart?)
I'm running nagios 3.0.6 and 1.4.13 plugins
Thanks 
-e
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20090108/887c933b/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
-------------- next part --------------
_______________________________________________
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