[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [hobbit] NK allevents log
- To: hobbit (at) hswn.dk
- Subject: Re: [hobbit] NK allevents log
- From: henrik (at) hswn.dk (Henrik Stoerner)
- Date: Sun, 8 May 2005 07:42:02 +0200
- References: <b537f65105050719135ae6d43f@mail.gmail.com>
- User-agent: Mutt/1.5.6+20040907i
On Sat, May 07, 2005 at 07:13:46PM -0700, Brian Lynch wrote:
> Would it be possible to create a log of only NK events? We currently use
> bbgen views to present a limited view to our NOC (via the bbgen ignore
> strings) and then use a custom php program to parse the allevents log and
> only pick out events that would have shown up on their view. We use this as
> a metric to track successful escalation of alerts. I'm considering switching
> to the NK model, but it would require a more complex program to identify NK
> alerts. Any thoughts?
Add "--nklog" to the bbgen command in hobbitlaunch.cfg. This creates a
logfile of what's on the NK status view every time it is generated by
bbgen - it's currently in $BBHOME/nkstatus.log, but it will move to the
$BBSERVERLOGS (i.e. /var/log/hobbit) shortly.
The format of the file is
timestamp <TAB> color <TAB> HOST (TEST:COLOR) <TAB> ...
if you want some tool to process it. The timestamp is the Unix "epoch"
time, i.e. seconds since Jan 1 1970 UTC.
"--nklog" also creates an "nk" status for the Hobbit server, which tracks the
color of the NK page. Meaning you'll actually have a statistic of how
much of the time your NOC monitor is red or green.
> PS. Switching live to clustered hobbit in 2 weeks! Thanks for all your hard
> work!
Thanks :-)
Henrik