Xymon Mailing List Archive search

SLA\Availability Reports

7 messages in this thread

list Bill Perez · Wed, 7 Dec 2005 11:13:15 -0500 ·
Hi,


I am looking for some more information on the SLA reporting options within
Hobbit (running 4.1.2 on Fedora Core 4).  In the past I used the SLA Report
script from deadcat.net for Big Brother where anyone could go to the report
page, select their date range and the SLA Report button.  Within the
SLAreport script I had specified the servers we wanted to report on,
options,
timeframe.  I have read the man pages for bbgen, bb-hosts and bb-replog but
am not sure how to get this same functionality out of Hobbit.  I would like
our metrics person to be able to access the URL to select the date range and
have it return on only our production servers from 7am-7pm.  I tried using
hobbitreports.sh and modified the time, but it still showed up as 24x7 when
I generated the report and also wasn't sure where to specify only specific
hosts within that file.  Any suggestions would be greatly appreciated.


Thanks
list Henrik Størner · Wed, 7 Dec 2005 17:52:33 +0100 ·
quoted from Bill Perez
On Wed, Dec 07, 2005 at 11:13:15AM -0500, Bill Perez wrote:
I am looking for some more information on the SLA reporting options within
Hobbit (running 4.1.2 on Fedora Core 4).  In the past I used the SLA Report
script from deadcat.net for Big Brother where anyone could go to the report
page, select their date range and the SLA Report button.  Within the
SLAreport script I had specified the servers we wanted to report on,
options, timeframe.
I have read the man pages for bbgen, bb-hosts and bb-replog but
am not sure how to get this same functionality out of Hobbit.  I would like
our metrics person to be able to access the URL to select the date range and
have it return on only our production servers from 7am-7pm.  I tried using
hobbitreports.sh and modified the time, but it still showed up as 24x7 when
I generated the report and also wasn't sure where to specify only specific
hosts within that file.  Any suggestions would be greatly appreciated.
Hobbit basically reads the hostlist from the bb-hosts file - any host
listed there is included in the report. So if you want a report with
only a select set of hosts, you'll need to generate a special bb-hosts 
file with only those hosts in it.

To use this special bb-hosts file, setup a script to run the report:

   #!/bin/sh

   BBHOSTS=/home/hobbit/server/etc/report-hosts
   export BBHOSTS
   bbgen --reportopts=.....

and run it with "bbcmd myreportscript". You may want to look at the 
hobbitreports.sh script included in Hobbit - it lets you pre-generate
reports on a daily/weekly/monthly basis.

Inside the bb-hosts file, you can then use the REPORTTIME parameter for
each host to define the time-of-day included where outages count in the
SLA calculations that the report provides. If you use the same period
for all hosts, it's probably easiest to define this using a ".default."
host at the top of the bb-hosts file. E.g. 

  0.0.0.0 .default. # REPORTTIME=W:0700:1900

defines the default report-time to be weekdays from 7AM to 7PM. These
parameters and the ".default." hosts are described in the bb-hosts
man-page.


Regards,
Henrik
list Bill Perez · Wed, 7 Dec 2005 12:20:25 -0500 ·
Thanks Henrik, the second bb-hosts file was the piece I was missing.
Do you still have a wishlist on amazon.co.uk?  I looked for your name but
didn't find anything.
quoted from Henrik Størner


On 12/7/05, Henrik Stoerner <user-ce4a2c883f75@xymon.invalid> wrote:
On Wed, Dec 07, 2005 at 11:13:15AM -0500, Bill Perez wrote:
I am looking for some more information on the SLA reporting options
within
Hobbit (running 4.1.2 on Fedora Core 4).  In the past I used the SLA
Report
script from deadcat.net for Big Brother where anyone could go to the
report
page, select their date range and the SLA Report button.  Within the
SLAreport script I had specified the servers we wanted to report on,
options, timeframe.
I have read the man pages for bbgen, bb-hosts and bb-replog but
am not sure how to get this same functionality out of Hobbit.  I would
like
our metrics person to be able to access the URL to select the date range
and
have it return on only our production servers from 7am-7pm.  I tried
using
hobbitreports.sh and modified the time, but it still showed up as 24x7
when
I generated the report and also wasn't sure where to specify only
specific
hosts within that file.  Any suggestions would be greatly appreciated.
Hobbit basically reads the hostlist from the bb-hosts file - any host
listed there is included in the report. So if you want a report with
only a select set of hosts, you'll need to generate a special bb-hosts
file with only those hosts in it.

To use this special bb-hosts file, setup a script to run the report:

  #!/bin/sh

  BBHOSTS=/home/hobbit/server/etc/report-hosts
  export BBHOSTS
  bbgen --reportopts=.....

and run it with "bbcmd myreportscript". You may want to look at the
hobbitreports.sh script included in Hobbit - it lets you pre-generate
reports on a daily/weekly/monthly basis.

Inside the bb-hosts file, you can then use the REPORTTIME parameter for
each host to define the time-of-day included where outages count in the
SLA calculations that the report provides. If you use the same period
for all hosts, it's probably easiest to define this using a ".default."
host at the top of the bb-hosts file. E.g.

0.0.0.0 .default. # REPORTTIME=W:0700:1900

defines the default report-time to be weekdays from 7AM to 7PM. These
parameters and the ".default." hosts are described in the bb-hosts
man-page.


Regards,
Henrik

list Henrik Størner · Wed, 7 Dec 2005 19:29:25 +0100 ·
quoted from Bill Perez
On Wed, Dec 07, 2005 at 12:20:25PM -0500, Bill Perez wrote:
Thanks Henrik, the second bb-hosts file was the piece I was missing.
Do you still have a wishlist on amazon.co.uk?  I looked for your name but
didn't find anything.
It ought to be there, I'll check.

Regards,
Henrik
list Henrik Størner · Wed, 7 Dec 2005 19:42:07 +0100 ·
quoted from Henrik Størner
On Wed, Dec 07, 2005 at 07:29:25PM +0100, Henrik Stoerner wrote:
On Wed, Dec 07, 2005 at 12:20:25PM -0500, Bill Perez wrote:
Thanks Henrik, the second bb-hosts file was the piece I was missing.
Do you still have a wishlist on amazon.co.uk?  I looked for your name but
didn't find anything.
It ought to be there, I'll check.
It's there, go to www.amazon.co.uk (note: the UK site), click wishlist
which brings you to 
http://www.amazon.co.uk/gp/registry/wishlist/ref=cs_nav_top_wl/202-3224752-2803009
enter my e-mail user-ce4a2c883f75@xymon.invalid in the "Find a wish list" and click "Go".

You probably tried to find me by name, which is nearly impossible
because it was entered using some special danish letters that don't
exist on your keyboard :-) My name really is Henrik Størner - but that
"o-slash" thing is peculiar and has caused us danes problems ever since
computers were invented.


Regards,
Henrik
list Lars Ebeling · Wed, 7 Dec 2005 20:44:58 +0100 ·
Henrik,

We got å ä ö Å Ä Ö
and that's huge computer problems

Lars
quoted from Henrik Størner

----- Original Message ----- 
From: "Henrik Stoerner" <user-ce4a2c883f75@xymon.invalid>
To: <user-ae9b8668bcde@xymon.invalid>
Sent: Wednesday, December 07, 2005 7:42 PM
Subject: Re: [hobbit] SLA\Availability Reports

On Wed, Dec 07, 2005 at 07:29:25PM +0100, Henrik Stoerner wrote:
On Wed, Dec 07, 2005 at 12:20:25PM -0500, Bill Perez wrote:
Thanks Henrik, the second bb-hosts file was the piece I was missing.
Do you still have a wishlist on amazon.co.uk?  I looked for your name 
but
didn't find anything.
It ought to be there, I'll check.
It's there, go to www.amazon.co.uk (note: the UK site), click wishlist
which brings you to
http://www.amazon.co.uk/gp/registry/wishlist/ref=cs_nav_top_wl/202-3224752-2803009
enter my e-mail user-ce4a2c883f75@xymon.invalid in the "Find a wish list" and click "Go".

You probably tried to find me by name, which is nearly impossible
because it was entered using some special danish letters that don't
exist on your keyboard :-) My name really is Henrik Størner - but that
"o-slash" thing is peculiar and has caused us danes problems ever since
computers were invented.


Regards,
Henrik

list Bill Perez · Wed, 7 Dec 2005 15:01:21 -0500 ·
I found it with your email address - thanks.
My bbgen is crashing when I run the hobbitreports.sh -- I'm not sure what is
causing this, any ideas?  I had modified it but put back the original copy
and restarted hobbit. I am also running the orginal hobbitserver.cfg.  I
don't see any errors generated in any of the logs in the log directory.

 # /hobbit/server/bin/bbcmd --env=/hobbit/server/etc/hobbitserver.cfg
hobbitreports.sh monthly
/hobbit/server/bin/hobbitreports.sh: line 78: 13656 Aborted
(core dumped) BBWEB=$REPORTTOPURL/$REPDIR $BBHOME/bin/bbgen
--reportopts=$STIME:$ETIME:0:nongr $BBGENREPOPTS $REPORTTOPDIR/$REPDIR

 Also, regarding the customized availability report for specific hosts, is
there anyway this can be generated by users from the Availability Report
page rather than specifying a page from BBWEB?

Thanks again.
quoted from Lars Ebeling


On 12/7/05, Henrik Stoerner <user-ce4a2c883f75@xymon.invalid> wrote:
On Wed, Dec 07, 2005 at 07:29:25PM +0100, Henrik Stoerner wrote:
On Wed, Dec 07, 2005 at 12:20:25PM -0500, Bill Perez wrote:
Thanks Henrik, the second bb-hosts file was the piece I was missing.
Do you still have a wishlist on amazon.co.uk?  I looked for your name
but
didn't find anything.
It ought to be there, I'll check.
It's there, go to www.amazon.co.uk (note: the UK site), click wishlist
which brings you to

http://www.amazon.co.uk/gp/registry/wishlist/ref=cs_nav_top_wl/202-3224752-2803009
enter my e-mail user-ce4a2c883f75@xymon.invalid in the "Find a wish list" and click "Go".

You probably tried to find me by name, which is nearly impossible
because it was entered using some special danish letters that don't
exist on your keyboard :-) My name really is Henrik Størner - but that
"o-slash" thing is peculiar and has caused us danes problems ever since
computers were invented.


Regards,
Henrik