<div dir="ltr"><div>It'd be nice to see support for chrony as an alternative to ntp (ntpdate or otherwise).</div><div><br></div><div>=G=<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Apr 11, 2019 at 5:18 PM Axel Beckert <<a href="mailto:abe@deuxchevaux.org">abe@deuxchevaux.org</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">Hi JC,<br>
<br>
On Thu, Apr 11, 2019 at 01:07:11PM -0700, Japheth Cleaver wrote:<br>
[ntpsec's ntpdate dropped -p option]<br>
> Axel: Is that ending up in xymonnet.log, or is it elsewhere?<br>
<br>
It's ending up in the report itself:<br>
<br>
----------------------------------------------------------------------<br>
Thu Apr 11 18:40:41 2019 ntp NOT ok<br>
<br>
Service ntp on kote5 is not OK : Service unavailable<br>
<br>
Command: ntpdate -u -q -p 1 127.0.0.1 2>&1<br>
<br>
ntpdate: -p is no longer supported.<br>
ntpdig: <a href="http://127.0.0.1" rel="noreferrer" target="_blank">127.0.0.1</a>: Response dropped: stratum 0, probable KOD packet<br>
ntpdig: no eligible servers<br>
----------------------------------------------------------------------<br>
<br>
(The last two lines are from a not fully started ntpd.)<br>
<br>
> And over STDERR?<br>
<br>
Over STDERR, yes.<br>
<br>
It also does seem to still exit with zero, so the only result is this<br>
warning (unrecognized by Xymon as such) in the report.<br>
<br>
So I'd say, as of now, it's indeed safe to keep "-p 1" as it still<br>
works. The errors in the example (which actually triggered my mail<br>
initially) above were caused by other issues, i.e. the red state was<br>
legit. :-)<br>
<br>
Later (i.e. with a fixed configuration and ntpd running for a while)<br>
it looked like this:<br>
<br>
----------------------------------------------------------------------<br>
Thu Apr 11 18:59:44 2019 ntp ok<br>
<br>
Service ntp on kote5 is OK (up)<br>
<br>
Command: ntpdate -u -q 127.0.0.1 2>&1<br>
<br>
2019-04-11 18:59:44.967208 (-0200) -0.000018 +/- 0.000064 127.0.0.1 s3 no-leap<br>
----------------------------------------------------------------------<br>
<br>
In comparison to old ntpdate looks like this:<br>
<br>
----------------------------------------------------------------------<br>
Fri Mar 29 13:42:50 2019 ntp ok<br>
<br>
Service ntp on kote5 is OK (up)<br>
<br>
Command: ntpdate -u -q -p 1 127.0.0.1 2>&1<br>
<br>
server 127.0.0.1, stratum 2, offset -0.000018, delay 0.02570<br>
29 Mar 13:42:53 ntpdate[25715]: adjust time server 127.0.0.1 offset -0.000018 sec<br>
----------------------------------------------------------------------<br>
<br>
(No proper time format, no time zone, no year, duplicated information,<br>
multi-line, etc. :-)<br>
<br>
                Kind regards, Axel<br>
-- <br>
PGP: 2FF9CD59612616B5      /~\  Plain Text Ribbon Campaign, <a href="http://arc.pasp.de/" rel="noreferrer" target="_blank">http://arc.pasp.de/</a><br>
Mail: <a href="mailto:abe@deuxchevaux.org" target="_blank">abe@deuxchevaux.org</a>  \ /  Say No to HTML in E-Mail and Usenet<br>
Mail+Jabber: <a href="mailto:abe@noone.org" target="_blank">abe@noone.org</a>  X<br>
<a href="https://axel.beckert.ch/" rel="noreferrer" target="_blank">https://axel.beckert.ch/</a>   / \  I love long mails: <a href="https://email.is-not-s.ms/" rel="noreferrer" target="_blank">https://email.is-not-s.ms/</a><br>
_______________________________________________<br>
Xymon mailing list<br>
<a href="mailto:Xymon@xymon.com" target="_blank">Xymon@xymon.com</a><br>
<a href="http://lists.xymon.com/mailman/listinfo/xymon" rel="noreferrer" target="_blank">http://lists.xymon.com/mailman/listinfo/xymon</a><br>
</blockquote></div>