<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Dear Nagios_users<br>
    <br>
    The following error have been generated when using the the script
    check_disk_smb as follows <br>
    <br>
    zenosssrv:/usr/local/zenoss/common/libexec #
    /usr/local/zenoss/common/libexec/check_disk_smb -H
    <ServerName>.<DomainName>.com -s fscs<br>
    <br>
    ERROR::<br>
    Can't exec "//<ServerName>.<DomainName>.com/fscs": No
    such file or directory at
    /usr/local/zenoss/common/libexec/check_disk_smb line 166.<br>
    <br>
    Use of uninitialized value $res in split at
    /usr/local/zenoss/common/libexec/check_disk_smb line 172.<br>
    <br>
    Use of uninitialized value $_ in pattern match (m//) at
    /usr/local/zenoss/common/libexec/check_disk_smb line 180.<br>
    Result from smbclient not suitable<br>
    <br>
    <br>
    As the error has stated and on checking the script, line 166
    contained the following <br>
    <br>
       $res = qx/$smbclient \/\/$host\/$share -U $user%$pass
    $smbclientoptions -c ls/;<br>
    <br>
    but scroll down to line 61 since I was tring to find out where
    $smbclient was defined, $smbclient was defined on line 61 and line
    61 contained the following<br>
    <br>
     my $smbclient= "$utils::PATH_TO_SMBCLIENT " ;<br>
    <br>
    But strangely line 61 also contained a variable $utils<br>
    <br>
    $utils is not defined anywhere and I believed that because $utils is
    not defined, in effects causes $smbclient not to exist.<br>
    so in line 166 the only command that seems to be ran is  <br>
    <br>
    <br>
    \/\/$host\/$share -U $user%$pass $smbclientoptions -c ls/;<br>
    <br>
    hence forced the OS to return the error specified <br>
    <br>
    <b>Why is $utils not defined and is there any fix for this issue. </b><br>
    <br>
    IS there any manual for this script?<br>
    <br>
    OS in use::<br>
    SuSe Enterprise ver 11<br>
    Application:: Zenoss application<br>
    <br>
    <br>
    <br>
    I have limited knowledge in perl, please kindly make the solution as
    clear as possible<br>
    <br>
    Many thanks in anticipation.<br>
    <br>
    <br>
    Kind Regards<br>
    -Niji<br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
  </body>
</html>