<div dir="ltr"><div class="gmail_quote"><div dir="ltr">On Thu, Jan 14, 2016 at 1:43 AM <<a href="mailto:EDSchminke@hormel.com">EDSchminke@hormel.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Is there anything I can do to reduce the 10 minute interval for testing<br>
purposes?<br></blockquote><div><br></div><div>You can do as JC said.  Alternatively, manually run the xymonclient.sh process (under xymoncmd as xymon user) and it should immediately pick up any changes from the server.  This is a bit of an overkill for simply fetching the update, and I don't know how it might interfere with the normal process of running the client every 5 minutes.  So you can instead do: echo "client $MACHINE.linux linux" | $XYMON $XYMSRV > /path/to/logfetch.$MACHINE.cfg</div><div><br></div><div>I've never really been in enough of a hurry to do this, and I simply waited out the 5+5 minutes.</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I sent this file manually to the xymon server, but got no output<br>
<br>
sh-4.1$ $XYMON $XYMSRV "@" < $XYMONTMP/msg.lpcobwas2p.hfc.ad.txt<br>
sh-4.1$<br></blockquote><div><br></div><div>Hmm.  Check out the first line of the file, see if it's different from the "EOT" command-line you used.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Sending your suggested test string yields the following:<br>
<br>
sh-4.1$ $XYMON $XYMSRV "@" << EOT<br>
client $MACHINE.linux linux<br>
EOT<br>
log:/var/log/messages:10240<br>
ignore MARK<br></blockquote><div><br></div><div>That's a good sign.  I think this proves that all is OK on the Xymon server (except possibly a mismatch of the hostname somehow).</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
sh-4.1$ echo $MACHINE<br>
lpcobwas2p,hfc,ad<br>
sh-4.1$<br>
<br>
Interesting... but a) why doesn't that come back with the message file and<br></blockquote><div><br></div><div>Yes, that is indeed the crux of the problem.  What you need to do is to modify the command-line to be close to the file's first line, until it fails.  Or modify the file's first line close to the command-line until it works.  Then the last thing you change is where the problem is.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
b) it still doesn't match the hostname<br></blockquote><div><br></div><div>Exactly which hostname are you referring to?  The hostname in hosts.cfg?  The hostname in the CLIENT: specification in hosts.cfg?  The output of "uname -n" on the client?  Or $MACHINE on the client?</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Lastly.. I'm still not clear on the correct format of a hostname definition<br>
for client/etc/client-local.cfg<br></blockquote><div><br></div><div>For the client config to be fetched correctly, the important thing is that $MACHINE on the client, under xymoncmd, is a match to the entry in the client-local.cfg file, and that's all.  It doesn't matter what appears in the hosts.cfg file.  The client gives xymond its name (and OS), and xymond gives the client the matching section - the hostname if it is listed, otherwise the OS name.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Should it be<br>
<br>
lpcobwas2p (just hostname)<br>
<a href="http://lpcobwas2p.hfc.ad" rel="noreferrer" target="_blank">lpcobwas2p.hfc.ad</a> (period)<br>
lpcobwas2p,hfc,ad (commas)<br></blockquote><div><br></div><div>Based on your commands showing $MACHINE, and the name of the msg file, it should be the middle entry, FQDN with periods.  But you said none of these works.</div><div><br></div><div>Cheers</div><div>Jeremy</div><div><br></div></div></div>