I should also mention that I put a short script in cgi-bin to direct the requests to the right place:<div><br></div><div><div>!/bin/sh</div><div><br></div><div># This is a wrapper for the Xymon svcstatus.cgi script</div><div>
<br></div><div>#echo "does this work" >> /var/log/xymon/OneColor.log</div><div>#echo $0 >> /var/log/xymon/OneColor.log</div><div>#env >> /var/log/xymon/OneColor.log</div><div><br></div><div>. /opt/xymon/server/etc/cgioptions.cfg</div>
<div>exec /opt/xymon/server/ext/AllOneColorPages/OneColor.py -c what $REQUEST_URI</div><div><br></div><div>Thanks,</div><div>Larry Barber</div><br><div class="gmail_quote">On Wed, Mar 27, 2013 at 10:55 AM, Larry Barber <span dir="ltr"><<a href="mailto:lebarber@gmail.com" target="_blank">lebarber@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Here's a Python script I wrote that will create pages that show all the hosts/tests that have a certain color. You can put a stanza like this in xymonmenu.cfg:<div>
<br></div><div><div><span style="white-space:pre-wrap"> </span><a class="inner" href="/xymon-cgi/onecolor.sh?sort=host&color=red">All Reds</a> <span class='invis'> | </span></div>

<div><span style="white-space:pre-wrap">  </span><a class="inner" href="/xymon-cgi/onecolor.sh?sort=host&color=yellow">All Yellows</a> <span class='invis'> | </span></div>

<div><span style="white-space:pre-wrap">  </span><a class="inner" href="/xymon-cgi/onecolor.sh?sort=host&color=purple">All Purples</a> <span class='invis'> | </span></div>

<div><span style="white-space:pre-wrap">  </span><a class="inner" href="/xymon-cgi/onecolor.sh?sort=host&color=blue">All Blues</a> <span class='invis'> | </span></div>

<div><br></div><div>Some of the mechanism to determine the OS is unique to my setup, but it should probably still work with other setups, although the OS may show as "unknown". I use OS: tags in hosts.cfg to identify the operating systems. For those clients that use centralized configuration I also use what they send to the xymon server. </div>

<div><br></div><div>Thanks,</div><div>Larry Barber</div><div><div class="h5"><br><div class="gmail_quote">On Wed, Mar 27, 2013 at 10:20 AM, Bakkies Gatvol <span dir="ltr"><<a href="mailto:bakgat8@hotmail.com" target="_blank">bakgat8@hotmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">----------------------------------------<br>
> From: <a href="mailto:bakgat8@hotmail.com" target="_blank">bakgat8@hotmail.com</a><br>
> To: <a href="mailto:xymon@xymon.com" target="_blank">xymon@xymon.com</a><br>
> Date: Wed, 27 Mar 2013 11:03:51 -0400<br>
> Subject: [Xymon] list all purples<br>
<div><div>><br>
> I use to know how to list all purples with bbgen. I did try and google but had no success. Is there a way to list all purples in xymon?<br>
> _______________________________________________<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>
<br>
</div></div>Ok i found<br>
<br>
~/server/bin/xymongen --purplelog=/tmp/PURP<br>
<br>
but it gives me this - which may or may not be serious<br>
<br>
2013-03-27 11:14:26 xgetenv: Cannot find value for variable XYMONSERVERSECURECGIURL<br>
2013-03-27 11:14:26 xgetenv: Cannot find value for variable XYMONSERVERSECURECGIURL<br>
2013-03-27 11:14:26 xgetenv: Cannot find value for variable XYMONSERVERSECURECGIURL<br>
<br>
<br>
I have since cleaned the purples via a loop so at the moment I don't have any to list.<br>
<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></div></blockquote></div><br></div></div></div>
</blockquote></div><br></div>