<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Hi Zak,</div><div><br></div><div>I can reproduce this in v.2.28 and the latest v2.34 on this server, and judging by the time on the Xymon server the uptime message (which has a timestamp of 16:26:38) is sent during the following message:<br></div><div><br></div><div>2019-02-01 16:26:38  Sending output for procruntime<br>2019-02-01 16:26:38  Using ASCII encoding<br>2019-02-01 16:26:38  Connecting to host x.x.x.x<br>2019-02-01 16:26:39  Sent 96 bytes to server<br>2019-02-01 16:26:39  Received 0 bytes from server</div><div><br></div><div>The uptime in 
<span style="color:rgb(3,45,253)">c:\xymon-lastcollect.txt</span>

is correct when I follow the procedure you described, but I think that may be calculated later:</div><div><br></div><div>2019-02-01 16:26:39  Sending to server<br>2019-02-01 16:26:39  Using ASCII encoding<br>2019-02-01 16:26:40  Connecting to host x.x.x.x<br>2019-02-01 16:26:40  Sent 912722 bytes to server<br>2019-02-01 16:26:40  Received 578 bytes from server<br></div><div><br></div><div>From the above 
<span style="color:rgb(3,45,253)">xymon-lastcollect.txt</span>:</div><div><br></div><div>[date]<br>Fri 01 Feb 16:26:39 2019<br></div><div><br></div><div>-------------</div><div><br></div><div>That log was from v.2.28.  I think tried with v2.34 and it had the same behaviour but the time on the Xymon server for the uptime report was 25 seconds before I manually ran the xymonclient.ps1 script.  However, there was no other way it could have been reported to the server and time of the servers are in sync.  So, I don't know how that happened unless it is using the time from a file that it is sending using externaldatalocation - except those files don't have seconds in the time.  They are sent earlier than the main report though.<br></div><div><br></div><div><div><div dir="ltr" class="gmail_signature"><div dir="ltr"><span><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr">
<div style="text-align:left"><span style="font-size:12px"><span style="font-family:arial,helvetica,sans-serif">Kind regards,<br><br>SebA<br><br></span></span></div></div></div></div></div></div></div></span></div></div></div><br></div></div></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, 31 Jan 2019 at 09:42, Beck, Zak <<a href="mailto:zak.beck@accenture.com">zak.beck@accenture.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">





<div lang="EN-GB">
<div class="gmail-m_-476667083948634672WordSection1">
<p class="MsoNormal"><span style="color:rgb(3,45,253)">Hi Seb<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:rgb(3,45,253)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="color:rgb(3,45,253)">I can’t replicate this one.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:rgb(3,45,253)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="color:rgb(3,45,253)">What do you have in analysis.cfg for UP?<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:rgb(3,45,253)"><u></u> <u></u></span></p>
<p><b>UP bootlimit toolonglimit [color]</b> <u></u><u></u></p>
<p>The cpu status goes yellow/red if the system has been up for less than "bootlimit" time, or longer than "toolonglimit". The time is in minutes, or you can add h/d/w for hours/days/weeks - eg. "2h" for two hours, or "4w" for 4 weeks.
<u></u><u></u></p>
<p>Defaults: bootlimit=1h, toolonglimit=-1 (infinite), color=yellow. <u></u><u></u></p>
<p class="MsoNormal"><span style="color:rgb(3,45,253)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="color:rgb(3,45,253)">Secondly, on a server where this happens, can you open an administrator powershell prompt and try this:<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:rgb(3,45,253)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="color:rgb(3,45,253)">Stop-Service xymonpsclient<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:rgb(3,45,253)">cd "c:\program files\xymon"<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:rgb(3,45,253)">.\xymonclient.ps1<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:rgb(3,45,253)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="color:rgb(3,45,253)">And press ctrl-c when you see this line:<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:rgb(3,45,253)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="color:rgb(3,45,253)">2019-01-31 09:24:19  Delaying until next run: 30 seconds<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:rgb(3,45,253)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="color:rgb(3,45,253)">Then open c:\xymon-lastcollect.txt and tell me what you get under [uptime] – here’s an example:<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:rgb(3,45,253)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="color:rgb(3,45,253)">[uptime]<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:rgb(3,45,253)">sec: 408029<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:rgb(3,45,253)">4 days 17 hours 20 minutes 29 seconds<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:rgb(3,45,253)">Bootup: 20190126160344.494100+000<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:rgb(3,45,253)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="color:rgb(3,45,253)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="color:rgb(3,45,253)">You can then go back to powershell and
<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:rgb(3,45,253)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="color:rgb(3,45,253)">Start-Service xymonpsclient<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:rgb(3,45,253)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="color:rgb(3,45,253)">Paths above subject to where you have installed the client.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:rgb(3,45,253)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="color:rgb(3,45,253)">Thanks<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:rgb(3,45,253)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="color:rgb(3,45,253)">Zak <u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:rgb(3,45,253)"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span lang="EN-US">From:</span></b><span lang="EN-US"> Xymon <<a href="mailto:xymon-bounces@xymon.com" target="_blank">xymon-bounces@xymon.com</a>>
<b>On Behalf Of </b>SebA<br>
<b>Sent:</b> Wednesday, 30 January 2019 18:19<br>
<b>To:</b> Xymon Mailing List <<a href="mailto:xymon@xymon.com" target="_blank">xymon@xymon.com</a>><br>
<b>Subject:</b> [External] [Xymon] Xymon WinPSclient uptime bug<u></u><u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<p class="MsoNormal">I've noticed a minor bug in the Xymon WinPSclient uptime report - after stopping and starting the service it says "
<u></u><u></u></p>
<pre>Machine recently rebooted<u></u><u></u></pre>
<p class="MsoNormal">" in the uptime column on the Xymon server display.  I don't mind it going yellow - arguably a warning might be in order here, but if so, it should say 'Xymon client recently started'.  Once the client has been running for a bit, it reports
 the correct uptime.<br clear="all">
<u></u><u></u></p>
<div>
<p class="MsoNormal"><br clear="all">
<u></u><u></u></p>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12pt"><span style="font-size:9pt;font-family:"Arial",sans-serif">Kind regards,<br>
<br>
SebA</span><u></u><u></u></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
<hr>
<font size="1" face="Arial" color="Gray"><br>
This message is for the designated recipient only and may contain privileged, proprietary, or otherwise confidential information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the e-mail by
 you is prohibited. Where allowed by local law, electronic communications with Accenture and its affiliates, including e-mail and instant messaging (including content), may be scanned by our systems for the purposes of information security and assessment of
 internal compliance with Accenture policy. Your privacy is important to us. Accenture uses your personal data only in compliance with data protection laws. For further information on how Accenture processes your personal data, please see our privacy statement
 at <a href="https://www.accenture.com/us-en/privacy-policy" target="_blank">https://www.accenture.com/us-en/privacy-policy</a>. <br>
______________________________________________________________________________________<br>
<br>
<a href="http://www.accenture.com" target="_blank">www.accenture.com</a><br>
</font>
</div>

</blockquote></div>