here is a quick bash shell script/command line. Set qtest to the test
you want to know about.
qtest="http"; bbout=`bin/bb 127.0.0.1 "hobbitdbord test=$qtest
fields=color"`; printf "Report Sumary: %s\n Green: %5s\nYellow: %5s\n
Red: %5s\n Clear: %5s\nPurple: %5s\n Blue: %5s\n--------------\n Total:
%5s\n", $qtest `echo "$bbout" | grep green | wc -l` `echo "$bbout" |
grep yellow | wc -l` `echo "$bbout" | grep red | wc -l` `echo "$bbout" |
grep clear | wc -l` `echo "$bbout" | grep purple | wc -l` `echo "$bbout"
| grep blue | wc -l` `echo "$bbout" | wc -l`
-----Original Message-----
From: user-6f5382941e41@xymon.invalid [mailto:user-6f5382941e41@xymon.invalid] Sent: Thursday, March 08, 2007 10:36 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: [hobbit] Raw number reports
Can I get a report of
1) How many hosts I have with a particular test
2) What number of them (or percentage) are green, yellow, red, etc.
--
Stewart