summaryrefslogtreecommitdiffstats
path: root/plugins-scripts
diff options
context:
space:
mode:
authorSven Nierlein <Sven.Nierlein@consol.de>2014-07-31 09:43:47 (GMT)
committerSven Nierlein <Sven.Nierlein@consol.de>2014-07-31 09:43:47 (GMT)
commitd832030e38f75e118ea519c08b5d3b491068b95d (patch)
tree46586d6ea6d33a6caf21700e98bdb3bb759303cb /plugins-scripts
parentdf08974bf07bae1ea5dcbec68bad4cdfce52aeff (diff)
downloadmonitoring-plugins-d832030e38f75e118ea519c08b5d3b491068b95d.tar.gz
tests: check_disk_smb may exit with critical for unresponsive hosts too
Unknown (ex. debian 7) %> ./check_disk_smb -H 1.1.1.1 -s np_foobar -vvv /usr/bin/smbclient //1.1.1.1/np_foobar -U guest% -c du No Answer from Client Critical (ex. debian 8) %> ./check_disk_smb -H 1.1.1.1 -s np_foobar -vvv /usr/bin/smbclient //1.1.1.1/np_foobar -U guest% -c du Connection to 1.1.1.1 failed CRITICAL Signed-off-by: Sven Nierlein <Sven.Nierlein@consol.de>
Diffstat (limited to 'plugins-scripts')
-rw-r--r--plugins-scripts/t/check_disk_smb.t2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins-scripts/t/check_disk_smb.t b/plugins-scripts/t/check_disk_smb.t
index 831f388..c2e8bbb 100644
--- a/plugins-scripts/t/check_disk_smb.t
+++ b/plugins-scripts/t/check_disk_smb.t
@@ -90,7 +90,7 @@ SKIP: {
90 SKIP: { 90 SKIP: {
91 skip "no non responsive host defined", 1 if ( ! $host_nonresponsive ); 91 skip "no non responsive host defined", 1 if ( ! $host_nonresponsive );
92 $res = NPTest->testCmd( "./$plugin -H $host_nonresponsive -s np_foobar "); 92 $res = NPTest->testCmd( "./$plugin -H $host_nonresponsive -s np_foobar ");
93 cmp_ok( $res->return_code, '==', 3, "Exit UNKNOWN with non responsive host" ); 93 cmp_ok( $res->return_code, '>=', 2, "Exit CRITICAL/UNKNOWN with non responsive host" );
94 } 94 }
95 95
96} 96}