<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">On 18/04/2016 9:42 am, Colin Coe wrote:<br>
    </div>
    <blockquote
cite="mid:CANvHAxTH4+vnCWXvuPba9HLuCutxvsZbD4SdoVrj0yGxzXkYdg@mail.gmail.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      <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>
    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 class="moz-signature" cols="72">-- 
David Baldwin - Senior Systems Administrator (Datacentres + Networks)
Digital Information Management and Technology
Australian Sports Commission          <a class="moz-txt-link-freetext" href="http://ausport.gov.au">http://ausport.gov.au</a>
Tel 02 62147830 Fax 02 62141830       PO Box 176 Belconnen ACT 2616
<a class="moz-txt-link-abbreviated" href="mailto:david.baldwin@ausport.gov.au">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">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>
</body>
</html>