<div dir="ltr"><div><div>Hi,<br><br></div>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)<br><br></div>and when I put (FILE "%.*latest-D.log" YELLOW mtime<900) in analysis.cfg, Xymon shows the file to be 138 years old :-<br><br><pre>File was modified 4294963716 seconds ago - should be <900<br><br></pre><pre>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.<br><br></pre><pre>My first thought is that when compared to Client Data from a Unix client, there is no <br></pre><pre>clock:1412960833 (2014/10/10-17:07:13)<br><br></pre><pre>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;<br><br></pre><pre>where clock is unsigned int, should that be time_t ?<br>-- <br></pre><pre>Andy<br></pre><br></div>