Xymon Mailing List Archive search

parsing notifications.log

10 messages in this thread

list Val Polyakov · Mon, 14 Jan 2008 11:30:11 -0500 ·
Has anyone made a script that parses hobbit's notifications.log to create a report for the day?

I was thinking something along the lines of a perl script that parses the notifications.log file to create a report that specifies what pages were sent out, how much time passed before the alert recovered, etc

I didn't really want to reinvent the wheel and code the script if someone else has already done so

So.. is there such a script in existence? And if so, can you share it ? :)

Val
list Val Polyakov · Tue, 15 Jan 2008 11:26:33 -0500 ·
hello?

anyone? :)

В сообщении от Monday 14 January 2008 11:30:11 Val Polyakov написал(а):
quoted from Val Polyakov
Has anyone made a script that parses hobbit's notifications.log to create a
report for the day?

I was thinking something along the lines of a perl script that parses the
notifications.log file to create a report that specifies what pages were
sent out, how much time passed before the alert recovered, etc

I didn't really want to reinvent the wheel and code the script if someone
else has already done so

So.. is there such a script in existence? And if so, can you share it ? :)

Val

list Charles Jones · Tue, 15 Jan 2008 09:33:58 -0700 ·
I asked this once in the past, and I seem to remember someone saying that they had one and would post it, but I dont remember if they did or not.  Try searching the archives. It should be relatively easy to parse the notifications log. Personally I wish it was a feature of Hobbit to provide a report on pages that were sent out, but thus far I have been getting by using the Event Log Report, which lets you make a report of the number of red alerts (for which you assume a page was sent out), including their duration etc.
quoted from Val Polyakov

Val Polyakov wrote:
hello?

anyone? :)

В сообщении от Monday 14 January 2008 11:30:11 Val Polyakov написал(а):
  
Has anyone made a script that parses hobbit's notifications.log to create a
report for the day?

I was thinking something along the lines of a perl script that parses the
notifications.log file to create a report that specifies what pages were
sent out, how much time passed before the alert recovered, etc

I didn't really want to reinvent the wheel and code the script if someone
else has already done so

So.. is there such a script in existence? And if so, can you share it ? :)

Val

list Ralph Mitchell · Tue, 15 Jan 2008 10:43:24 -0600 ·
quoted from Charles Jones
On Jan 15, 2008 10:33 AM, Charles Jones <user-e86b4aeade4e@xymon.invalid> wrote:
I asked this once in the past, and I seem to remember someone saying
that they had one and would post it, but I dont remember if they did or
not.  Try searching the archives. It should be relatively easy to parse
the notifications log. Personally I wish it was a feature of Hobbit to
provide a report on pages that were sent out, but thus far I have been
getting by using the Event Log Report, which lets you make a report of
the number of red alerts (for which you assume a page was sent out),
including their duration etc.
Have you looked at the 4.3.0 beta??

   http://www.hswn.dk/beta/

There's a "Notification Report" in the Reports dropdown menu which might do
what you want.

Ralph Mitchell
list Johann Eggers · Tue, 15 Jan 2008 17:46:26 +0100 ·
I use the Notification Report for viewing this.

It is similar to the eventlog report...

There is a patch for this in the current all-in-one-patch

-Johann
quoted from Charles Jones

-----Original Message-----
From: Charles Jones [mailto:user-e86b4aeade4e@xymon.invalid]
Sent: Dienstag, 15. Januar 2008 17:34
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] parsing notifications.log

I asked this once in the past, and I seem to remember someone saying
that they had one and would post it, but I dont remember if they did or
not.  Try searching the archives. It should be relatively easy to parse
the notifications log. Personally I wish it was a feature of Hobbit to
provide a report on pages that were sent out, but thus far I have been
getting by using the Event Log Report, which lets you make a report of
the number of red alerts (for which you assume a page was sent out),
including their duration etc.

Val Polyakov wrote:
hello?

anyone? :)

В сообщении от Monday 14 January 2008 11:30:11 Val Polyakov написал(а):
Has anyone made a script that parses hobbit's notifications.log to
create a
report for the day?

I was thinking something along the lines of a perl script that parses
the
notifications.log file to create a report that specifies what pages
were
sent out, how much time passed before the alert recovered, etc

I didn't really want to reinvent the wheel and code the script if
someone
else has already done so

So.. is there such a script in existence? And if so, can you share it ?
:)
Val

list Charles Jones · Tue, 15 Jan 2008 09:57:10 -0700 ·
*checks the 4.3.0-0.20070727 snapshot server he has*  Well I'll be darned :)

-Charles
quoted from Ralph Mitchell

Ralph Mitchell wrote:
On Jan 15, 2008 10:33 AM, Charles Jones <user-e86b4aeade4e@xymon.invalid 
<mailto:user-e86b4aeade4e@xymon.invalid>> wrote:

    I asked this once in the past, and I seem to remember someone saying
    that they had one and would post it, but I dont remember if they
    did or
    not.  Try searching the archives. It should be relatively easy to
    parse
    the notifications log. Personally I wish it was a feature of Hobbit to
    provide a report on pages that were sent out, but thus far I have been
    getting by using the Event Log Report, which lets you make a report of
    the number of red alerts (for which you assume a page was sent out),
    including their duration etc.


Have you looked at the 4.3.0 beta??

   http://www.hswn.dk/beta/ <http://www.hswn.dk/beta/>;

There's a "Notification Report" in the Reports dropdown menu which 
might do what you want.

Ralph Mitchell
list Val Polyakov · Tue, 15 Jan 2008 12:26:10 -0500 ·
i can't really use a beta in the production environment :)

В сообщении от Tuesday 15 January 2008 11:43:24 Ralph Mitchell написал(а):
quoted from Charles Jones
On Jan 15, 2008 10:33 AM, Charles Jones <user-e86b4aeade4e@xymon.invalid> wrote:
I asked this once in the past, and I seem to remember someone saying
that they had one and would post it, but I dont remember if they did or
not.  Try searching the archives. It should be relatively easy to parse
the notifications log. Personally I wish it was a feature of Hobbit to
provide a report on pages that were sent out, but thus far I have been
getting by using the Event Log Report, which lets you make a report of
the number of red alerts (for which you assume a page was sent out),
including their duration etc.
Have you looked at the 4.3.0 beta??

   http://www.hswn.dk/beta/

There's a "Notification Report" in the Reports dropdown menu which might do
what you want.

Ralph Mitchell
list Ralph Mitchell · Tue, 15 Jan 2008 11:48:10 -0600 ·
On Jan 15, 2008 11:26 AM, Val Polyakov <user-f80f448eb4ab@xymon.invalid> wrote:
i can't really use a beta in the production environment :)
As Johann Eggers pointed out:

   "There is a patch for this in the current all-in-one-patch"

which is here:   http://www.hswn.dk/hobbitsw/patches/

Apply to the 4.2.0 original source tree and rebuild.

Ralph Mitchell
list Anna Jonna Armannsdottir · Tue, 15 Jan 2008 18:21:37 +0000 ·
quoted from Val Polyakov
On mán, 2008-01-14 at 11:30 -0500, Val Polyakov wrote:
Has anyone made a script that parses hobbit's notifications.log to create a report for the day?

I was thinking something along the lines of a perl script that parses the notifications.log file to create a report that specifies what pages were sent out, how much time passed before the alert recovered, etc

I didn't really want to reinvent the wheel and code the script if someone else has already done so

So.. is there such a script in existence? And if so, can you share it ? :)

Val
Hi Val, thanks for bringing this subject up. It enabled me to rediscover the
notification log page in the reports. I had applied the allinone patch, but had not been using the page.  
The information in the log seems to indicate how long time passes from alert notification until the alert recovery notification.  This is not
exactly the alert duration, but it is useful information, when there is doubt about who was alerted and when, ahd who was notified of
recovery and when and the event duration as seen from the staff. 
As an example of the notification log page in Hobbit, I enclose a page for today. 
-- 
Kindest Regards, Anna Jonna Ármannsdóttir,       %&   A: Because people read from top to bottom.
Unix System Aministration, Computing Services,   %&   Q: Why is top posting bad?
University of Iceland.
list Val Polyakov · Tue, 15 Jan 2008 13:32:35 -0500 ·
В сообщении от Tuesday 15 January 2008 13:21:37 Anna Jonna Armannsdottir 
написал(а):
quoted from Val Polyakov
On mán, 2008-01-14 at 11:30 -0500, Val Polyakov wrote:
Has anyone made a script that parses hobbit's notifications.log to create
a report for the day?

I was thinking something along the lines of a perl script that parses the
notifications.log file to create a report that specifies what pages were
sent out, how much time passed before the alert recovered, etc

I didn't really want to reinvent the wheel and code the script if someone
else has already done so

So.. is there such a script in existence? And if so, can you share it ?

:)
quoted from Anna Jonna Armannsdottir

Val
Hi Val,
thanks for bringing this subject up. It enabled me to rediscover the
notification log page in the reports. I had applied the allinone patch,
but had not been using the page.

The information in the log seems to indicate how long time passes from
alert notification until the alert recovery notification.  This is not
exactly the alert duration, but it is useful information, when there
is doubt about who was alerted and when, ahd who was notified of
recovery and when and the event duration as seen from the staff.

As an example of the notification log page in Hobbit, I enclose
a page for today.
thank you :)

i'll apply the patch