Page 2 of 2

Re: SINGLE ALERT NOTIFICATION IN PASSIVE CHECK

Posted: Wed Oct 26, 2011 11:55 am
by itSmart
mguthrie wrote:Hmm, can you send us an email with your latest "Configuration Snapshot"? Something doesn't add up, if "notifications_enabled 0" is set, you shouldn't be receiving any notifications for the service. Access the Configure->Core Config Manager->Configuration Snapshots page, and go ahead and email [email protected] the latest tarball. We'll post replies here.
mguthrie,
in some Services I have disabled the notification for massive mail (check and mail every 5 minutes) ... in another Service the parameters notifications_enabled is 1.
Some minutes and I send some file at [email protected].

Thanks
F.

Re: SINGLE ALERT NOTIFICATION IN PASSIVE CHECK

Posted: Thu Oct 27, 2011 10:10 am
by mguthrie
I looked at your configuration snapshot, and I'm not sure if this is the issue or not, but I'm noticing that there are redundant contacts set up for the service(s) that you've been having issues with.

Note the contacts, and contact groups:

Code: Select all

define service {
	host_name			CAVAZZINI_SBS-CAVAZZINI
	service_description		SISTEMA_NumeroProcessi
	use				xiwizard_passive_service
	max_check_attempts		1
	check_interval			1
	retry_interval			1
	passive_checks_enabled		1
	check_period			24x7
	notification_interval		0
	notification_period		24x7
	notification_options		w,r
	notifications_enabled		1
	contacts			nagiosadmin
	contact_groups			admins,GRP_Alert
	_xiwizard			passiveobject
	register			1
	}	
And the contact groups have the same set of users set up in two different groups:

Code: Select all

define contactgroup {
	contactgroup_name             		admins
	alias                         		Nagios Administrators
	members                       		nagiosadmin,SSFBC,SSFFU,SSMDA
	}	

define contactgroup {
	contactgroup_name             		GRP_Alert
	alias                         		Gruppo di ALERT
	members                       		SSFBC,SSFFU,SSMDA
	}


Are the multiple emails all coming in around the same time?

Also, just to be safe, can you set "Active Checks Enabled" to "off"?

Re: SINGLE ALERT NOTIFICATION IN PASSIVE CHECK

Posted: Fri Oct 28, 2011 7:14 am
by itSmart
" Are the multiple emails all coming in around the same time? "
I receive only one email for each service every 5 minutes (passive check are scheduled every 5 minutes).

" Also, just to be safe, can you set "Active Checks Enabled" to "off"? "
Ok, I've turned off the Active Checks for Host and Services, but the notification still remain every 5 minutes.

Thanks
F.

Re: SINGLE ALERT NOTIFICATION IN PASSIVE CHECK

Posted: Fri Oct 28, 2011 9:53 am
by mguthrie
Ok, I'm officially stumped, I passed this up to our lead developer to see if there's anything I could be missing as far as the notification logic goes. By all evidence I can see you should only be receiving 1 notification.

Re: SINGLE ALERT NOTIFICATION IN PASSIVE CHECK

Posted: Fri Oct 28, 2011 11:40 am
by mguthrie
Can you check to make sure a 2nd instance of nagios hasn't been spawned that's using an old config.

Code: Select all

killall -9 nagios
service nagios start

Re: SINGLE ALERT NOTIFICATION IN PASSIVE CHECK

Posted: Mon Oct 31, 2011 7:58 am
by itSmart
I've executed the command, but the notification still remain every 5 minutes.
F.

Re: SINGLE ALERT NOTIFICATION IN PASSIVE CHECK

Posted: Tue Nov 01, 2011 12:43 pm
by mguthrie
Can we try recreating these services? We're a little bit stumped as to why these services aren't obeying the config directives.

Re: SINGLE ALERT NOTIFICATION IN PASSIVE CHECK

Posted: Fri Nov 04, 2011 9:34 am
by itSmart
mguthrie wrote:Can we try recreating these services? We're a little bit stumped as to why these services aren't obeying the config directives.
I could not recreate the services, but I activated a new Server in passive check.
Before activating this new Server, I changed the hosts and services templates (xiwizard_passive_service, xiwizard_passive_host) parameters (check period, retry interval, check interval and so on).
After these new settings (applied only to the templates and not in the already configured hosts and services), I added the new host and services, and from that moment everything works fine!
I don't know why, but alert settings now follow the config directives.
Do you need the configuration snapshot to have a look?
thanks
F.

Re: SINGLE ALERT NOTIFICATION IN PASSIVE CHECK

Posted: Fri Nov 04, 2011 12:41 pm
by mguthrie
I'm still a little bit confused myself as to what happened there. Just to confirm, are the services you were having issues with working ok now?