some notification per minute

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
ehermouet
Posts: 18
Joined: Tue Mar 03, 2015 5:12 am

some notification per minute

Post 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

}
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: some notification per minute

Post 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.
Locked