소스 검색

check_disk_smb: verify path to smbclient

Sven Nierlein 12 년 전
부모
커밋
63312395ee
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      plugins-scripts/check_disk_smb.pl

+ 2 - 0
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