File check_tw_cli.patch of Package monitoring-plugins-tw_cli
--- check_tw_cli.pl.org 2011-07-07 14:46:45.842364019 +0200
+++ check_tw_cli.pl 2011-07-07 14:51:10.562465901 +0200
@@ -68,8 +68,8 @@
# PLEASE CHECK $tw_cli_bin AND $tw_cli_exec for your requirements! Any other variables should not be changed.
#
-$tw_cli_bin = '/usr/local/sbin/tw_cli';
-$tw_cli_exec = "/usr/bin/sudo";
+$tw_cli_bin = '/usr/sbin/tw_cli';
+$tw_cli_exec = '/usr/bin/sudo';
$PROGNAME = "check_tw_cli";
$version = "0.3.1";
@@ -88,8 +88,8 @@
$tw_cli_critical_v1 = 'CORRUPT|INCOMPLETE|';
$tw_cli_critical_v2 = 'CORRUPT|INOPERABLE';
-$tested_cli_version = '2\.00\..*'; # please use a regex syntax here. this test may be removed in the future
-$tested_api_version = '2\.00\..*'; # please use a regex syntax here. this test may be removed in the future
+$tested_cli_version = '2\.0.*'; # please use a regex syntax here. this test may be removed in the future
+$tested_api_version = '2\.0.*'; # please use a regex syntax here. this test may be removed in the future
$tw_cli_version = 'UNKNOWN';
$cli_version = 'UNKNOWN';
$api_version = 'UNKNOWN';
@@ -283,6 +283,8 @@
$tw_cli_port = $5;
$tw_cli_unittype =~ /^RAID/ and $result = $tw_cli_status;
+ $tw_cli_unittype =~ /^SINGLE/ and $result = $tw_cli_status;
+
$tw_cli_status ne "OK" and $result = "WARNING";
if ($tw_cli_status =~ /^($tw_cli_critical_v2)/) {