<div dir="ltr">By "whole server" I assume you just mean restarting the xymon server (app, not machine)?  I usually restart the server but that's because I'm impatient and want immediate gratification for those types of changes.  As far as I recall, that shouldn't be required.  It also shouldn't hurt to do so since it restarts fairly quickly (at least for my small environment).<div><br></div><div>=G=</div></div><br><div class="gmail_quote"><div dir="ltr">On Tue, Oct 16, 2018 at 3:29 PM Timothy Williams <<a href="mailto:tlwilliams4@vcu.edu">tlwilliams4@vcu.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">The [name] section lines are working OK; I am not trying to use regex, just specific hosts to merge with [powershell] defaults. </div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">We are testing by restarting the xymon services, any off chance it needs a whole server reboot?</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small"><br></div></div><br><div class="gmail_quote"><div dir="ltr">On Tue, Oct 16, 2018 at 3:21 PM Galen Johnson <<a href="mailto:solitaryr@gmail.com" target="_blank">solitaryr@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div dir="ltr"><div>From the client-local.cfg man page:</div><div><br></div><div><i><b>FILE FORMAT</b><br>The  file is divided into sections, delimited by "[name]" lines.  A section name can be either an operating system identifier - linux, solaris, hp-ux, aix, freebsd, openbsd, netbsd, darwin - a class, or a hostname. When deciding which section to send to a client, Xymon will  first  look for  a section named after the hostname of the client; if such a section does not exist, it will look for a section named by the operating system of the client. So you can configure special configurations for individual hosts, and have a default configuration for all other hosts of a certain type.<br><br><span style="background-color:rgb(255,255,0)">It will often be practical to use regular expressions for hostnames.  To do this you must use<br></span></i></div><div><i><span style="background-color:rgb(255,255,0)"><br></span></i></div><div><i><span style="background-color:rgb(255,255,0)">           [host=<expression>]<br></span></i></div><div><i><span style="background-color:rgb(255,255,0)"><br></span></i></div><div><i><span style="background-color:rgb(255,255,0)">where <expression> is a Perl-compatible regular expression</span>. The same kind of matching can be done on operating system or host class, using<br><br>           [os=<expresssion>]<br>           [class=<expression>]<br><br>Apart from the section delimiter, the file format is free-form, or rather it is defined by the tools that make use of the configuration.</i></div><div><br></div><div><br></div><div>I just went through this recently so it was fresh in my mind :-).</div><div><br></div><div>=G=<br></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Tue, Oct 16, 2018 at 1:50 PM Thomas Eckert <<a href="mailto:thomas.eckert@it-eckert.de" target="_blank">thomas.eckert@it-eckert.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto">That's what works for me. I remember that the correct syntax, in particular with regexes, is slightly different across the config files.</div><div class="gmail_extra"><br><div class="gmail_quote">On Oct 16, 2018 19:39, Timothy Williams <<a href="mailto:tlwilliams4@vcu.edu" target="_blank">tlwilliams4@vcu.edu</a>> wrote:<br type="attribution"><blockquote class="m_5574527214305874886m_1466183938543054546m_-1935798333174502666quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div style="font-family:'verdana',sans-serif;font-size:small">Yes, that's right about tasks.cfg. It had other start parameters, and have added the merge.</div><div style="font-family:'verdana',sans-serif;font-size:small"><br></div><div><span style="font-family:'verdana',sans-serif;font-size:small">Do you think that it needs [host=server1] rather than just [server1]?</span><br clear="all"></div><div><span style="font-family:'verdana',sans-serif;font-size:small"><br></span></div><div><span style="font-family:'verdana',sans-serif;font-size:small">Tim</span></div><div><div dir="ltr" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"></div></div></div></div></div></div></div></div></div></div><br><div class="m_5574527214305874886m_1466183938543054546m_-1935798333174502666elided-text"><div dir="ltr">On Tue, Oct 16, 2018 at 1:30 PM Thomas Eckert <<a href="mailto:thomas.eckert@it-eckert.de" target="_blank">thomas.eckert@it-eckert.de</a>> wrote:<br></div><blockquote style="margin:0 0 0 0.8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div>Hi Tim,</div><div><br></div><div>for future readers: There is an error in the man page `xymond(8)`: `--merge-clientconfig` in `xymond(8)` is **wrong**. The option `--merge-clientlocal` documented in `client-local.cfg(5)` is correct.</div><div>You added this in `tasks.cfg` to the launch of `xymond`, right?</div><div><br></div><div>I have this running successfully in a Linux-environment with host-specific (`[host=%www.*]`) and class (`[linux]`)-sections and the sections merge fine.</div><div><br></div><div>Cheers</div><div>Thomas</div><div><div><blockquote><div>On 16 Oct 2018, at 17:40, Timothy Williams <<a href="mailto:tlwilliams4@vcu.edu" target="_blank">tlwilliams4@vcu.edu</a>> wrote:</div><br><div><div dir="ltr"><div style="font-family:'verdana',sans-serif;font-size:small">We have set up a new 4.3.28 xymon server, and will be migrating hosts to it in the next few weeks. On it I would like to start to use the --merge-clientlocal command. In testing, Windows powershell clients pick up either the individual host section OR the powershell section, it does not merge. Are there subtleties not in the man-pages that people have found to get it to work? (note that the xymond man-page states to use --merge-clientconfig, but that doesn't work either)</div><div style="font-family:'verdana',sans-serif;font-size:small"><br></div><div style="font-family:'verdana',sans-serif;font-size:small">Could it be the section/host headings, or order? I have:</div><div style="font-family:'verdana',sans-serif;font-size:small"><br></div><div style="font-family:'verdana',sans-serif;font-size:small">[server1]</div><div style="font-family:'verdana',sans-serif;font-size:small">file:somefile</div><div style="font-family:'verdana',sans-serif;font-size:small"><br></div><div style="font-family:'verdana',sans-serif;font-size:small">[server2]</div><div style="font-family:'verdana',sans-serif;font-size:small">file:different file</div><div style="font-family:'verdana',sans-serif;font-size:small"><br></div><div style="font-family:'verdana',sans-serif;font-size:small">[os=powershell] (also tried [class=powershell] and [powershell] alone)</div><div style="font-family:'verdana',sans-serif;font-size:small">xymonlogsend</div><div style="font-family:'verdana',sans-serif;font-size:small">clientversion:2.28:<a href="http://url/" target="_blank">http://url</a></div><div><div dir="ltr" data-smartmail="gmail_signature"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><p><span style="font-family:'arial',sans-serif"><span style="font-family:'verdana',sans-serif;font-size:small">Thanks,<br></span></span><span style="font-family:'verdana',sans-serif">Tim Williams</span></p><p><span style="font-family:'arial',sans-serif"><span style="font-family:'verdana',sans-serif;font-size:small"><br></span></span></p></div></div></div></div></div></div></div></div></div></div>
_______________________________________________<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" target="_blank">http://lists.xymon.com/mailman/listinfo/xymon</a><br></div></blockquote></div><br></div></div></blockquote></div>
</blockquote></div><br></div>_______________________________________________<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>
</blockquote></div>
</blockquote></div>