[Xymon] How to verify DIR content with wildcards on a Windows host?
Anaïs RABINOIT
Anais.RABINOIT at somei.fr
Tue Apr 17 11:27:30 CEST 2018
Hi everyone,
I have to check if a directory on a windows host contains files with a specific extension.
If it was a Unix/Linux host, i just have to write something like that i guess :
client-local.cfg :
file:`find /path/mydir/*.tst`
analysis.cfg :
FILE %(/path/mydir/*.tst) noexist
But how to do it for a Windows host? Is this possible ?
I tried this for example :
client-local.cfg :
file:`cmd /c "dir /b /s C:\path\mydir\*.tst"`
or
file:`cmd /c "dir /b /s \path\mydir\*.tst"`
analysis.cfg :
FILE "%C:\path\mydir\*.tst" noexist
But it doesn't work :(
Regards,
Anaïs
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20180417/85b1f4d2/attachment.html>
More information about the Xymon
mailing list