Xymon Mailing List Archive search

Non-green page listing not complete?

6 messages in this thread

list David Mills · Wed, 31 Oct 2012 18:13:30 +0000 ·
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
list Paul Root · Wed, 31 Oct 2012 19:04:41 +0000 ·
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
quoted from David Mills


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>
list David Mills · Wed, 31 Oct 2012 19:25:10 +0000 ·
Thanks, Paul, but my question is not on how to generate lists of hosts by specific colors. I think I'm asking more specifically about the non-green report page: what criteria does it use to display hosts, since I can easily see there's more "non-green" hosts out there than are being reported.

I really need to get the non-green report to show all the other stuff it's currently missing...

Ideas?

david
list Betsy Schwartz · Wed, 31 Oct 2012 17:03:54 -0400 ·
My lists also match.

So part of the  question is, why is your non-green report page missing data?
And another part is, is anyone else experiencing this, or is it just you?

What version of xymon are you running for the server, and for the
clients, and on what OS?
Can you find any sort of pattern that distinguishes what is missing
from what appears?
list Betsy Schwartz · Wed, 31 Oct 2012 17:06:29 -0400 ·
also look at the output of xymondboard, do you see anything odd , any
special characters or badly formatted lines?
Can you post some sanitized examples of things that don't appear on
the non-green page?
list David Mills · Thu, 1 Nov 2012 22:02:49 +0000 ·
Thanks so much, Betsy!

I poked around (even read through source code!) and finally found the issue: all the "missing" hosts from the NonGreen report had the "nobb2" tag in the hosts.cfg file. Turns out "nobb2" is the old way of saying "NONONGREEN" (see http://xymon.sourceforge.net/xymon/help/manpages/man5/xymon-xmh.5.html)!

Thanks for the push in the right direction!

david
quoted from Betsy Schwartz

-----Original Message-----
From: Betsy Schwartz [mailto:user-c61747246f66@xymon.invalid] 
Sent: Wednesday, October 31, 2012 4:04 PM
To: Mills, David (IS)
Cc: xymon at xymon.com
Subject: EXT :Re: [Xymon] Non-green page listing not complete?

My lists also match.

So part of the  question is, why is your non-green report page missing data?
And another part is, is anyone else experiencing this, or is it just you?

What version of xymon are you running for the server, and for the clients, and on what OS?
Can you find any sort of pattern that distinguishes what is missing from what appears?