mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-06-14 19:19:59 -04:00
check_disk_smb: verify path to smbclient
This commit is contained in:
parent
adc9d71b4b
commit
63312395ee
1 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue