[Nagiosplug-devel] help with check_smart

Jared Kelley jkelley at popcap.com
Tue Feb 1 00:28:07 CET 2011


I'm trying to run a nagios check on a host running a 3ware controller.
Smartctl works but I cannot find the correct syntax for the plugin check to work.

Can someone help with this?

3ware controller version
> show version
CLI Version = 2.00.06.007
API Version = 2.03.00.006
CLI Compatible Range = [2.00.00.001 to 2.00.06.007]

Ctl   Model        Ports   Drives   Units   NotOpt   RRate   VRate   BBU
------------------------------------------------------------------------
c6    8006-2LP     2       2        1       0        2       -       -



SUCCESS with smartctl

# smartctl -H -d 3ware,0 /dev/twe0
smartctl version 5.36 [i686-pc-linux-gnu] Copyright (C) 2002-6 Bruce Allen
Home page is http://smartmontools.sourceforge.net/

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED


FAIL with check_smart

# /usr/lib/nagios/plugins/check_smart -d 3ware,0 /dev/twe0 -i scsi
3ware,0 is not a valid block device!




More information about the Devel mailing list