Nagios doesn't stop notifying when it should
Tedman Eng
teng at dataway.com
Tue Nov 29 22:56:45 CET 2005
I didn't say leave them out. I said create a new contact group. Call it
'none'.
(maybe 'none' is a reserved word? call it 'whatever').
Use notification periods or use a dummy notification command or any number
of ways to make that contact supress normal notifications.
Normal notifications will forever repeat until acknowledged or recovery.
Since you want only limited notifications, escalations are the only
notification mechanism with this function, so you have to use only
escalations to notify.
-----Original Message-----
From: Jeff Williams [mailto:jeffwilliams05 at gmail.com]
Sent: Tuesday, November 29, 2005 7:11 AM
To: Tedman Eng
Cc: nagios-users at lists.sourceforge.net
Subject: Re: [Nagios-users] Nagios doesn't stop notifying when it should
If I leave out a contact group for every host and service and just
specify escalations, Nagios will fill my logs with warnings about it.
Isn't there a better way?
Jeff
On 11/23/05, Tedman Eng <teng at dataway.com> wrote:
> Think of service escalations as "in addition to" normal notifications
>
> For notification attempts for which there are no defined escalations, the
> normal contact group is used. If you want only notification attempts 1-5
to
> be sent, create a contact group called 'none' for the service definition
and
> then notify using only escalation definitions.
>
>
> define service
> contact_groups none
>
> define serviceescalation
> first_notification 1
> last_notification 5
> contact_groups ulsysadmins
>
> define serviceescalation
> first_notification 3
> last_notification 5
> contact_groups oncall,backup
>
>
> -----Original Message-----
> From: Jeff Williams [mailto:jeffwilliams05 at gmail.com]
> Sent: Wednesday, November 23, 2005 8:24 AM
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] Nagios doesn't stop notifying when it should
>
>
> I know I've submitted this question before and I don't want to spam
> everyone, but someone has to be using escalations that can help me.
> Can someone please help me explain why the first example used to work
> for me and now would not? I am using 2.0b4 (and have been since well
> before having this problem) and now have to use the lines in the
> second example to get notifications to stop after 5.
>
> > define serviceescalation{
> > host_name myserver
> > service_description /VAR
> > first_notification 3
> > last_notification 5
> > notification_interval 5
> > contact_groups oncall,backup
> > }
> >
> > define service{
> > use generic-service
> > host_name myserver
> > service_description /VAR
> > is_volatile 0
> > check_period 24x7
> > retry_check_interval 1
> > contact_groups ulsysadmins
> > notification_interval 5
> > notification_period 24x7
> > notification_options w,u,c,r
> > check_command check_nrpe!check_disk6
> > }
> >
> > What this used to do is notify 'ulsysadmins' for the first two
> > notifications, then escalate to 'oncall' and 'backup' for the third
> > through fifth notifications. Right now it does that, but then for the
> > sixth through infinite notification, it goes back to notifying
> > ulsysadmins. I thought this was enough to tell it to stop at 5
> > notifications. It used to be, but now I need to change the escalation
> > to:
> >
> > define serviceescalation{
> > host_name myserver
> > service_description /VAR
> > first_notification 3
> > last_notification 4
> > notification_interval 5
> > contact_groups oncall,backup
> > }
> >
> > define serviceescalation{
> > host_name myserver
> > service_description /VAR
> > first_notification 5
> > last_notification 5
> > notification_interval 0
> > contact_groups oncall,backup
> > }
>
> Thanks.
>
> Jeff Williams
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep through log
files
> for problems? Stop! Download the new AJAX search engine that makes
> searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
> http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at 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
>
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Nagios-users mailing list
Nagios-users at 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
More information about the Users
mailing list