<div dir="ltr">Thank you Neil<div><br></div><div style>So this would be an external script for me to put in the ext folder and then call it using the bbwin.cfg file correct. I am trying to understand the external scripts more and I have been doing a lot of reading. I wish I were more of a programmer.</div>

</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, May 14, 2013 at 8:33 AM, Neil Simmonds <span dir="ltr"><<a href="mailto:Neil.Simmonds@express-gifts.co.uk" target="_blank">Neil.Simmonds@express-gifts.co.uk</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="EN-GB" link="blue" vlink="purple">

<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:blue">Here’s a vbScript you could use, the example would flag red if C:\Data was > 300Mb in size<u></u><u></u></span></p>


<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:blue"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New"">testName = </span><span style="font-size:10.0pt;font-family:"Courier New";color:gray">"Folder"</span><span style="font-size:10.0pt;font-family:"Courier New""><br>


<span style>outputfilename = </span><span style="color:blue">Replace</span><span style>(testName,</span><span style="color:gray">"."</span><span style>,</span><span style="color:gray">""</span><span style>)</span><br>


<span style>strFilePath=</span><span style="color:gray">"C:\Program Files\BBWin\tmp"</span><br>
<span style>strProcessColour = </span><span style="color:gray">"green"</span><br>
<span style="color:blue">Set</span><span style> fso= </span><span style="color:blue">CreateObject</span><span style>(</span><span style="color:gray">"Scripting.FileSystemObject"</span><span style>)</span><br>
<br>
<span style="color:blue">Set</span><span style> f = fso.OpenTextFile(strFilePath & </span><span style="color:gray">"\"</span><span style> & outputfilename , </span><span style="color:maroon">8</span><span style> , </span><span style="color:blue">True</span><span style>)</span><br>


<br>
<span style="color:blue">dim</span><span style> FSO, objFolder,datafolder, foldername</span><br>
<br>
<span style>foldername = </span><span style="color:gray">"c:\Data"</span><br>
<br>
<span style="color:blue">If</span><span style> fso.FolderExists(foldername ) </span><span style="color:blue">Then</span><br>
<span style="color:blue">Set</span><span style> objFolder= FSO.GetFolder(foldername )  </span><span style="color:green">'getting folder size objFolder.Size\par</span><br>
<span style>ShowFolderDetails objFolder</span><br>
<span style>    </span><br>
<span style="color:blue">Sub</span><span style> ShowFolderDetails(oF)</span><br>
<span style>datafolder  = oF.Size / </span><span style="color:maroon">1048576</span><br>
<span style>    </span><span style="color:blue">If</span><span style> (datafolder > </span><span style="color:maroon">300</span><span style>) </span><span style="color:blue">Then</span><br>
<span style>        strProcessColour = </span><span style="color:gray">"red"</span><br>
<span style>        f.Write strProcessColour & </span><span style="color:gray">" "</span><span style> & </span><span style="color:blue">Date</span><span style> & </span><span style="color:gray">" "</span><span style> & </span><span style="color:blue">Time</span><span style> & </span><span style="color:blue">vbCrLf</span><span style> & </span><span style="color:blue">vbCrLf</span><br>


<span style>        f.Write </span><span style="color:gray">"Folder Name       : "</span><span style> & foldername & </span><span style="color:blue">vbCrLf</span><br>
<span style>        f.Write </span><span style="color:gray">"Folder Size (Mb)  : "</span><span style> & datafolder & </span><span style="color:blue">vbCrLf</span><br>
<span style>        f.Write </span><span style="color:gray">"Folder size exceeeds 300Mb"</span><br>
<span style>    </span><span style="color:blue">Else</span><br>
<span style>        strProcessColour = </span><span style="color:gray">"green"</span><br>
<span style>        f.Write strProcessColour & </span><span style="color:gray">" "</span><span style> & </span><span style="color:blue">Date</span><span style> & </span><span style="color:gray">" "</span><span style> & </span><span style="color:blue">Time</span><span style> & </span><span style="color:blue">vbCrLf</span><span style> & </span><span style="color:blue">vbCrLf</span><br>


<span style>        f.Write </span><span style="color:gray">"Folder Name       : "</span><span style> & foldername & </span><span style="color:blue">vbCrLf</span><br>
<span style>        f.Write </span><span style="color:gray">"Folder Size (Mb)  : "</span><span style> & datafolder & </span><span style="color:blue">vbCrLf</span><br>
<span style>        f.Write </span><span style="color:gray">"Folder Size OK"</span><span style> </span><br>
<span style>    </span><span style="color:blue">End</span><span style> </span><span style="color:blue">If</span><br>
<span style="color:blue">End</span><span style> </span><span style="color:blue">Sub</span><span style>    </span><br>
<span style="color:blue">End</span><span style> </span><span style="color:blue">If</span><br>
<br>
<span style>f.Close</span></span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:blue"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:blue"><u></u> <u></u></span></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt">
<div>
<div style="border:none;border-top:solid #e1e1e1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif"">From:</span></b><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif""> Xymon [mailto:<a href="mailto:xymon-bounces@xymon.com" target="_blank">xymon-bounces@xymon.com</a>]
<b>On Behalf Of </b>Ray Reuter<br>
<b>Sent:</b> 14 May 2013 12:26<br>
<b>To:</b> Martin Flemming<br>
<b>Cc:</b> <a href="mailto:xymon@xymon.com" target="_blank">xymon@xymon.com</a><br>
<b>Subject:</b> Re: [Xymon] Folder Size<u></u><u></u></span></p>
</div>
</div><div><div class="h5">
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">The host in question is a windows server. I should have mentioned that in the initial thread, I did read previously where it could be done with ease in the non-windows world but have found nothing for windows. It has a cifs share presented
 to it and we are trying to avoid having that particular folder grow beyond 3GB.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><u></u> <u></u></p>
<div>
<p class="MsoNormal">On Mon, May 13, 2013 at 2:42 PM, Martin Flemming <<a href="mailto:martin.flemming@desy.de" target="_blank">martin.flemming@desy.de</a>> wrote:<u></u><u></u></p>
<blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm">
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">On Mon, 13 May 2013, Ray Reuter wrote:<u></u><u></u></p>
<blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm">
<p class="MsoNormal">Does anyone know of a way to monitor the size of a folder? I am not a programmer so I figured I would reach out to you and see who might have done this already or knows of<br>
someone who has been successful.<u></u><u></u></p>
</blockquote>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<p class="MsoNormal">Hi !<br>
<br>
<br>
Something like in<br>
<br>
analysis.cfg<br>
<br>
HOST=server1<br>
DIR %^/var/log/.* size<2000000 TRACK<br>
<br>
and in client-local.cfg<br>
<br>
[server1]<br>
dir:`find /var/log -maxdepth 1 -type d`<br>
<br>
cheers,<br>
        martin<u></u><u></u></p>
<div>
<div>
<p class="MsoNormal"><br>
_______________________________________________<br>
Xymon mailing list<br>
<a href="mailto:Xymon@xymon.com" target="_blank">Xymon@xymon.com</a><br>
<a href="http://lists.xymon.com/mailman/listinfo/xymon" target="_blank">http://lists.xymon.com/mailman/listinfo/xymon</a><u></u><u></u></p>
</div>
</div>
</blockquote>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div></div></div>
</div>


<span style></span>

<p class="MsoNormal"><span style="font-size:9.0pt">Name & Registered Office:
EXPRESS GIFTS LIMITED, 2 GREGORY ST, HYDE, CHESHIRE, ENGLAND, SK14 4TH, Company
No. 00718151.</span></p>

<p class="MsoNormal" style="border:none;padding:0cm"><span style="font-size:9.0pt">Express
Gifts Limited is authorised and regulated by the Financial Services Authority</span></p>
<hr width="100%">

<p class="MsoNormal"><span style="font-size:9.0pt">NOTE: This email and any
information contained within or attached in a separate file is confidential and
intended solely for the Individual to whom it is addressed. The information or
data included is solely for the purpose indicated or previously agreed. Any
information or data included with this e-mail remains the property of Findel
PLC and the recipient will refrain from utilising the information for any
purpose other than that indicated and upon request will destroy the information
and remove it from their records. Any views or opinions presented are solely
those of the author and do not necessarily represent those of Findel PLC. If
you are not the intended recipient, be advised that you have received this
email in error and that any use, dissemination, forwarding, printing, or
copying of this email is strictly prohibited. No warranties or assurances are
made in relation to the safety and content of this e-mail and any attachments.
No liability is accepted for any consequences arising from it. Findel Plc
reserves the right to monitor all e-mail communications through its internal
and external networks. If you have received this email in error please notify
our IT helpdesk on <a href="tel:%2B44%280%29%201254%20303030" value="+441254303030" target="_blank">+44(0) 1254 303030</a><u></u><u></u></span></p>

<p class="MsoNormal"><span style="font-size:9.0pt"><u></u> <u></u></span></p>

</div>

</blockquote></div><br></div>