[Xymon] Non-green page listing not complete?

Root, Paul Paul.Root at centurylink.com
Wed Oct 31 20:04:41 CET 2012


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
512-595-1238
david.mills at ngc.com<mailto:david.mills at ngc.com>



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20121031/fd4c1d0f/attachment.html>


More information about the Xymon mailing list