<div dir="ltr"><div><div>Hi Jeremy,<br><br></div>Thanks for this workaround! I implemented the script as you described and it seems to work great!<br><br>It still shows the original command (with the hard-coded parameters) on the ntp status page (which makes sense), but I can tell that it's working because the time spent on the "NTP Tests Executed" part of xymonnet went from taking ~14 seconds to ~0.738 seconds for the 7 hosts I currently have set up to use the ntp test. (We were keeping the number of hosts that were using the ntp test at a bare minimum to prevent any issues with xymonnet going over the 5 minute limit, and this was the bare minimum number of hosts we could go down to. We had many, many more hosts (over 170, at least) with ntp checks in our old Xymon server running RHEL 5, before moving to our current Xymon server running RHEL 7, where we had the issues with ntpdate).<br><br></div><div>Of course, I'd prefer this issue be fixed in the actual Xymon code, so I don't have to use this workaround to make the ntp tests work, but this will do for the time being....<br><br></div><div>I do hope this can get resolved somehow in the Xymon code sometime in the near future!<br><br></div><div>Thanks again, Jeremy, for this great workaround!<br></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><div>--<br></div><div>Matt Vander Werf<br>HPC System Administrator<br>University of Notre Dame<br>Center for Research Computing - Union Station<br>506 W. South Street<br>South Bend, IN 46601<br></div>Phone: (574) 631-0692</div></div></div>
<br><div class="gmail_quote">On Mon, Sep 28, 2015 at 8:50 PM, Jeremy Laidman <span dir="ltr"><<a href="mailto:jlaidman@rebel-it.com.au" target="_blank">jlaidman@rebel-it.com.au</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span class="">On 25 September 2015 at 23:07, Matt Vander Werf <span dir="ltr"><<a href="mailto:mvanderw@nd.edu" target="_blank">mvanderw@nd.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><bump><br><div class="gmail_extra"><br></div><div class="gmail_extra">Any response to this e-mail? Just wanted to make sure it wasn't missed....</div></div></blockquote><div><br></div></span><div>In the mean time, here's a work-around you could use.</div><div><br></div><div>First create a script named /usr/local/bin/xymon-ntpdate:</div><div><br></div><div>#!/bin/sh</div><div>while [ "$2" ]; do shift; done</div><div>ntpdate -p 1 -u -q $1</div><div><br></div><div>Now, define NTPDATE=/usr/local/bin/xymon-ntpdate</div><div><br></div><div>This script simply throws away all of the switches, and only keeps the IP address given by xymonnet, adding its own parameters as required.</div><div><br></div><div>You could probably squeeze this into NTPDATE definition, something like this (untested):</div><div><br></div><div>NTPDATE="sh -c 'while [ .$1 != . ]; do shift; done; ntpdate -p 1 -u -q $1'"</div><div><br></div><div>I'd go with a separate script.</div><div><br></div><div>To be honest, I don't really know why the parameters were hard-coded into xymonnet in the first place, and not defined in NTPDATE.  Doing the latter would make it much easier to tune for the environment or substitute a different command with completely different parameters.</div></div><br></div><div class="gmail_extra">Cheers</div><span class="HOEnZb"><font color="#888888"><div class="gmail_extra">Jeremy</div><div class="gmail_extra"><br></div></font></span></div>
</blockquote></div><br></div></div>