Search Exchange

Search All Sites

Nagios Log Server Now Available - Download Now

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Check SMART status ZCU

Bookmark and Share

Don't miss your chance to attend the 2015 Nagios World conference!

Don't miss your chance to attend the 2015 Nagios World Conference, Sep 28-30th. Informative Sessions, Networking, Food and Cocktails! Visit conference.nagios.com for more information or to register.


Current Version
1.0.7
Last Release Date
2015-06-29
Compatible With
  • Nagios 3.x
E-mail
License
GPL
Hits
40017
Check SMART status of ATA/SCSI/SAT disks and Megaraid controller with performance data.
Check SMART status of ATA/SCSI/SAT disks. Returning any usable metrics as perfdata. Support megaraid controller and other small features.

Usage:
check_smart.zcu.pl --device= --interface=(ata|sat|scsi|[sat+]megaraid,N) [--realloc=] [--pending=] [--checksum] [--log] [--failure] [--debug] [--version] [--help]

Description:
-d/--device a device to be SMART monitored, eg. /dev/sda
-i/--interface ata, sat, scsi, megaraid, depending upon the device's interface type
-r/--realloc minimum of accepted reallocated sectors (actual value: 0)
-p/--pending minimum of accepted pending sectors (actual value: 0)
-c/--checksum disable checksum log structure (default: enable)
-l/--log disable check of SMART logs (default: enable)
-f/--failure disable warning when disk may be close to failure)
--debug show debugging information
-h/--help this help
-v/--version show version of this plugin

Examples:
check_smart.zcu.pl --device=/dev/sda --interface=sat --realloc=10
check_smart.zcu.pl -d /dev/sdb -i megaraid,2 -p 1 -l
check_smart.zcu.pl -d /dev/sdb -i ata -f

Return of last example:
OK: no SMART errors detected, Disabled warning when disk may be close to failure (used option -f): Attribute Airflow_Temperature_Cel failed at In_the_past.|Raw_Read_Error_Rate=0 Spin_Up_Time=0 Start_Stop_Count=32 Reallocated_Sector_Ct=0 Seek_Error_Rate=841765619 Power_On_Hours=50562 Spin_Retry_Count=0 Power_Cycle_Count=31 Reported_Uncorrect=0 High_Fly_Writes=0 Airflow_Temperature_Cel=25 Temperature_Celsius=25 Hardware_ECC_Recovered=52153847 Current_Pending_Sector=0 Offline_Uncorrectable=0 UDMA_CRC_Error_Count=0 Multi_Zone_Error_Rate=0 Data_Address_Mark_Errs=0

Latest changes:
1.0.7
- NEW: add -f option to set OK when disk may be failure (highest temperature in past, ...)
1.0.6
- NEW: add -p option as minimum of pending sectors (default = 0)
1.0.5
- NEW: change default value of accepted reallocated sectors to 0 (zero)
- NEW: append inform messages if used -l, -r or -c option

This script was created under contract for the US Government and is therefore Public Domain, originally created by Kurt Yoder, modified by Philippe Genonceaux and finished by Michal Švamberg.