<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Peter,<br>
<br>
It's Windows, so uses "\" not "/" as path separator.<br>
<br>
Two pieces required in two config files:<br>
<br>
section in client-local.cfg under host to be checked - can use
either file: or log: depending on whether you are just interested
in metadata or also want to inspect new content (e.g. logfile):<br>
<br>
<tt>[myhost.mydomain]</tt><tt><br>
</tt><tt><a class="moz-txt-link-freetext" href="file:C:\MyFolder\MyFile.log">file:C:\MyFolder\MyFile.log</a></tt><tt><br>
</tt><tt>log:C:\MyFolder\MyFile.log:10240</tt><tt><br>
</tt><br>
section in analysis.cfg - example will go red unless file is
created in past 10 days:<br>
<br>
<tt>FILE C:\MyFolder\MyFile.log MTIME<864000 red</tt><tt><br>
</tt><br>
On the "files" test for the host, there should be a link for the
file test which should display the section of the client report -
sample below is based on using log: in client-local.cfg:<br>
<br>
<pre>[logfile:C:\MyFolder\MyFile.log]
type:100000 (file)
mode:777 (not implemented)
linkcount:1
owner:0 (MYDOMAIN\myuser)
group:0 (MYDOMAIN\mygroup)
size:11100
atime:1510103234 (2017/11/08-12:07:14)
ctime:1509427381 (2017/10/31-16:23:01)
mtime:1513142264 (2017/12/13-16:17:44)
FileVersion:
FileDescription:
</pre>
</div>
<font size="2">If that is missing, there is also a link at the foot
of the page to "Client data" - look for [file:...] or
[logfile:...] headers<br>
<br>
David.<br>
</font>
<blockquote type="cite"
cite="mid:OFB095B42B.575F5D1C-ONCA2581FA.00762770-CA2581FA.007831A0@cenitex.vic.gov.au"><font
face="sans-serif" size="2">Hi David</font>
<br>
<font face="sans-serif" size="2">I tried using xymonPSClient but
get
then same results.</font>
<br>
<br>
<font face="sans-serif" size="2">I think the problem is somewhere
in
the analysis file.</font>
<br>
<font face="sans-serif" size="2">The line I am using is</font>
<br>
<br>
<font face="sans-serif" size="2">FILE /bginfo/Junk.txt
RED mtime<600</font>
<br>
<br>
<font face="sans-serif" size="2">I have also tried</font>
<br>
<br>
<font face="sans-serif" size="2">FILE c:/bginfo/Junk.txt
RED mtime<600</font>
<br>
<br>
<font face="sans-serif" size="2">without success.</font>
<br>
<br>
<br>
<br>
<font face="sans-serif" size="2">Cheers</font>
<br>
<font face="Calibri" size="2" color="#2f2f2f"><b>Peter Wain|Senior
Infrastructure
Support | Strategy, Capability and Innovation Division</b></font><font
face="Calibri" size="2" color="#3f8080"><b><br>
Forest, Fire and Regions | </b>Department of Environment,
Land, Water and
Planning</font><font face="Calibri" size="2"><br>
Level 3, 8 Nicholson Street, East Melbourne VIC 3002<b> <br>
</b> <b>M</b>: 0490 416 756<b> T</b>:(03)96379645 <b>E</b>:
<a class="moz-txt-link-abbreviated" href="mailto:Peter.Wain@delwp.vic.gov.a">Peter.Wain@delwp.vic.gov.a</a></font><font face="sans-serif"
size="2">u</font>
<table>
<tbody>
<tr valign="top">
<td><font face="Arial" size="2"> </font><a
href="http://www.delwp.vic.gov.au/"
moz-do-not-send="true"><img
src="cid:part1.DE43DD7C.C89714B5@ausport.gov.au"
class=""></a><font face="Arial" size="2">
</font><a href="http://www.delwp.vic.gov.au/facebook"
moz-do-not-send="true"><img
src="cid:part3.37A917CE.1EC04BE6@ausport.gov.au"
class=""></a><font face="Arial" size="2">
</font><a href="https://twitter.com/DELWP_Vic"
moz-do-not-send="true"><img
src="cid:part5.A462FF8A.16CE8130@ausport.gov.au"
class=""></a><font face="Arial" size="2">
</font><a
href="https://www.linkedin.com/company/department-of-environment-land-water-&-planning"
moz-do-not-send="true"><img
src="cid:part7.568918B0.8D81CD37@ausport.gov.au"
class=""></a><font face="Arial" size="2">
</font><a
href="https://www.youtube.com/c/DELWPVicGovAustralia"
moz-do-not-send="true"><img
src="cid:part9.48425D4F.A4F9F048@ausport.gov.au"
class=""></a><font face="Arial" size="2">
</font>
</td>
</tr>
<tr>
<td><br>
</td>
</tr>
</tbody>
</table>
<br>
<br>
<br>
<br>
<br>
<font face="sans-serif" size="1" color="#5f5f5f">From:
</font><font face="sans-serif" size="1">David Baldwin
<a class="moz-txt-link-rfc2396E" href="mailto:david.baldwin@ausport.gov.au"><david.baldwin@ausport.gov.au></a></font>
<br>
<font face="sans-serif" size="1" color="#5f5f5f">To:
</font><font face="sans-serif" size="1"><a class="moz-txt-link-rfc2396E" href="mailto:peter.wain@delwp.vic.gov.au"><peter.wain@delwp.vic.gov.au></a>,
<a class="moz-txt-link-rfc2396E" href="mailto:xymon@xymon.com"><xymon@xymon.com></a>, </font>
<br>
<font face="sans-serif" size="1" color="#5f5f5f">Date:
</font><font face="sans-serif" size="1">15/12/2017 11:56 AM</font>
<br>
<font face="sans-serif" size="1" color="#5f5f5f">Subject:
</font><font face="sans-serif" size="1">Re: [Xymon]
Xymon mtime (on Windows client)</font>
<br>
<hr noshade="noshade">
<br>
<br>
<br>
<font size="3">Peter,<br>
<br>
Which client are you running? BBWin or Powershell?<br>
<br>
I was just dealing with this issue - I have some files that
should be generated
each day and so wanted to check MTIME did not get too old.
Problem was,
when the file was generated it appeared to be really old, and
took about
11 hours before the test worked - coincidentally what the local
time zone
offset is. Turns out BBWin generates epoch time (seconds since
1/1/1970)
with timezone offset applied.<br>
<br>
So I switched to using Powershell client on those hosts and
problem solved.<br>
<br>
Windows client XymonPSClient has been updated to v2.27. You can
download
it here: </font><a
href="https://urldefense.proofpoint.com/v2/url?u=https-3A__sourceforge.net_p_xymon_code_HEAD_tree_sandbox_WinPSClient_&d=DwMDaQ&c=JnBkUqWXzx2bz-3a05d47Q&r=ceSJsc9yrv7h2zucpUr__6g_H_J_dr9bwLQi3w-LGj8&m=exaUw7mMYU2BNhg4Fv23Wm8KKG_5dSRvzNH3ox0bYmc&s=mpGzwrv8w26VufVEzcYN8UXyUThOQLcwgiNQjHGmPhw&e="
moz-do-not-send="true"><font size="3" color="blue"><u>https://sourceforge.net/p/xymon/code/HEAD/tree/sandbox/WinPSClient/</u></font></a><font
size="3"><br>
<br>
David.</font>
<br>
<font face="Arial" size="2">Hi</font><font size="3"> </font>
<p><font face="Arial" size="2"> I am attempting (without much
luck)
to get the mtime working. I want an alert to change to red if
the file
is older than 10 minutes. The file resides on a Windows 2012r2
box.</font><font size="3">
</font>
</p>
<p><font face="Arial" size="2">The details are</font><font
size="3"> </font>
</p>
<p><font face="Arial" size="2">Server Ubuntu 16.04.3.LTS</font><font
size="3">
</font>
</p>
<p><font face="Arial" size="2">Xymon: xymon-4.3.28</font><font
size="3">
</font>
</p>
<p><font face="Arial" size="2">Client-local.cfg</font><font
size="3"> </font>
</p>
<p><font face="Arial" size="2">[MGTPW0D01W]</font><font size="3">
</font><font size="3" color="blue"><u><br>
</u></font><a href="FILE:///C:/Bginfo/Junk.txt"
moz-do-not-send="true"><font face="Arial" size="2"
color="blue"><u>FILE:C:/Bginfo/Junk.txt</u></font></a><font
size="3">
</font>
</p>
<p><font face="Arial" size="2">Analysis.cfg</font><font size="3">
</font>
</p>
<p><font face="Arial" size="2">HOST=MGTPW0D01W</font><font
size="3"> </font><font face="Arial" size="2"><br>
FILE /Bginfo/junk.txt mtime<300
RED</font><font size="3"> </font><font face="Arial" size="2"><br>
</font><font size="3"><br>
</font><font face="Arial" size="2"><br>
XYMON</font><font size="3"> </font>
</p>
<p><font face="Arial" size="2">The Xymon display page shows the
file is older
than 10 minutes but does not update the display.</font><font
size="3"> </font>
</p>
<p><img src="cid:part13.732ECC3B.75389E3D@ausport.gov.au" class=""
height="218" width="289">
</p>
<p><img src="cid:part14.ACFFD8A6.A011AF4E@ausport.gov.au" class=""
height="54" width="338">
</p>
<p><font face="Arial" size="2">Any help would be greatly
appreciated.</font><font size="3">
</font>
</p>
<p><font face="Arial" size="2">Cheers </font>
</p>
<p><font face="Arial" size="2">Peter</font><font size="3"> </font>
</p>
<p><font size="3"><br>
</font><font face="Arial" size="2" color="#2f2f2f"><b><br>
Peter Wain|Senior Infrastructure Support | Strategy,
Capability and Innovation
Division</b></font><font face="Arial" size="2"
color="#3f8080"><b><br>
Forest, Fire and Regions | </b>Department of Environment,
Land, Water and
Planning</font><font face="Arial" size="2"><br>
Level 3, 8 Nicholson Street, East Melbourne VIC 3002<b> <br>
M</b>: 0490 416 756<b> T</b>:(03)96379645 <b>E</b>: </font><a
href="mailto:Peter.Wain@delwp.vic.gov.au"
moz-do-not-send="true"><font face="Arial" size="2"
color="blue"><u>Peter.Wain@delwp.vic.gov.au</u></font></a><font
size="3">
</font>
<table>
<tbody>
<tr valign="top">
<td><font face="Arial" size="2"> </font><a
href="http://www.delwp.vic.gov.au/"
moz-do-not-send="true"><img
src="cid:part1.DE43DD7C.C89714B5@ausport.gov.au"
class="" height="48" width="463"></a><font
face="Arial" size="2">
</font><a href="http://www.delwp.vic.gov.au/facebook"
moz-do-not-send="true"><img
src="cid:part3.37A917CE.1EC04BE6@ausport.gov.au"
class="" height="34" width="34"></a><font
face="Arial" size="2">
</font><a
href="https://urldefense.proofpoint.com/v2/url?u=https-3A__twitter.com_DELWP-5FVic&d=DwMDaQ&c=JnBkUqWXzx2bz-3a05d47Q&r=ceSJsc9yrv7h2zucpUr__6g_H_J_dr9bwLQi3w-LGj8&m=exaUw7mMYU2BNhg4Fv23Wm8KKG_5dSRvzNH3ox0bYmc&s=EHWkNBs51DN1DxWirAtQQZPRj7yNL3N_mmP4TKTpel4&e="
moz-do-not-send="true"><img
src="cid:part5.A462FF8A.16CE8130@ausport.gov.au"
class="" height="33" width="33"></a><font
face="Arial" size="2">
</font><a
href="https://urldefense.proofpoint.com/v2/url?u=https-3A__www.linkedin.com_company_department-2Dof-2Denvironment-2Dland-2Dwater-2D-26-2Dplanning&d=DwMDaQ&c=JnBkUqWXzx2bz-3a05d47Q&r=ceSJsc9yrv7h2zucpUr__6g_H_J_dr9bwLQi3w-LGj8&m=exaUw7mMYU2BNhg4Fv23Wm8KKG_5dSRvzNH3ox0bYmc&s=PVLHUOa19SXl9lrnoqaIyN0bf95xFDAdFlNBEJPEuyQ&e="
moz-do-not-send="true"><img
src="cid:part7.568918B0.8D81CD37@ausport.gov.au"
class="" height="33" width="33"></a><font
face="Arial" size="2">
</font><a
href="https://urldefense.proofpoint.com/v2/url?u=https-3A__www.youtube.com_c_DELWPVicGovAustralia&d=DwMDaQ&c=JnBkUqWXzx2bz-3a05d47Q&r=ceSJsc9yrv7h2zucpUr__6g_H_J_dr9bwLQi3w-LGj8&m=exaUw7mMYU2BNhg4Fv23Wm8KKG_5dSRvzNH3ox0bYmc&s=RjQ86LlhE7w5kHR2KCcMcnrRFzMnNsKb8gmQhjiawzo&e="
moz-do-not-send="true"><img
src="cid:part9.48425D4F.A4F9F048@ausport.gov.au"
class="" height="33" width="33"></a><font
face="Arial" size="2">
</font>
</td>
</tr>
<tr>
<td><br>
</td>
</tr>
</tbody>
</table>
<br>
<font size="3"><br>
</font>
</p>
<p>
<br>
<tt><font size="3">_______________________________________________<br>
Xymon mailing list<br>
</font></tt><a href="mailto:Xymon@xymon.com"
moz-do-not-send="true"><tt><font size="3" color="blue"><u>Xymon@xymon.com</u></font></tt></a><tt><font
size="3"><br>
</font></tt><a
href="https://urldefense.proofpoint.com/v2/url?u=http-3A__lists.xymon.com_mailman_listinfo_xymon&d=DwMDaQ&c=JnBkUqWXzx2bz-3a05d47Q&r=ceSJsc9yrv7h2zucpUr__6g_H_J_dr9bwLQi3w-LGj8&m=exaUw7mMYU2BNhg4Fv23Wm8KKG_5dSRvzNH3ox0bYmc&s=5Iqigk_NlqehqyzNCRE3wCvaHvO4m0a80qQ56GnwtY0&e="
moz-do-not-send="true"><tt><font size="3" color="blue"><u>http://lists.xymon.com/mailman/listinfo/xymon</u></font></tt></a><tt><font
size="3"><br>
</font></tt>
<br>
<font size="3"><br>
</font>
<br>
<tt><font size="3">-- <br>
David Baldwin - Senior Systems Administrator (Datacentres +
Networks)<br>
Digital Information Management and Technology<br>
Australian Sports Commission </font></tt><a
href="https://urldefense.proofpoint.com/v2/url?u=http-3A__ausport.gov.au&d=DwMDaQ&c=JnBkUqWXzx2bz-3a05d47Q&r=ceSJsc9yrv7h2zucpUr__6g_H_J_dr9bwLQi3w-LGj8&m=exaUw7mMYU2BNhg4Fv23Wm8KKG_5dSRvzNH3ox0bYmc&s=5cBAxB6hzaCyZlGYLDucCHGnH3ATb7cPrsMpLMbbyoY&e="
moz-do-not-send="true"><tt><font size="3" color="blue"><u>http://ausport.gov.au</u></font></tt></a><tt><font
size="3"><br>
Tel 02 62147830 Fax 02 62141830 PO Box 176 Belconnen
ACT 2616<br>
</font></tt><a href="mailto:david.baldwin@ausport.gov.au"
moz-do-not-send="true"><tt><font size="3" color="blue"><u>david.baldwin@ausport.gov.au</u></font></tt></a><tt><font
size="3">
1 Leverrier Street Bruce ACT 2617<br>
Our Values: RESPECT + INTEGRITY + TEAMWORK + EXCELLENCE<br>
</font></tt>
<br>
<font size="3"><br>
</font>
</p>
<hr><font size="3">Keep up to date with what's happening in
Australian sport
visit </font><a
href="https://urldefense.proofpoint.com/v2/url?u=http-3A__www.ausport.gov.au&d=DwMDaQ&c=JnBkUqWXzx2bz-3a05d47Q&r=ceSJsc9yrv7h2zucpUr__6g_H_J_dr9bwLQi3w-LGj8&m=exaUw7mMYU2BNhg4Fv23Wm8KKG_5dSRvzNH3ox0bYmc&s=XtPWVacdGg0oWnfrloihuVGTyEbrfk-a7mCxy-w4mSQ&e="
moz-do-not-send="true"><font size="3" color="blue"><u>www.ausport.gov.au</u></font></a><font
size="3">
<br>
</font><font face="Arial" size="1"><br>
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><font size="3">
</font>
<hr>
<br>
</blockquote>
<br>
<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>
</body>
</html>