<div dir="ltr">Hi David and thanks for the reply<div><br></div><div>I've corrected the regex but the test is still not going red.</div><div><br></div><div>Could you share your client-local.cfg?</div><div><br></div><div>Thanks</div><div><br></div><div>CC</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Apr 18, 2016 at 8:40 AM, David Baldwin <span dir="ltr"><<a href="mailto:david.baldwin@ausport.gov.au" target="_blank">david.baldwin@ausport.gov.au</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000"><span class="">
    <div>On 18/04/2016 9:42 am, Colin Coe wrote:<br>
    </div>
    <blockquote type="cite">
      
      <div dir="ltr">
        <div>Hi all</div>
        <div><br>
        </div>
        <div>I'm trying to monitor some log files on Windows 7 clients. 
          I have this in the analysis.cfg file:</div>
        <div>--- </div>
        <div>HOST=%client.*</div>
        <div>    FILE "C:\users\user\Documents\ClientTiming*log"
          SIZE<500M yellow TRACK</div>
        <div>    FILE "C:\users\user\Documents\ClientTiming*log"
          SIZE<1G red TRACK</div>
        <div>    FILE "C:\users\user\Documents\ClientTrace*log"
           SIZE<500M yellow TRACK</div>
        <div>    FILE "C:\users\user\Documents\ClientTrace*log"
           SIZE<1G red TRACK</div>
        <div>---</div>
        <div><br>
        </div>
        <div>The files are displayed but regardless of the file size,
          the test stays green.</div>
        <div><br>
        </div>
        <div>I want the test to go red when the files exceed 1GB and
          yellow when greater than 500MB.</div>
        <div><br>
        </div>
        <div>Any ideas where I'm going wrong?</div>
        <br>
      </div>
    </blockquote></span>
    Is your filename supposed to be a regex? Wildcard matching isn't
    builtin.<br>
    <br>
    Try:<br>
    <br>
    FILE "%C:\users\user\Documents\ClientTiming.*log" SIZE<500M
    yellow TRACK<br>
    <br>
    For starters.<br>
    <br>
    Also, have you checked the file data is in your client data report
    to match? Note that client-local.cfg only supports explicit
    filenames unless this is an extension for whatever Windows Xymon
    client you are using.<br>
    <br>
    An alternative approach is to monitor the size of the folder
    containing the log files. OK if only a few designated logs in there.
    Not so good if you've got unlimited history, etc.<br>
    <br>
    I have the following for my Windows clients:<br>
    <br>
    (in /etc/client-local.cfg)<br>
    <br>
    <tt>[win32]</tt><tt><br>
    </tt><tt>dir:C:\inetpub</tt><tt><br>
    </tt><tt>dir:C:\ProgramData\Microsoft\Windows\WER</tt><tt><br>
    </tt><tt>dir:C:\Windows\Logs\CBS</tt><tt><br>
    </tt><tt>dir:C:\Windows\Temp</tt><br>
    <br>
    (in analysis.cfg)<br>
    <tt>        DIR C:\Windows\Logs\CBS yellow SIZE<200000
      TRACK=C-CBS</tt><tt><br>
    </tt><tt>        DIR C:\Windows\Logs\CBS red SIZE<500000</tt><tt><br>
    </tt><tt>        DIR C:\ProgramData\Microsoft\Windows\WER yellow
      SIZE<200000 TRACK=C-WER</tt><tt><br>
    </tt><tt>        DIR C:\ProgramData\Microsoft\Windows\WER red
      SIZE<500000</tt><tt><br>
    </tt><tt>        DIR C:\Windows\Temp yellow SIZE<200000
      TRACK=C-Windows-Temp EXHOST=%(sccm)</tt><tt><br>
    </tt><tt>        DIR C:\Windows\Temp red SIZE<500000
      EXHOST=%(sccm)</tt><tt><br>
    </tt><br>
    <br>
    David.<br>
    <pre cols="72">-- 
David Baldwin - Senior Systems Administrator (Datacentres + Networks)
Digital Information Management and Technology
Australian Sports Commission          <a href="http://ausport.gov.au" target="_blank">http://ausport.gov.au</a>
Tel 02 62147830 Fax 02 62141830       PO Box 176 Belconnen ACT 2616
<a href="mailto:david.baldwin@ausport.gov.au" target="_blank">david.baldwin@ausport.gov.au</a>          1 Leverrier Street Bruce ACT 2617
Our Values: RESPECT + INTEGRITY + TEAMWORK + EXCELLENCE
</pre>
  <br>
<hr>
Keep up to date with what's happening in Australian sport visit <a href="http://www.ausport.gov.au" target="_blank">www.ausport.gov.au</a>
<br><br>
<font size="-2" face="arial">This message is intended for the addressee named and may contain confidential and privileged information.  If you are not the intended recipient please note that any form of distribution, copying or use of this communication or the information in it is strictly prohibited and may be unlawful.  If you receive this message in error, please delete it and notify the sender.</font>
<hr>
</div>

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