Xymon Mailing List Archive search

Non-green page listing not complete?

list Paul Root
Wed, 31 Oct 2012 19:04:41 +0000
Message-Id: <user-9ff41fe07a51@xymon.invalid>

You have at least 2 typos in your query, so I can't really don't really know on why.  However, correcting the typos I get correct results on my server.

You can be more expressive in your xymondboard query.

This is my script:

for i in red yellow purple
do
                echo "$i:"
                xymon <server> "xymondboard color=$i fields=hostname,testname,color,line1" | \
                                sed -e 's/|/         /g' -e 's/<IMG SRC="\/hobbit\/gifs\/red.gif" ALT="red" HEIGHT="16" WIDTH="16" BORDER=0\\>//g'

                echo

done

echo "blue: "
xymon <server>  "xymondboard color=blue fields=hostname,testname,disabletime,dismsg" | \
                sed -e 's/|/         /g' -e 's/<IMG SRC="\/hobbit\/gifs\/red.gif" ALT="red" HEIGHT="16" WIDTH="16" BORDER=0\\>//g' -e 's/\\n/             /g' -e 's/Disabled by: //g' -e 's/Reason: //g'


Paul Root    - Senior Engineer
Managed Services Systems - CenturyLink


From: xymon-bounces at xymon.com [mailto:xymon-bounces at xymon.com] On Behalf Of Mills, David (IS)
Sent: Wednesday, October 31, 2012 1:14 PM
To: xymon at xymon.com
Subject: [Xymon] Non-green page listing not complete?

Hi!

I need a hand here: when I run

xymon <server> xymondboard" /usr/bin/awk -F\| '$3 !~ /green/ {print $1, $2, $3}'

I get a huge list of non-green hosts. Even filtering out "clear", "blue" and "purple", I get well over 140 hosts listed.

However, the current number of hosts on our "Non-green" report page is only around 20!

Can anyone help me start tracking down the discrepancy?

Thanks!

david
~~~~~~~~~~~~~~~~~~~
David Mills
Systems Administrator
Northrop Grumman
XXX-XXX-XXXX
user-eb64c112f0e9@xymon.invalid<mailto:user-eb64c112f0e9@xymon.invalid>