<p dir="ltr">In xymon-4.3.12 it sends the client-local block for the hostname, if it is defined OR the block for the OS, correct?? Not a blend of the two, with host-specific entries overriding the generic entries, right??</p>
<p dir="ltr">Does that change in a later release? I need a better way to manage it...</p>
<p dir="ltr">Ralph Mitchell </p>
<div class="gmail_quote">On Oct 27, 2014 9:11 PM, "Jeremy Laidman" <<a href="mailto:jlaidman@rebel-it.com.au">jlaidman@rebel-it.com.au</a>> wrote:<br type="attribution"><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">On 28 October 2014 08:45, Gregory J. DeCecco <span dir="ltr"><<a href="mailto:turranx@hotmail.com" target="_blank">turranx@hotmail.com</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">Is this the expected behavior?</blockquote><div><br></div><div>Yes - if you know what to expect!  ;-)</div><div><br></div><div>One of the major performance improvements that Xymon has over its predecessor BigBrother, is that it keeps state in memory, and doesn't have to re-read its configuration files every 5 minutes.  In some cases, this means that changes are not visible immediately, and require either a bit of time to pass, or an action to take place.  This is the case for many configuration files used by Xymon.</div><div><br></div><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">  I can see how this behavior would get in the way of architecting and rapid testing of a client-local.cfg file with multiple OSType, HostClass, and Hostname entries.</blockquote></div><br>The contents of the file client-local.cfg is held in memory by xymond, and is not updated unless xymond detects a change.  The xymond process can be given a HUP signal to tell it to re-check all of its configuration files for changes, and reload details as required.</div><div class="gmail_extra"><br></div><div class="gmail_extra">You might find this sequence useful:</div><div class="gmail_extra"><br></div><div class="gmail_extra">On the Xymon server:</div><div class="gmail_extra"><br></div><div class="gmail_extra">1. Create a new entry for server01 in hosts.cfg</div><div class="gmail_extra"><br></div><div class="gmail_extra">2. Send xymond a HUP signal:</div><div class="gmail_extra"><br></div><div class="gmail_extra">  sudo -u xymon pkill -HUP xymond$</div><div class="gmail_extra"><br></div><div class="gmail_extra">3. Run: xymon 127.0.0.1 "hostinfo host=server01 fields=XMH_CLASS,XMH_OS"</div><div class="gmail_extra"><br></div><div class="gmail_extra">This shows the in-memory values for class and OS that xymond uses.  As there has never been a client message, the values will be empty.</div><div class="gmail_extra"><br></div><div class="gmail_extra">4. Run:</div><div class="gmail_extra">  a) xymon 127.0.0.1 "client server01.bogos bogos"</div><div class="gmail_extra">  b) xymon 127.0.0.1 "hostinfo host=server01 fields=XMH_CLASS,XMH_OS"</div><div class="gmail_extra"><br></div><div class="gmail_extra">This will show "bogos|bogos".  Note that the "client" message gets nothing from client-local.cfg.</div><div class="gmail_extra"><br></div><div class="gmail_extra">5. Run:</div><div class="gmail_extra">  a) xymon 127.0.0.1 "client server01.win128 win128"</div><div class="gmail_extra">  b) xymon 127.0.0.1 "hostinfo host=server01 fields=XMH_CLASS,XMH_OS"</div><div class="gmail_extra"><br></div><div class="gmail_extra">This will show "bogos|win128".  Also, no output from client-local.cfg, but if there were an entry for [bogos] or [win128] it would have shown something, with preference given to [bogos].</div><div class="gmail_extra"><br></div><div class="gmail_extra">6. Run:</div><div class="gmail_extra">  a) touch hosts.cfg</div><div class="gmail_extra">  b) sudo -u xymon pkill -HUP xymond$</div><div class="gmail_extra"><div class="gmail_extra">  c) xymon 127.0.0.1 "hostinfo host=server01 fields=XMH_CLASS,XMH_OS"</div><div><br></div></div><div class="gmail_extra">This will show "|" - that is, no values.</div><div class="gmail_extra"><br></div><div class="gmail_extra"><div class="gmail_extra">7. Run:</div><div class="gmail_extra">  a) xymon 127.0.0.1 "client server01.win16 win16"</div><div class="gmail_extra">  b) xymon 127.0.0.1 "hostinfo host=server01 fields=XMH_CLASS,XMH_OS"</div><div class="gmail_extra"><br></div><div class="gmail_extra">This will show "win16|win16".</div><div class="gmail_extra"><br></div><div class="gmail_extra">8. Run:</div><div class="gmail_extra">  a) xymon 127.0.0.1 "client server01.aix bogos"</div><div class="gmail_extra"><br></div><div class="gmail_extra">This should give the [aix] section of client-local.cfg.</div><div class="gmail_extra"><br></div><div class="gmail_extra">HTH</div><div class="gmail_extra"><br></div><div class="gmail_extra">J</div><div class="gmail_extra"><br></div></div></div>
<br>_______________________________________________<br>
Xymon mailing list<br>
<a href="mailto:Xymon@xymon.com">Xymon@xymon.com</a><br>
<a href="http://lists.xymon.com/mailman/listinfo/xymon" target="_blank">http://lists.xymon.com/mailman/listinfo/xymon</a><br>
<br></blockquote></div>