<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style>
<!--
@font-face
        {font-family:Calibri}
@font-face
        {font-family:Tahoma}
@font-face
        {font-family:Verdana}
@font-face
        {font-family:"Trebuchet MS"}
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif"}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif"}
span.BalloonTextChar
        {font-family:"Tahoma","sans-serif"}
span.EmailStyle19
        {font-family:"Calibri","sans-serif";
        color:windowtext}
span.EmailStyle20
        {font-family:"Calibri","sans-serif";
        color:#1F497D}
span.EmailStyle21
        {font-family:"Calibri","sans-serif";
        color:#1F497D}
.MsoChpDefault
        {font-size:10.0pt}
@page WordSection1
        {margin:72.0pt 72.0pt 72.0pt 72.0pt}
div.WordSection1
        {}
-->
</style>
</head>
<body lang="EN-GB" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="color:#1F497D">GetFileSize works for me using backslashes and not forward slashes.</span></p>
<p class="MsoNormal"><span style="color:#1F497D"> </span></p>
<p class="MsoNormal"><span style="color:#1F497D">Try using “\” or “\\” instead of “/” in the path.</span></p>
<p class="MsoNormal"><span style="color:#1F497D"> </span></p>
<p class="MsoNormal"><span style="color:#1F497D">e.g. </span><span lang="EN-US" style="color:#1F497D">d:\\Network Shares\\individual\\*.*</span><span style="color:#1F497D"></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> </span></p>
<p class="MsoNormal"><span style="color:#1F497D">This might be a bug in NSClient++ and/or its documentation.</span></p>
<p class="MsoNormal"><span style="color:#1F497D"> </span></p>
<p class="MsoNormal"><span style="color:#1F497D">Cheers,</span></p>
<p class="MsoNormal"><span style="color:#1F497D"> </span></p>
<p class="MsoNormal"><span style="color:#1F497D">Phil</span></p>
<p class="MsoNormal"><span style="color:#1F497D"> </span></p>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt; font-family:"Arial","sans-serif"; color:#1F497D">--</span><span style="color:#1F497D">
</span></p>
<p class="MsoNormal"><b><span style="font-family:"Arial","sans-serif"; color:black">Phil Randal</span></b></p>
<p class="MsoNormal"><b><span style="font-family:"Arial","sans-serif"; color:black">Infrastructure Engineer</span></b><span style="color:black"><br>
</span><b><span style="font-family:"Arial","sans-serif"; color:#00829B">Hoople Ltd | Thorn Office Centre | Hereford HR2 6JT</span></b><span style="font-size:12.0pt; color:#00829B"></span></p>
<p class="MsoNormal"><span style="font-family:"Arial","sans-serif"; color:#00829B">Tel: 01432 260415 | Email: phil.randal@hoopleltd.co.uk</span></p>
</div>
<p class="MsoNormal"><span style="color:#1F497D"> </span></p>
<div>
<div style="border:none; border-top:solid #B5C4DF 1.0pt; padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt; font-family:"Tahoma","sans-serif"">From:</span></b><span lang="EN-US" style="font-size:10.0pt; font-family:"Tahoma","sans-serif""> Jorge Pañeda [mailto:jlpaneda@sciodev.com]
<br>
<b>Sent:</b> 07 March 2012 16:49<br>
<b>To:</b> 'Nagios Users List'<br>
<b>Subject:</b> [Nagios-users] Monitor Directory (Folders) Size with NSClient++</span></p>
</div>
</div>
<p class="MsoNormal"> </p>
<p class="MsoNormal"><span lang="ES-MX" style="color:#1F497D">Hello all, </span></p>
<p class="MsoNormal"><span lang="ES-MX" style="color:#1F497D"> </span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">I’m using NSClient++ 0.3.9, nsca and passive checks to monitor my Windows server behind a firewall. In one of this servers I have  a folder that inside have many other folders and files, I want to
 monitor this folder and let Nagios send me a warning or critical notification when the size of this folder grows too much (Ex. Folder Size 50 GB, warning when is over 70 GB and critical when is over 80 GB).
</span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"> </span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">I tried to accomplish this using CheckFileSize and CheckDriveSize but not succeeded at all.
</span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"> </span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">When I use CheckFileSize like this:
</span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"> </span></p>
<p class="MsoNormal" style="text-indent:35.4pt"><span lang="EN-US" style="color:#1F497D">alias_individual=CheckFileSize ShowAll MaxWarn=60G MaxCrit=70G "File:_Individual=d:/Network Shares/individual/*.*"</span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"> </span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">I got that the result is ok but 0 Bytes. I even got the same result if I eliminate the *.* at the end of the path.
</span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"> </span></p>
<p class="MsoNormal"><span lang="ES-MX" style="color:#1F497D"><img width="664" height="160" id="Picture_x0020_3" src="cid:image002.png@01CCFC8C.DE38D7F0"></span><span lang="EN-US" style="color:#1F497D"></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"> </span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">When CheckDriveSize is used:</span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"> </span></p>
<p class="MsoNormal" style="text-indent:35.4pt"><span lang="EN-US" style="color:#1F497D">alias_individual=CheckDriveSize MaxWarn=60G MaxCrit=70G ShowAll=long "Drive=\\servername\\individual"</span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"> </span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">I got the size but this size is the size of all the Hard Disk and not the size of the folder.
</span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"> </span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">Hope you can help me to solve this issue or give any ideas to accomplish the monitoring of size folders.
</span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"> </span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">Thanks in advance. </span>
</p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"> </span></p>
<div>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">Jorge L. Pañeda</span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"> </span></p>
<p class="MsoNormal"><b><span lang="ES-MX" style="font-family:"Verdana","sans-serif"; color:#1F497D"><img width="147" height="55" id="Picture_x0020_1" src="cid:image003.jpg@01CCFC8C.DE38D7F0" alt="Description: Description: scio"></span></b><b><span lang="EN-US" style="font-size:12.0pt; font-family:"Verdana","sans-serif"; color:#1F497D"></span></b></p>
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:9.0pt; font-family:"Verdana","sans-serif"; color:#1F497D"> </span></b></p>
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:9.0pt; font-family:"Verdana","sans-serif"; color:#1F497D">Systems Administrator</span></b></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:9.0pt; color:#1F497D">Scio Consulting | IT & Infrastructure Dept.</span></p>
<p class="MsoNormal"><span lang="ES-MX" style="font-size:9.0pt; font-family:"Trebuchet MS","sans-serif"; color:#1F497D">Las Cañadas 501 Int. 230 Col. Tres Marías
</span></p>
<p class="MsoNormal"><span lang="ES-MX" style="font-size:9.0pt; font-family:"Trebuchet MS","sans-serif"; color:#1F497D">Morelia, Mich., México Tel. (443) 310-96-01 y (443) 310-96-02 ext. 402</span><b><span lang="ES-MX" style="font-size:9.0pt; color:#1F497D"></span></b></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:9.0pt; color:#1F497D">U.S. Phone: 408 404 3897 Ext. 402</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:9.0pt; color:#1F497D"><a href="http://www.sciodev.com/">www.sciodev.com</a></span><span lang="EN-US" style="color:#1F497D"></span></p>
</div>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"> </span></p>
</div>
“Any opinion expressed in this e-mail or any attached files are those of the individual and not necessarily those of Hoople Ltd. You should be aware that Hoople Ltd. monitors its email service. This e-mail and any attached files are confidential and intended
 solely for the use of the addressee. This communication may contain material protected by law from being passed on. If you are not the intended recipient and have received this e-mail in error, you are advised that any use, dissemination, forwarding, printing
 or copying of this e-mail is strictly prohibited. If you have received this e-mail in error please contact the sender immediately and destroy all copies of it.
</body>
</html>