Xymon Mailing List Archive search

Setting up a new non-green page for a specific list of systems

7 messages in this thread

list Steve B · Fri, 14 Feb 2014 16:59:50 +0100 ·
I would like to have a non-green page that only shows network devices (at
the moment I just have the one setup with all machines) and saw the
following in a previous exchange of emails:

Alternatively, you can set up a new non-green page for just that
specific list of systems.
Look here for more information. http://www.hswn.dk/hobbiton/2008/05/msg00121.html


Was wondering if the old hobbiton archives were out there somewhere so I
could read that linked post (from 2008) as it seemed to have helped a
couple of users or alternatively some pointers as to how to set up a second
or third non-green page to show machines I select.

thanks

Steve
list John Thurston · Fri, 14 Feb 2014 08:22:33 -0900 ·
quoted from Steve B
On 2/14/2014 6:59 AM, Steve B wrote:
I would like to have a non-green page that only shows network devices (at
the moment I just have the one setup with all machines) and saw the
following in a previous exchange of emails:

Alternatively, you can set up a new non-green page for just that
specific list of systems.
Look here for more information. http://www.hswn.dk/hobbiton/2008/05/msg00121.html
http://lists.xymon.com/archive/2008-September/021103.html


-- 
    Do things because you should, not just because you can.

John Thurston    XXX-XXX-XXXX
user-ce4d79d99bab@xymon.invalid
Enterprise Technology Services
Department of Administration
State of Alaska
list Steve B · Tue, 18 Feb 2014 10:43:38 +0100 ·
Thanks John,

but unfortunately the link you provided points to the same URL I cannot get
to.
quoted from John Thurston


On Fri, Feb 14, 2014 at 6:22 PM, John Thurston <user-ce4d79d99bab@xymon.invalid>wrote:
On 2/14/2014 6:59 AM, Steve B wrote:
I would like to have a non-green page that only shows network devices (at
the moment I just have the one setup with all machines) and saw the
following in a previous exchange of emails:

Alternatively, you can set up a new non-green page for just that
specific list of systems.

Look here for more information. http://www.hswn.
dk/hobbiton/2008/05/msg00121.html
quoted from John Thurston
http://lists.xymon.com/archive/2008-September/021103.html


--
   Do things because you should, not just because you can.

John Thurston    XXX-XXX-XXXX
user-ce4d79d99bab@xymon.invalid
Enterprise Technology Services
Department of Administration
State of Alaska

list Jeremy Laidman · Tue, 18 Mar 2014 20:24:20 +1100 ·
http://lists.xymon.com/archive/2008-May/018931.html


On 18 February 2014 20:43, Steve B <user-df463d3c0721@xymon.invalid> wrote:
Thanks John,

but unfortunately the link you provided points to the same URL I cannot
get to.


On Fri, Feb 14, 2014 at 6:22 PM, John Thurston <user-ce4d79d99bab@xymon.invalid>wrote:
On 2/14/2014 6:59 AM, Steve B wrote:
I would like to have a non-green page that only shows network devices (at
the moment I just have the one setup with all machines) and saw the
following in a previous exchange of emails:

Alternatively, you can set up a new non-green page for just that
specific list of systems.
Look here for more information. http://www.hswn.
dk/hobbiton/2008/05/msg00121.html
http://lists.xymon.com/archive/2008-September/021103.html


--
   Do things because you should, not just because you can.

John Thurston    XXX-XXX-XXXX
user-ce4d79d99bab@xymon.invalid
Enterprise Technology Services
Department of Administration
State of Alaska

list Steve B · Tue, 18 Mar 2014 16:39:30 +0100 ·
Hey thanks a lot for that Jeremy, just had a meeting about this so your
timing was much appreciated.
Not sure I can use another bb-hosts page though as all the servers I want
on bb3 are on the main master bb-hosts.
Will investigate
thanks again!


On Tue, Mar 18, 2014 at 10:24 AM, Jeremy Laidman
quoted from Jeremy Laidman
<user-71895fb2e44c@xymon.invalid>wrote:
http://lists.xymon.com/archive/2008-May/018931.html


On 18 February 2014 20:43, Steve B <user-df463d3c0721@xymon.invalid> wrote:
Thanks John,

but unfortunately the link you provided points to the same URL I cannot
get to.


On Fri, Feb 14, 2014 at 6:22 PM, John Thurston <user-ce4d79d99bab@xymon.invalid>wrote:
On 2/14/2014 6:59 AM, Steve B wrote:
I would like to have a non-green page that only shows network devices
(at
the moment I just have the one setup with all machines) and saw the
following in a previous exchange of emails:

Alternatively, you can set up a new non-green page for just that
specific list of systems.
Look here for more information. http://www.hswn.
dk/hobbiton/2008/05/msg00121.html
http://lists.xymon.com/archive/2008-September/021103.html


--
   Do things because you should, not just because you can.

John Thurston    XXX-XXX-XXXX
user-ce4d79d99bab@xymon.invalid
Enterprise Technology Services
Department of Administration
State of Alaska

list Paul Root · Tue, 18 Mar 2014 16:00:15 +0000 ·
I believe you can include one file in the other.
quoted from Steve B

From: Xymon [mailto:xymon-bounces at xymon.com] On Behalf Of Steve B
Sent: Tuesday, March 18, 2014 10:40 AM
To: Jeremy Laidman
Cc: Xymon at xymon.com
Subject: Re: [Xymon] Setting up a new non-green page for a specific list of systems

Hey thanks a lot for that Jeremy, just had a meeting about this so your timing was much appreciated.
Not sure I can use another bb-hosts page though as all the servers I want on bb3 are on the main master bb-hosts.
Will investigate
thanks again!

On Tue, Mar 18, 2014 at 10:24 AM, Jeremy Laidman <user-71895fb2e44c@xymon.invalid<mailto:user-71895fb2e44c@xymon.invalid>> wrote:
http://lists.xymon.com/archive/2008-May/018931.html


On 18 February 2014 20:43, Steve B <user-df463d3c0721@xymon.invalid<mailto:user-df463d3c0721@xymon.invalid>> wrote:
Thanks John,

but unfortunately the link you provided points to the same URL I cannot get to.


On Fri, Feb 14, 2014 at 6:22 PM, John Thurston <user-ce4d79d99bab@xymon.invalid<mailto:user-ce4d79d99bab@xymon.invalid>> wrote:
On 2/14/2014 6:59 AM, Steve B wrote:
I would like to have a non-green page that only shows network devices (at
the moment I just have the one setup with all machines) and saw the
following in a previous exchange of emails:

Alternatively, you can set up a new non-green page for just that
specific list of systems.
Look here for more information. http://www.hswn.dk/hobbiton/2008/05/msg00121.html

http://lists.xymon.com/archive/2008-September/021103.html


--
   Do things because you should, not just because you can.

John Thurston    XXX-XXX-XXXX<tel:XXX-XXX-XXXX>
user-ce4d79d99bab@xymon.invalid<mailto:user-ce4d79d99bab@xymon.invalid>
Enterprise Technology Services
Department of Administration
State of Alaska
list Japheth Cleaver · Tue, 18 Mar 2014 09:39:12 -0700 ·
quoted from Paul Root
On Tue, March 18, 2014 9:00 am, Root, Paul T wrote:
I believe you can include one file in the other.

On Fri, Feb 14, 2014 at 6:22 PM, John Thurston
<user-ce4d79d99bab@xymon.invalid<mailto:user-ce4d79d99bab@xymon.invalid>> wrote:
On 2/14/2014 6:59 AM, Steve B wrote:
I would like to have a non-green page that only shows network devices (at
the moment I just have the one setup with all machines) and saw the
following in a previous exchange of emails:

Alternatively, you can set up a new non-green page for just that
specific list of systems.
Look here for more
information. http://www.hswn.dk/hobbiton/2008/05/msg00121.html

http://lists.xymon.com/archive/2008-September/021103.html
If it's its own subpage already, you can use the BOARDFILTER environment
variable read by xymongen and something like this. If it's not a distinct
page, but is a distinct file, you can just feed the file directly as the
HOSTSCFG variable

This is an untested (!), hastily-genericized version of a script we use
internally as one of our dashboards. We have a huge number of host-like
objects in hosts.cfg, so being able to create special nongreen subviews
helps keep certain dashboards useful.

Just set this to run via a tasks.cfg stanza like normal, editing the
parameters as needed.

HTH,

-jc

=============================================================

#!/bin/sh

# Create a special page for a "specialsites-only"-ish production view of
nongreen (outages)
#
PAGESCREATED="red nongreen critical"
LABEL="specialsites"
TESTFILTER=' test=http'


# You should run this from the xymon environment
test -z "$XYMONTMP" && echo "XYMONTMP is empty" && exit 1


# Save the real output dir so we know where to put the results
oldXYMONWWWDIR="$XYMONWWWDIR"
export XYMONWWWDIR="$XYMONTMP/xymongen_${LABEL}.$$"
mkdir -p "$XYMONWWWDIR"

# optional - if you have them in a segregated hosts.cfg file anyway
# export HOSTSCFG=/etc/xymon/hosts.d/all-specialsites-list

# Only include items on this specific page... eg, "page=importantsites
test=http"
export BOARDFILTER="page=${LABEL}${TESTFILTER}"

xymongen --recentgifs --nopropack='*' --report=xymongen-${LABEL}
--no-pages --eventignore=conn --includecolumns=trends
RES="$?"

if [ "$RES" -gt 0 ] ; then
        echo "xymongen-${LABEL} exited with $RES dealing with
$XYMONWWWDIR" >&2
		# safe - see above
		for THIS in $PAGES; do
			rm -f "$XYMONWWWDIR/${THIS}.html"
		done
		rmdir "$XYMONWWWDIR"
        exit $RES
fi

for THIS in $PAGES; do
        mv "$XYMONWWWDIR/${THIS}.html"
"${oldXYMONWWWDIR}/${THIS}-${LABEL}.html"
done

# should be empty
rmdir "$XYMONWWWDIR"

exit 0