Header RSS Feed
If you only want to see the articles of a certain category, please click on the desired category below:
ALL Android Backup BSD Database Hacks Hardware Internet Linux Mail MySQL Monitoring Network Personal PHP Proxy Shell Solaris Unix Virtualization VMware Windows Wyse

check_smart.pl adapted to support cciss and handle grown defect list
Monday - Nov 4th 2013 - by - (4 comments)

In the last article (Read Disk SMART values on FreeBSD (6.0) behind a HP Raid (cciss)) I wrote how the SMART values of physical disks behind a HP Raid can be read and checked. That was a necessary "manual check" as the Nagios plugin check_smart.pl was not installed on that particular server.

Back at work I was wondering if the plugin would work on this server (DL 380 G4, HP Raid, FreeBSD 6.0). And nope, it did not. But I made the necessary changes and released version 3.3 of check_smart.pl today.

Besides adding support for the HP Raid (cciss), I also wanted to be alerted, as soon as there are "Elements in grown defect list", similar to "Current Pending Sectors".

Please note that cciss is supported by smartctl (smartmontools) only since version 5.38. So make sure you're running at least 5.38. This can be verified by running the following command:

smartctl -V | grep release
smartmontools release 5.38 dated 2008/03/10 at 10:44:07 GMT

The new version of check_smart.pl can be downloaded on Github:


And this is how it looks in my Nagios/Icinga setup:

Nagios Icinga check smart warning



Add a comment

Show form to leave a comment

Comments (newest first):

ck from Switzerland wrote on May 14th, 2014:
hmm.. this could be tricky. I have searched for possibilities to "reset" the value of "Airflow_Temperature_Cel" (which contains a In_the_past event in your output) but couldn't find a way. Have you tried to power cycle (power off... wait a bit ...power on) the machine with this disk?

ezra from boston wrote on May 14th, 2014:
Sorry not sure what I\'m looking for but here is the output from the command.

bash-3.2# smartctl -a /dev/sdb
smartctl version 5.38 [i686-redhat-linux-gnu] Copyright (C) 2002-8 Bruce Allen
Home page is http://smartmontools.sourceforge.net/

Model Family: Seagate Barracuda 7200.11
Device Model: ST3750330AS
Serial Number: 9QK19F18
Firmware Version: SD45
User Capacity: 750,156,374,016 bytes
Device is: In smartctl database [for details use: -P show]
ATA Version is: 8
ATA Standard is: ATA-8-ACS revision 4
Local Time is: Wed May 14 13:17:20 2014 EDT
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

T Attributes with Thresholds:
190 Airflow_Temperature_Cel 0x0022 073 032 045 Old_age Always In_the_past 27 (1 239 31 23)

ck from Switzerland wrote on May 13th, 2014:
Hello ezra, did you verify if the SMART values are OK? Launch the following command to see the SMART values:

smartctl -a /dev/sdb

It seems that your disk has become very hot.

ezra from Boston wrote on May 13th, 2014:
Hello, I'd like very much to use the -b (theshold value) but when I implement it check_smart.pl still output an error "Airflow_Temperature_Cel failed". The command I execute is as follows:
"/etc/nagios/libexec/check_smart.pl -d /dev/sdb -i ata -b 3"
/etc/nagios/libexec/check_smart.pl -h
check_smart v$Revision: 5.2 $ (nagios-plugins 1.4.15)

Go to Homepage home
Linux Howtos how to's
Nagios Plugins nagios plugins
Links links

Valid HTML 4.01 Transitional
Valid CSS!
[Valid RSS]

7667 Days
until Death of Computers