[Xymon] test for existence of directory on Windows
Malcolm Hunter
malcolm.hunter at gmx.com
Wed Mar 21 11:29:37 CET 2012
> ----- Original Message -----
> From: Neil Simmonds
> Sent: 03/21/12 10:08 AM
> To: xymon at xymon.com
> Subject: [Xymon] test for existence of directory on Windows
>
> I'm trying to set up a test to check for the existence of certain
> directories on windows. We have automated transfers that run but our
> users sometimes delete or move the directories by mistake causing the
> transfers to fail.
>
>
>
> I've configured client-local.cfg and analysis.cfg and the test is
> working, however if the directory is empty it alerts at yellow and says
>
>
>
> "Could not determine size of directory E:\dirtest"
>
>
>
> I'd like to either fix it so that it correctly recognises the directory
> exists or stop the yellow alert somehow,
>
>
>
> I thought of perhaps using "delayyellow=file:10000000 which would give
> me about 20 years before it would turn yellow but this is not ideal.
You could create a small hidden file in the folder - then it's never empty.
Malcolm
--
BBWin Development - The Windows client for Big Brother and Xymon
http://bbwin.sourceforge.net
http://xymon.sourceforge.net
More information about the Xymon
mailing list