Setting up a new non-green page for a specific list of systems
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
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 907-465-8591 John.Thurston at alaska.gov Enterprise Technology Services Department of Administration State of Alaska
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 <john.thurston at alaska.gov>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 907-465-8591 John.Thurston at alaska.gov Enterprise Technology Services Department of Administration State of Alaska
Xymon mailing list Xymon at xymon.com http://lists.xymon.com/mailman/listinfo/xymon
http://lists.xymon.com/archive/2008-May/018931.html
On 18 February 2014 20:43, Steve B <rectifier at gmail.com> 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 <john.thurston at alaska.gov>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 907-465-8591 John.Thurston at alaska.gov Enterprise Technology Services Department of Administration State of Alaska
Xymon mailing list Xymon at xymon.com http://lists.xymon.com/mailman/listinfo/xymon
Xymon mailing list Xymon at xymon.com http://lists.xymon.com/mailman/listinfo/xymon
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 <jlaidman at rebel-it.com.au>wrote:
http://lists.xymon.com/archive/2008-May/018931.html
On 18 February 2014 20:43, Steve B <rectifier at gmail.com> 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 <john.thurston at alaska.gov>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 907-465-8591 John.Thurston at alaska.gov Enterprise Technology Services Department of Administration State of Alaska
Xymon mailing list Xymon at xymon.com http://lists.xymon.com/mailman/listinfo/xymon
Xymon mailing list Xymon at xymon.com http://lists.xymon.com/mailman/listinfo/xymon
I believe you can include one file in the other.
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 <jlaidman at rebel-it.com.au<mailto:jlaidman at rebel-it.com.au>> wrote: http://lists.xymon.com/archive/2008-May/018931.html
On 18 February 2014 20:43, Steve B <rectifier at gmail.com<mailto:rectifier at gmail.com>> 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 <john.thurston at alaska.gov<mailto:john.thurston at alaska.gov>> 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 907-465-8591<tel:907-465-8591> John.Thurston at alaska.gov<mailto:John.Thurston at alaska.gov> Enterprise Technology Services Department of Administration State of Alaska
Xymon mailing list Xymon at xymon.com<mailto:Xymon at xymon.com> http://lists.xymon.com/mailman/listinfo/xymon
Xymon mailing list Xymon at xymon.com<mailto:Xymon at xymon.com> http://lists.xymon.com/mailman/listinfo/xymon
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 <john.thurston at alaska.gov<mailto:john.thurston at alaska.gov>> 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
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
participants (5)
-
cleaver@terabithia.org
-
jlaidman@rebel-it.com.au
-
john.thurston@alaska.gov
-
Paul.Root@CenturyLink.com
-
rectifier@gmail.com