[hobbit] Availability Report anomally ....

Henrik Stoerner henrik at hswn.dk
Wed Jul 4 10:00:28 CEST 2007


On Wed, Jul 04, 2007 at 10:11:43AM +1000, Geoff Swavley wrote:
> When the availability report is run for last month I get a green diamond
> (presuming this to mean that it's 100%).

green actually means 99,995% available.

I don't recall where this number comes from, but I believe it was
adopted from the way the old Big Brother reports were built.

You can change the 99,995% setting by putting 
   BBREPGREEN=100
in hobbitserver.cfg

There's also a debugging utility in the Hobbit sources that can help
track down such problems. When you build Hobbit, a small utility is
built in hobbit-4.2.0/lib/availability - this analyzes the history
log in the same way that the reporting module does. So you can run it
like this:

./lib/availability ~hobbit/data/hist/myserver.http \
	`date +%s --date="1 Jun 2007"` \
	`date +%s --date="1 Jul 2007"

The output is rather detailed, but buried inside you'll find the
analysis of how many seconds each color was. It looks like this:

    2007-07-04 09:48:54 Duration for color 0: 6610128
    2007-07-04 09:48:54 Duration for color 1: 0
    2007-07-04 09:48:54 Duration for color 2: 0
    2007-07-04 09:48:54 Duration for color 3: 330548
    2007-07-04 09:48:54 Duration for color 4: 0
    2007-07-04 09:48:54 Duration for color 5: 6853
    2007-07-04 09:48:54 Color 0: Count=31, pct=95.14
    2007-07-04 09:48:54 Color 1: Count=0, pct=0.00
    2007-07-04 09:48:54 Color 2: Count=0, pct=0.00
    2007-07-04 09:48:54 Color 3: Count=5, pct=4.76
    2007-07-04 09:48:54 Color 4: Count=0, pct=0.00
    2007-07-04 09:48:54 Color 5: Count=26, pct=0.10
    2007-07-04 09:48:54 Availability: 99.90, color =4

Color 5 is red, 4 is yellow, 3 is purple, 2 is blue, 1 is clear, 
0 is green.


Regards,
Henrik




More information about the Xymon mailing list