Page 1 of 1

some notification per minute

Posted: Tue Apr 07, 2015 2:38 am
by ehermouet
HI all

i have nagios core 4.0.7

i monitoring some services but i want to receive only 1 alert when problem come, but today i receive some alert per minute.
Do you knwo why ?

here my config files:

Code: Select all

define service {
	host_name			JASPER,SPBDD2,SPBDD4,SPEXCHANGE,SPNASX1400,SPSCS12,SPSLX,SPSTORAGE02,SPSYNC,SPTSE2,SPTSE5,SRVPCL01,SRVPCL02,SRVPCL04,SRVPCL06,Telephonie,TSEGESTION,Vcenter2
	service_description		Espace disque  C
	use				Services-importants
	display_name			Espace disque C
	check_command			check_nt!USEDDISKSPACE -w 90 -c 95 -s nagios!-l c!!!!!!
	initial_state			o
	max_check_attempts		500
	check_interval			1
	retry_interval			3
	check_period			24x7
	check_freshness			1
	freshness_threshold		0
	notification_interval		0
	first_notification_delay	0
	notification_period		24x7
	register			1
	}

define service {
       name                          		Services-importants
       service_description           		Services-importants
       display_name                  		Services-importants
       is_volatile                   		1
       initial_state                 		o
       max_check_attempts            		1
       check_interval                		1
       retry_interval                		30
       active_checks_enabled         		1
       passive_checks_enabled        		1
       check_period                  		24x7
       obsess_over_service           		1
       check_freshness               		1
       freshness_threshold           		0
       process_perf_data             		1
       retain_status_information     		1
       retain_nonstatus_information  		1
       notification_interval         		0
       first_notification_delay      		0
       notification_period           		24x7
       register                    		0

}

Re: some notification per minute

Posted: Tue Apr 07, 2015 11:53 am
by jdalrymple
All of the parameters in your service definition will override the template:

Code: Select all

   max_check_attempts      500
   check_interval         1
   retry_interval         3
   notification_interval      0
So in theory you should get 1 alert 1500 minutes after the service fails.

Why you got many - hard to say without seeing logs or some such. I can say the line:

Code: Select all

   check_freshness         1
Is a little bit weird there since it doesn't appear to be a passive check. That *may* have something to do with your blat of notifications.