diff options
author | Sven Nierlein <Sven.Nierlein@consol.de> | 2013-09-16 13:57:52 +0200 |
---|---|---|
committer | Sven Nierlein <sven@consol.de> | 2013-09-16 13:59:27 +0200 |
commit | 63312395eed8fc0628cf81eebe3b11b4d299adc6 (patch) | |
tree | 164691c50314972465685b91c7b0285cbe5649e7 /plugins-scripts | |
parent | adc9d71b4b2c622b26e6403b16f8299a280dab54 (diff) | |
download | monitoring-plugins-63312395eed8fc0628cf81eebe3b11b4d299adc6.tar.gz |
check_disk_smb: verify path to smbclient
Diffstat (limited to 'plugins-scripts')
-rwxr-xr-x | plugins-scripts/check_disk_smb.pl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins-scripts/check_disk_smb.pl b/plugins-scripts/check_disk_smb.pl index b547615b..0c89db57 100755 --- a/plugins-scripts/check_disk_smb.pl +++ b/plugins-scripts/check_disk_smb.pl | |||
@@ -59,6 +59,8 @@ if ($opt_V) { | |||
59 | if ($opt_h) {print_help(); exit $ERRORS{'OK'};} | 59 | if ($opt_h) {print_help(); exit $ERRORS{'OK'};} |
60 | 60 | ||
61 | my $smbclient = $utils::PATH_TO_SMBCLIENT; | 61 | my $smbclient = $utils::PATH_TO_SMBCLIENT; |
62 | $smbclient || usage("check requires smbclient, smbclient not set\n"); | ||
63 | -x $smbclient || usage("check requires smbclient, $smbclient: $!\n"); | ||
62 | 64 | ||
63 | # Options checking | 65 | # Options checking |
64 | 66 | ||