Re: [Nagios-users] What happened during night for services that failed and timeperiod was off

2011-01-31 Thread mail
On Mon, Jan 31, 2011 at 9:21 AM, Tntteam  wrote:
> Hello there,
>
> I'm wondering if there is a way to make nagios send notification for
> services which failed during non notification timeperiod ?
>
> I mean if I define a service with a timeperiod for ntifications from
> 7am to 7pm, and the service fails at 4am, there will be no
> notification sent unless I set up a resend notification interval.
>
> There are services that doesn't need a resend plus I want all missed
> notification to be sent at 7am.
>
> Like a night notification digest, or "what happened from 7pm to 7 am"
> to be sent at 7am, when the service enters in the notification_send
> period.
>
>
>
> Any ideas ?
>



We use two notification types, One that forwards into our alerting
system and one that emails...

Oonly the one that goes to alerts is scheduled to be down out of hours...
so we can see the notification emails in the morning.

you could have two different email address or have a different command
for the OOH emails that adds a different heading  / comes from a
different local user etc...

Ritchie

--
Fnord...
<-- http://23.me.uk --> <-- http://wiki.s23.org --> <--
http://twitter.com/23me -->
<- -Only the lavender prairie dogs know the key to unlock the secret
of the tumble-weeds. -->




> Thanks
>
> --
> Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
> Finally, a world-class log management solution at an even better price-free!
> Download using promo code Free_Logger_4_Dev2Dev. Offer expires
> February 28th, so secure your free ArcSight Logger TODAY!
> http://p.sf.net/sfu/arcsight-sfd2d
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting 
> any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>

--
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] What happened during night for services that failed and timeperiod was off

2011-01-31 Thread Tntteam
I found a solution based on summary.cgi

I think i'll use custom time range to recover hard states from the
night in a html file then send it via email each morning.

Sry for my bad english Mark Elsen I think ur making a joke on my
sentence but I don't understand it :(

Cheers

2011/1/31 Breandan Dezendorf :
> Perhaps write a script to calculate the timestamps for the
> non-notification window, grep through the nagios.log, looking for
> HARD/CRITICAL events for the services in question, and then
> individually run the notification processes within the script?
>
> Any way you slice it, I can't think of a clean way to do it.
>
> On Mon, Jan 31, 2011 at 10:01 AM, dave stern - e-mail.pluribus.unum
>  wrote:
>> I'd try to write a wrapper for an event handler that checked
>> the time and kept a log. A morning cron could then check
>> for presence of the log and if it exists, email to you
>>
>> On Mon, Jan 31, 2011 at 9:46 AM, Tntteam  wrote:
>>> Hello there,
>>>
>>> I'm wondering if there is a way to make nagios send notification for
>>> services which failed during non notification timeperiod ?
>>>
>>> I mean if I define a service with a timeperiod for ntifications from
>>> 7am to 7pm, and the service fails at 4am, there will be no
>>> notification sent unless I set up a resend notification interval.
>>>
>>> There are services that doesn't need a resend plus I want all missed
>>> notification to be sent at 7am.
>>>
>>> Like a night notification digest, or "what happened from 7pm to 7 am"
>>> to be sent at 7am, when the service enters in the notification_send
>>> period.
>>>
>>>
>>>
>>> Any ideas ?
>>>
>>> Thanks
>>>
>>> --
>>> Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
>>> Finally, a world-class log management solution at an even better price-free!
>>> Download using promo code Free_Logger_4_Dev2Dev. Offer expires
>>> February 28th, so secure your free ArcSight Logger TODAY!
>>> http://p.sf.net/sfu/arcsight-sfd2d
>>> ___
>>> Nagios-users mailing list
>>> Nagios-users@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/nagios-users
>>> ::: Please include Nagios version, plugin version (-v) and OS when 
>>> reporting any issue.
>>> ::: Messages without supporting info will risk being sent to /dev/null
>>>
>>
>> --
>> Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
>> Finally, a world-class log management solution at an even better price-free!
>> Download using promo code Free_Logger_4_Dev2Dev. Offer expires
>> February 28th, so secure your free ArcSight Logger TODAY!
>> http://p.sf.net/sfu/arcsight-sfd2d
>> ___
>> Nagios-users mailing list
>> Nagios-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/nagios-users
>> ::: Please include Nagios version, plugin version (-v) and OS when reporting 
>> any issue.
>> ::: Messages without supporting info will risk being sent to /dev/null
>>
>
>
>
> --
> Breandan Dezendorf
> brean...@dezendorf.com
> bwdez...@gmail.com
>
> --
> Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
> Finally, a world-class log management solution at an even better price-free!
> Download using promo code Free_Logger_4_Dev2Dev. Offer expires
> February 28th, so secure your free ArcSight Logger TODAY!
> http://p.sf.net/sfu/arcsight-sfd2d
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting 
> any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>

--
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] What happened during night for services that failed and timeperiod was off

2011-01-31 Thread Andreas Ericsson
On 01/31/2011 10:21 AM, Tntteam wrote:
> Hello there,
> 
> I'm wondering if there is a way to make nagios send notification for
> services which failed during non notification timeperiod ?
> 
> I mean if I define a service with a timeperiod for ntifications from
> 7am to 7pm, and the service fails at 4am, there will be no
> notification sent unless I set up a resend notification interval.
> 
> There are services that doesn't need a resend plus I want all missed
> notification to be sent at 7am.
> 
> Like a night notification digest, or "what happened from 7pm to 7 am"
> to be sent at 7am, when the service enters in the notification_send
> period.
> 

The easiest way would be to parse your status_file and see which
objects changed to a hard non-OK state less than 12 hours ago,
formatting the found objects neatly and sending the resulting
text as an email to whoever is interested. For bonus points,
make the script also parse objects.cache and send each contact
a bulk notification about "their" hosts and services.

-- 
Andreas Ericsson   andreas.erics...@op5.se
OP5 AB www.op5.se
Tel: +46 8-230225  Fax: +46 8-230231

Considering the successes of the wars on alcohol, poverty, drugs and
terror, I think we should give some serious thought to declaring war
on peace.

--
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] What happened during night for services that failed and timeperiod was off

2011-01-31 Thread Breandan Dezendorf
Perhaps write a script to calculate the timestamps for the
non-notification window, grep through the nagios.log, looking for
HARD/CRITICAL events for the services in question, and then
individually run the notification processes within the script?

Any way you slice it, I can't think of a clean way to do it.

On Mon, Jan 31, 2011 at 10:01 AM, dave stern - e-mail.pluribus.unum
 wrote:
> I'd try to write a wrapper for an event handler that checked
> the time and kept a log. A morning cron could then check
> for presence of the log and if it exists, email to you
>
> On Mon, Jan 31, 2011 at 9:46 AM, Tntteam  wrote:
>> Hello there,
>>
>> I'm wondering if there is a way to make nagios send notification for
>> services which failed during non notification timeperiod ?
>>
>> I mean if I define a service with a timeperiod for ntifications from
>> 7am to 7pm, and the service fails at 4am, there will be no
>> notification sent unless I set up a resend notification interval.
>>
>> There are services that doesn't need a resend plus I want all missed
>> notification to be sent at 7am.
>>
>> Like a night notification digest, or "what happened from 7pm to 7 am"
>> to be sent at 7am, when the service enters in the notification_send
>> period.
>>
>>
>>
>> Any ideas ?
>>
>> Thanks
>>
>> --
>> Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
>> Finally, a world-class log management solution at an even better price-free!
>> Download using promo code Free_Logger_4_Dev2Dev. Offer expires
>> February 28th, so secure your free ArcSight Logger TODAY!
>> http://p.sf.net/sfu/arcsight-sfd2d
>> ___
>> Nagios-users mailing list
>> Nagios-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/nagios-users
>> ::: Please include Nagios version, plugin version (-v) and OS when reporting 
>> any issue.
>> ::: Messages without supporting info will risk being sent to /dev/null
>>
>
> --
> Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
> Finally, a world-class log management solution at an even better price-free!
> Download using promo code Free_Logger_4_Dev2Dev. Offer expires
> February 28th, so secure your free ArcSight Logger TODAY!
> http://p.sf.net/sfu/arcsight-sfd2d
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting 
> any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>



-- 
Breandan Dezendorf
brean...@dezendorf.com
bwdez...@gmail.com

--
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] What happened during night for services that failed and timeperiod was off

2011-01-31 Thread Tntteam
Ok thanks for the idea (sry for double mail, I thought the first one
didn't work).

I'll try to write something like that using the doc
http://nagios.sourceforge.net/docs/3_0/eventhandlers.html

2011/1/31 dave stern - e-mail.pluribus.unum :
> I'd try to write a wrapper for an event handler that checked
> the time and kept a log. A morning cron could then check
> for presence of the log and if it exists, email to you
>
> On Mon, Jan 31, 2011 at 9:46 AM, Tntteam  wrote:
>> Hello there,
>>
>> I'm wondering if there is a way to make nagios send notification for
>> services which failed during non notification timeperiod ?
>>
>> I mean if I define a service with a timeperiod for ntifications from
>> 7am to 7pm, and the service fails at 4am, there will be no
>> notification sent unless I set up a resend notification interval.
>>
>> There are services that doesn't need a resend plus I want all missed
>> notification to be sent at 7am.
>>
>> Like a night notification digest, or "what happened from 7pm to 7 am"
>> to be sent at 7am, when the service enters in the notification_send
>> period.
>>
>>
>>
>> Any ideas ?
>>
>> Thanks
>>
>> --
>> Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
>> Finally, a world-class log management solution at an even better price-free!
>> Download using promo code Free_Logger_4_Dev2Dev. Offer expires
>> February 28th, so secure your free ArcSight Logger TODAY!
>> http://p.sf.net/sfu/arcsight-sfd2d
>> ___
>> Nagios-users mailing list
>> Nagios-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/nagios-users
>> ::: Please include Nagios version, plugin version (-v) and OS when reporting 
>> any issue.
>> ::: Messages without supporting info will risk being sent to /dev/null
>>
>
> --
> Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
> Finally, a world-class log management solution at an even better price-free!
> Download using promo code Free_Logger_4_Dev2Dev. Offer expires
> February 28th, so secure your free ArcSight Logger TODAY!
> http://p.sf.net/sfu/arcsight-sfd2d
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting 
> any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>

--
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] What happened during night for services that failed and timeperiod was off

2011-01-31 Thread Mark Elsen
> Hello there,
>
> I'm wondering if there is a way to make nagios send notification for
> services which failed during non notification timeperiod ?
>

' Truly remarkable, although in quantum logic,even the
obvious answer is not 'guaranteed' ...

M.

--
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] What happened during night for services that failed and timeperiod was off

2011-01-31 Thread dave stern - e-mail.pluribus.unum
I'd try to write a wrapper for an event handler that checked
the time and kept a log. A morning cron could then check
for presence of the log and if it exists, email to you

On Mon, Jan 31, 2011 at 9:46 AM, Tntteam  wrote:
> Hello there,
>
> I'm wondering if there is a way to make nagios send notification for
> services which failed during non notification timeperiod ?
>
> I mean if I define a service with a timeperiod for ntifications from
> 7am to 7pm, and the service fails at 4am, there will be no
> notification sent unless I set up a resend notification interval.
>
> There are services that doesn't need a resend plus I want all missed
> notification to be sent at 7am.
>
> Like a night notification digest, or "what happened from 7pm to 7 am"
> to be sent at 7am, when the service enters in the notification_send
> period.
>
>
>
> Any ideas ?
>
> Thanks
>
> --
> Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
> Finally, a world-class log management solution at an even better price-free!
> Download using promo code Free_Logger_4_Dev2Dev. Offer expires
> February 28th, so secure your free ArcSight Logger TODAY!
> http://p.sf.net/sfu/arcsight-sfd2d
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting 
> any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>

--
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


[Nagios-users] What happened during night for services that failed and timeperiod was off

2011-01-31 Thread Tntteam
Hello there,

I'm wondering if there is a way to make nagios send notification for
services which failed during non notification timeperiod ?

I mean if I define a service with a timeperiod for ntifications from
7am to 7pm, and the service fails at 4am, there will be no
notification sent unless I set up a resend notification interval.

There are services that doesn't need a resend plus I want all missed
notification to be sent at 7am.

Like a night notification digest, or "what happened from 7pm to 7 am"
to be sent at 7am, when the service enters in the notification_send
period.



Any ideas ?

Thanks

--
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


[Nagios-users] What happened during night for services that failed and timeperiod was off

2011-01-31 Thread Tntteam
Hello there,

I'm wondering if there is a way to make nagios send notification for
services which failed during non notification timeperiod ?

I mean if I define a service with a timeperiod for ntifications from
7am to 7pm, and the service fails at 4am, there will be no
notification sent unless I set up a resend notification interval.

There are services that doesn't need a resend plus I want all missed
notification to be sent at 7am.

Like a night notification digest, or "what happened from 7pm to 7 am"
to be sent at 7am, when the service enters in the notification_send
period.



Any ideas ?

Thanks

--
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null