Send only X Notifications on failure

scott_yem at agilent.com scott_yem at agilent.com
Wed Jan 4 19:46:54 CET 2006


Additionally, you should be able to add the information to the template and use templates as described in the manual.  This would make the changes you make global.

Alternatively, you should be able to vi the file and ":%s/last_notification   60/last_notification   1/" to make the change globally.  This would work if the configurations were copied to make the next template.  The task is not difficult to manage even with several hundreds of services.

Scott Yem

-----Original Message-----
From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of vol
Sent: Tuesday, January 03, 2006 2:45 AM
To: nagios-users at lists.sourceforge.net
Subject: Re: [Nagios-users] Send only X Notifications on failure

Hi Mario,

mario at bortal.de wrote:
> Hi,
> 
>> define serviceescalation{
>>      host_name           xxx01
>>      service_description check_http
>>      first_notification  1
>>     ** last_notification   60**
>>      notification_interval       10
>>      contact_groups              Admins
>>      escalation_period   24x7
>>      escalation_options  w,u,c,r
>>     }
>>
>> Change the "last notification" to the number of messages you want to be
>> send out
>>   for the service .
>>
>> if you want only one for each event - just change it to 1 .
> 
> Can you set the last_notification globally?
> I have about 12Services to monitor, and it would be useful if i could only
> define it once.
> 
> Otherwise my escalation config will get pretty big.
> 
> Thanks, Mario

you can use "notification_interval 0" in your service template, like it 
is described in the fine manuals:

<snip>

notification_interval:	This directive is used to define the number of 
"time units" to wait before re-notifying a contact that this service is 
still in a non-OK state. Unless you've changed the interval_length 
directive from the default value of 60, this number will mean minutes. 
If you set this value to 0, Nagios will not re-notify contacts about 
problems for this service - only one problem notification will be sent out.

</snip>

-vol


-------------------------------------------------------
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



-------------------------------------------------------
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





More information about the Users mailing list