<div dir="ltr">Many thanks, I've got it working now.</div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Mar 31, 2016 at 12:19 AM, J.C. Cleaver <span dir="ltr"><<a href="mailto:cleaver@terabithia.org" target="_blank">cleaver@terabithia.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Tue, March 29, 2016 8:11 pm, Colin Coe wrote:<br>
> Hi all<br>
><br>
> I'm trying to monitor a couple of files on a bunch of Windows clients.<br>
><br>
> /etc/xymon/analysis.cfg<br>
> HOST=%winclnt.*<br>
>         FILE C:\users\user.domain\Documents\Timing.log       SIZE>500M<br>
> yellow<br>
>         FILE C:\users\user.domain\Documents\Timing.log       SIZE>1G red<br>
>         FILE C:\users\user.domain\Documents\Trace.log        SIZE>500M<br>
> yellow<br>
>         FILE C:\users\user.domain\Documents\Trace.log        SIZE>1G red<br>
><br>
> /etc/xymon/client-local.cfg<br>
> file:C:\users\user.domain\Documents\Timing.log   SIZE>1G red<br>
> file:C:\users\user.domain\Documents\Trace.log    SIZE>500M yellow<br>
><br>
> Looking at the man page for client-local.cfg, its colon (:) delimited.<br>
> How<br>
> do I specify the file path for Windows clients?<br>
><br>
<br>
<br>
</span>The fields in client-local.cfg (once the appropriate [section] is found)<br>
are, strictly speaking, arbitrary and interpreted by the client, so this,<br>
in the immediate case, would be a WinPS question. As you've noted, the<br>
analysis.cfg section is what's used back in xymond_client, which is<br>
space-delimited and can do quote-wrapping or regular expressions.<br>
<br>
<br>
I think a quoted string (' ... ') might be the best syntax addition here<br>
(for both logfetch and WinPS). Adding normal escapability using the<br>
expected method of backslashes would IMO make the Windows path even<br>
worse...<br>
<br>
Another option is to use `exec` commands to 'ECHO filename' (or DIR /B),<br>
or a glob-like wildcard, but I'm not certain if WinPS supports either.<br>
<br>
<br>
HTH,<br>
-jc<br>
<br>
</blockquote></div><br></div>