Xymon Mailing List Archive search

list all purples

6 messages in this thread

list Bakkies Gatvol · Wed, 27 Mar 2013 11:03:51 -0400 ·
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?
list Bakkies Gatvol · Wed, 27 Mar 2013 11:20:15 -0400 ·
quoted from Bakkies Gatvol
From: user-66e2e196cd54@xymon.invalid
To: xymon at xymon.com
Date: Wed, 27 Mar 2013 11:03:51 -0400
Subject: [Xymon] list all purples

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?
Ok i found 

~/server/bin/xymongen --purplelog=/tmp/PURP

but it gives me this - which may or may not be serious 

2013-03-27 11:14:26 xgetenv: Cannot find value for variable XYMONSERVERSECURECGIURL
2013-03-27 11:14:26 xgetenv: Cannot find value for variable XYMONSERVERSECURECGIURL
2013-03-27 11:14:26 xgetenv: Cannot find value for variable XYMONSERVERSECURECGIURL


I have since cleaned the purples via a loop so at the moment I don't have any to list.
list David Mills · Wed, 27 Mar 2013 15:44:33 +0000 ·
Bakkies --

This is what I use:

$XYMON_HOME/bin/xymon $ XYMSRV "xymondboard color=purple"

HTH!

david
quoted from Bakkies Gatvol

-----Original Message-----
From: xymon-bounces at xymon.com [mailto:xymon-bounces at xymon.com] On Behalf Of Bakkies Gatvol
Sent: Wednesday, March 27, 2013 10:20 AM
To: Xymon Mailing List
Subject: EXT :Re: [Xymon] list all purples
From: user-66e2e196cd54@xymon.invalid
To: xymon at xymon.com
Date: Wed, 27 Mar 2013 11:03:51 -0400
Subject: [Xymon] list all purples

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?
Ok i found 

~/server/bin/xymongen --purplelog=/tmp/PURP

but it gives me this - which may or may not be serious 

2013-03-27 11:14:26 xgetenv: Cannot find value for variable XYMONSERVERSECURECGIURL
2013-03-27 11:14:26 xgetenv: Cannot find value for variable XYMONSERVERSECURECGIURL
2013-03-27 11:14:26 xgetenv: Cannot find value for variable XYMONSERVERSECURECGIURL


I have since cleaned the purples via a loop so at the moment I don't have any to list.
list Larry Barber · Wed, 27 Mar 2013 10:55:57 -0500 ·
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:

<a class="inner" href="/xymon-cgi/onecolor.sh?sort=host&color=red">All
Reds</a> <span class='invis'> | </span>
<a class="inner" href="/xymon-cgi/onecolor.sh?sort=host&color=yellow">All
Yellows</a> <span class='invis'> | </span>
<a class="inner" href="/xymon-cgi/onecolor.sh?sort=host&color=purple">All
Purples</a> <span class='invis'> | </span>
<a class="inner" href="/xymon-cgi/onecolor.sh?sort=host&color=blue">All
Blues</a> <span class='invis'> | </span>

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.

Thanks,
Larry Barber
quoted from Bakkies Gatvol

On Wed, Mar 27, 2013 at 10:20 AM, Bakkies Gatvol <user-66e2e196cd54@xymon.invalid>wrote:
From: user-66e2e196cd54@xymon.invalid
To: xymon at xymon.com
Date: Wed, 27 Mar 2013 11:03:51 -0400
Subject: [Xymon] list all purples

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?
Ok i found

~/server/bin/xymongen --purplelog=/tmp/PURP

but it gives me this - which may or may not be serious

2013-03-27 11:14:26 xgetenv: Cannot find value for variable
XYMONSERVERSECURECGIURL
2013-03-27 11:14:26 xgetenv: Cannot find value for variable
XYMONSERVERSECURECGIURL
2013-03-27 11:14:26 xgetenv: Cannot find value for variable
XYMONSERVERSECURECGIURL


I have since cleaned the purples via a loop so at the moment I don't have
any to list.

Attachments (1)
list Larry Barber · Wed, 27 Mar 2013 10:57:49 -0500 ·
I should also mention that I put a short script in cgi-bin to direct the
requests to the right place:

!/bin/sh

# This is a wrapper for the Xymon svcstatus.cgi script

#echo "does this work" >> /var/log/xymon/OneColor.log
#echo $0 >> /var/log/xymon/OneColor.log
#env >> /var/log/xymon/OneColor.log

. /opt/xymon/server/etc/cgioptions.cfg
exec /opt/xymon/server/ext/AllOneColorPages/OneColor.py -c what $REQUEST_URI
quoted from Larry Barber

Thanks,
Larry Barber

On Wed, Mar 27, 2013 at 10:55 AM, Larry Barber <user-6ef9c2864140@xymon.invalid> wrote:
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:

<a class="inner" href="/xymon-cgi/onecolor.sh?sort=host&color=red">All
Reds</a> <span class='invis'> | </span>
 <a class="inner"
href="/xymon-cgi/onecolor.sh?sort=host&color=yellow">All Yellows</a> <span
class='invis'> | </span>
 <a class="inner"
href="/xymon-cgi/onecolor.sh?sort=host&color=purple">All Purples</a> <span
class='invis'> | </span>
 <a class="inner" href="/xymon-cgi/onecolor.sh?sort=host&color=blue">All
Blues</a> <span class='invis'> | </span>

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.

Thanks,
Larry Barber

On Wed, Mar 27, 2013 at 10:20 AM, Bakkies Gatvol <user-66e2e196cd54@xymon.invalid>wrote:
From: user-66e2e196cd54@xymon.invalid
To: xymon at xymon.com
Date: Wed, 27 Mar 2013 11:03:51 -0400
Subject: [Xymon] list all purples

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?
Ok i found

~/server/bin/xymongen --purplelog=/tmp/PURP

but it gives me this - which may or may not be serious

2013-03-27 11:14:26 xgetenv: Cannot find value for variable
XYMONSERVERSECURECGIURL
2013-03-27 11:14:26 xgetenv: Cannot find value for variable
XYMONSERVERSECURECGIURL
2013-03-27 11:14:26 xgetenv: Cannot find value for variable
XYMONSERVERSECURECGIURL


I have since cleaned the purples via a loop so at the moment I don't have
any to list.

list Henrik Størner · Wed, 27 Mar 2013 17:00:11 +0100 ·
quoted from Bakkies Gatvol
On 27-03-2013 16:20, Bakkies Gatvol wrote:
From: user-66e2e196cd54@xymon.invalid
To: xymon at xymon.com
Date: Wed, 27 Mar 2013 11:03:51 -0400
Subject: [Xymon] list all purples

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?
Ok i found

~/server/bin/xymongen --purplelog=/tmp/PURP

but it gives me this - which may or may not be serious

2013-03-27 11:14:26 xgetenv: Cannot find value for variable XYMONSERVERSECURECGIURL
2013-03-27 11:14:26 xgetenv: Cannot find value for variable XYMONSERVERSECURECGIURL
2013-03-27 11:14:26 xgetenv: Cannot find value for variable XYMONSERVERSECURECGIURL
prefix your command with "xymoncmd" and it will setup all of the config 
variables for you. Like

~/server/bin/xymoncmd xymongen --purplelog=/tmp/PURP


Another way of doing what you want to do, is to query xymond:

    xymon 127.0.0.1 "xymondboard color=purle fields=hostname,testname"


Regards,
Henrik