<div dir="ltr">I decided to try something else.  I decided to create a display group for each type of server, and then specify host checks specific to that group.  For example...from analysis.cfg:<div><br><div><div>PAGE=DELTS2/LINUX</div>
<div>        PROC cron 1 -1 red</div><div>        PROC ntpd 1 -1 yellow</div><div><br></div><div>DISPLAYGROUP="Linux External Production Servers - Virtual"</div><div>        PROC vmware-guestd 1 -1 yellow</div><div>
        PROC /opt/tivoli/tsm/client/ba/bin/dsmc 1 -1 red</div><div>        PROC /opt/tivoli/tsm/client/ba/bin/dsmcad 1 -1 red</div><div><br></div><div>DISPLAYGROUP="Linux Internal Production Servers - Virtual"</div>
<div>        PROC vmware-guestd 1 -1 yellow</div><div>        PROC /opt/tivoli/tsm/client/ba/bin/dsmc 1 -1 red</div><div>        PROC /opt/tivoli/tsm/client/ba/bin/dsmcad 1 -1 red</div><div><br></div><div>DISPLAYGROUP="Linux Internal Production Servers - Physical"</div>
<div>        PROC /opt/tivoli/tsm/client/ba/bin/dsmc 1 -1 red</div><div>        PROC /opt/tivoli/tsm/client/ba/bin/dsmcad 1 -1 red</div><div><br></div><div>DISPLAYGROUP="Linux External Production Servers - Physical"</div>
<div>        PROC /opt/tivoli/tsm/client/ba/bin/dsmc 1 -1 red</div><div>        PROC /opt/tivoli/tsm/client/ba/bin/dsmcad 1 -1 red</div><div><br></div><div>PAGE=DELTS2/WIN</div><div>        SVC MpsSvc status=started startup=automatic</div>
<div><br></div><div>DISPLAYGROUP="Windows External Production Servers - Virtual"</div><div>        SVC VMTools status=started startup=automatic</div><div><br></div><div>DISPLAYGROUP="Windows Internal Production Servers - Virtual"</div>
<div>        SVC VMTools status=started startup=automatic</div></div></div><div><br></div><div style>And from hosts.cfg:</div><div style><div>page DELTS2 DELTS Servers - By Type</div><div>subpage LINUX Linux Servers</div>
<div>group Linux External Production Servers - Physical</div><div><br></div><div>group Linux External Production Servers - Virtual<br></div><div><br></div><div>group Linux Internal Production Servers - Physical<br></div><div>
<br></div><div style>.... and so on ...</div><div style><br></div><div style>I confirmed that each server only belongs to one group, and that the group name is unique across xymon.</div><div style><br></div><div style>For tee, I'm now getting:</div>
<div style><div> cron (found 1, req. 1 or more)</div><div> vmware-guestd (found 1, req. 1 or more)</div><div> /opt/tivoli/tsm/client/ba/bin/dsmc (found 1, req. 1 or more)</div><div> /opt/tivoli/tsm/client/ba/bin/dsmcad (found 1, req. 1 or more)</div>
<div> vmware-guestd (found 1, req. 1 or more)</div><div> /opt/tivoli/tsm/client/ba/bin/dsmc (found 1, req. 1 or more)</div><div> /opt/tivoli/tsm/client/ba/bin/dsmcad (found 1, req. 1 or more)</div><div> /opt/tivoli/tsm/client/ba/bin/dsmc (found 1, req. 1 or more)</div>
<div> /opt/tivoli/tsm/client/ba/bin/dsmcad (found 1, req. 1 or more)</div><div> /opt/tivoli/tsm/client/ba/bin/dsmc (found 1, req. 1 or more)</div><div> /opt/tivoli/tsm/client/ba/bin/dsmcad (found 1, req. 1 or more)</div><div>
 mysqld (found 2, req. 2 or more)</div><div><br></div><div style>So for the page declaration, I'm still only getting the first proc definition (ntpd is missing) and then I'm getting VMWare twice, and our backup client 4 times, even though it should only match once.  Then I'm getting the mysqld test, which is specified in a HOST=tee entry.</div>
<div style><br></div><div style>I've also noticed that these linux tests are now being applied against all linux and windows hosts in Xymon.  So I'm clearly abusing or misunderstanding the DISPLAYGROUP functionality.</div>
<div style><br></div><div style>Any advice?</div></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Dec 23, 2012 at 9:47 PM, Thomas Hawkins <span dir="ltr"><<a href="mailto:cornmaster@gmail.com" target="_blank">cornmaster@gmail.com</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>Thanks for the suggestion.  It didn't seem to work at all though.<br></div><div><br></div><div>
I think I have messed with the file so much now I can't remember what sort of worked and what didn't work at all.</div>
<div><br></div><div>I think I'm still stuck with the problem where only custom page declaration gets picked up, and only one of the directives in the group, plus anything in the specific host group.</div><div>
<br></div><div>So for this:</div><div class="im"><div><div>PAGE=DELTS2/LINUX</div><div>        PROC cron 1 -1 red "TEXT=crond : Task Scheduler"</div><div>        PROC ntpd 1 -1 yellow "TEXT=ntpd : Network Time Client"</div>

<div><br></div><div><div>PAGE=DELTS2/L-VM</div><div>        PROC vmware-guestd 1 -1 yellow "TEXT=VMWare Tools"</div></div><div><br></div><div><div>HOST=tee</div><div>        PROC mysqld 2 -1 red</div></div></div>

</div><div class="gmail_extra"><br>tee reports only for cron and mysql.  If I comment out cron, then I get ntpd and mysql.  If I move the vmware rule to the top of the list, I get vmware and mysql proc checks.  So it seems that only one test for a page specification gets reported on, and only the first one at the top of the page.</div>

<div class="gmail_extra"><br></div><div class="gmail_extra">At this point I should probably point out that I have 4.3.10 server, but for the most part 4.2.3 (I think) clients on linux, and bbwin .12 or .13 on windows.  However I don't think that will matter much.</div>
<span class="HOEnZb"><font color="#888888">
<div class="gmail_extra"><br></div><div class="gmail_extra">Thomas</div></font></span><div><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Dec 23, 2012 at 12:40 PM, Andrey Chervonets <span dir="ltr"><<a href="mailto:a.chervonets@cominder.eu" target="_blank">a.chervonets@cominder.eu</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">Try to assign hosts to variables like:<br>
<br>
$GROUP_PROD=host1,host2, host5<br>
$GROUP_TEST=host3,host6....<br>
<br>
$GROUP_ALL=$GROUP_PROD,$GROUP_<u></u>TEST<br>
etc.<br>
<br>
and then define rules using such variables instead of real hostnames or reg.expressions<br>
<br>
This is working for alerts, may be it is working for analysis as well. Not checked yet.<br>
<br>
<br>
Best regards,<br>
<br>
Andrey Chervonets<br>
----------------------<br>
CoMinder Ltd.<br>
<a href="http://www.cominder.eu/" target="_blank">http://www.cominder.eu/</a><br>
<br>
<br>
On 22.12.2012 13:00, <a href="mailto:xymon-request@xymon.com" target="_blank">xymon-request@xymon.com</a> 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">
Re: Custom Server Rules for analysis.cfg<br>
</blockquote><div><div>
<br>
______________________________<u></u>_________________<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/<u></u>mailman/listinfo/xymon</a><br>
</div></div></blockquote></div><br></div></div></div></div>
</blockquote></div><br></div>