From 63312395eed8fc0628cf81eebe3b11b4d299adc6 Mon Sep 17 00:00:00 2001 From: Sven Nierlein Date: Mon, 16 Sep 2013 13:57:52 +0200 Subject: check_disk_smb: verify path to smbclient diff --git a/plugins-scripts/check_disk_smb.pl b/plugins-scripts/check_disk_smb.pl index b547615..0c89db5 100755 --- a/plugins-scripts/check_disk_smb.pl +++ b/plugins-scripts/check_disk_smb.pl @@ -59,6 +59,8 @@ if ($opt_V) { if ($opt_h) {print_help(); exit $ERRORS{'OK'};} my $smbclient = $utils::PATH_TO_SMBCLIENT; +$smbclient || usage("check requires smbclient, smbclient not set\n"); +-x $smbclient || usage("check requires smbclient, $smbclient: $!\n"); # Options checking -- cgit v0.10-9-g596f