<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">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><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><div class="gmail_extra">Jeremy</div><div class="gmail_extra"><br></div></div>