<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";
        color:black;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body bgcolor="white" lang="EN-GB" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="color:#1F497D">D</span>ear 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>
<o:p></o:p></p>
</div>
</body>
</html>