<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:Consolas;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#1F497D">That’s one of the reasons that I’m slowly abandoning bbwin in favor of the new experimental Powershell client. (At least, that one is maintained.)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#1F497D">g<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> Xymon [mailto:xymon-bounces@xymon.com]
<b>On Behalf Of </b>Andy Smith<br>
<b>Sent:</b> Monday, October 13, 2014 05:21<br>
<b>To:</b> xymon@xymon.com<br>
<b>Subject:</b> [Xymon] File Monitoring BBWin Clients<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Hi,<o:p></o:p></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt">I am trying to alert when a log on a windows client is not being updated regularly.  I have this being returned in the Client Data :-<br>
<br>
[logfile:D:\XXXX\Logs\YYYY\latest-D.log]<br>
type:0x00020 (file)<br>
mode:777 (not implemented)<br>
linkcount:1<br>
owner:0 (not implemented)<br>
group:0 (not implemented)<br>
size:4978660<br>
atime:1413190800 (2014/10/13-09:00:00)<br>
ctime:1413190800 (2014/10/13-09:00:00)<br>
mtime:1413193801 (2014/10/13-09:50:01)<o:p></o:p></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt">and when I put (FILE "%.*latest-D.log" YELLOW mtime<900) in analysis.cfg, Xymon shows the file to be 138 years old :-<o:p></o:p></p>
<pre style="margin-bottom:12.0pt">File was modified 4294963716 seconds ago - should be <900<o:p></o:p></pre>
<pre style="margin-bottom:12.0pt">This is Xymon 4.3.13 and BBWin 0.13 but I see references to very old files  as long ago as 2009 (<a href="http://sourceforge.net/p/bbwin/discussion/460874/thread/b65f157b/">http://sourceforge.net/p/bbwin/discussion/460874/thread/b65f157b/</a>) so I guess this issue has been around for a long time.<o:p></o:p></pre>
<pre>My first thought is that when compared to Client Data from a Unix client, there is no <o:p></o:p></pre>
<pre style="margin-bottom:12.0pt">clock:1412960833 (2014/10/10-17:07:13)<o:p></o:p></pre>
<pre style="margin-bottom:12.0pt">line, but in check_file() in xymond/client_config.c, this appears to be covered:-<br><br>        if (clock == 0) clock = getcurrenttime(NULL);<br>        ctimedif = clock - ctime;<br>        atimedif = clock - atime;<br>        mtimedif = clock - mtime;<o:p></o:p></pre>
<pre>where clock is unsigned int, should that be time_t ?<br>-- <o:p></o:p></pre>
<pre>Andy<o:p></o:p></pre>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
</body>
</html>