SINGLE ALERT NOTIFICATION IN PASSIVE CHECK

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
itSmart
Posts: 9
Joined: Fri Oct 21, 2011 5:22 am

Re: SINGLE ALERT NOTIFICATION IN PASSIVE CHECK

Post 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.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: SINGLE ALERT NOTIFICATION IN PASSIVE CHECK

Post 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"?
itSmart
Posts: 9
Joined: Fri Oct 21, 2011 5:22 am

Re: SINGLE ALERT NOTIFICATION IN PASSIVE CHECK

Post 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.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: SINGLE ALERT NOTIFICATION IN PASSIVE CHECK

Post 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.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: SINGLE ALERT NOTIFICATION IN PASSIVE CHECK

Post 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
itSmart
Posts: 9
Joined: Fri Oct 21, 2011 5:22 am

Re: SINGLE ALERT NOTIFICATION IN PASSIVE CHECK

Post by itSmart »

I've executed the command, but the notification still remain every 5 minutes.
F.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: SINGLE ALERT NOTIFICATION IN PASSIVE CHECK

Post 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.
itSmart
Posts: 9
Joined: Fri Oct 21, 2011 5:22 am

Re: SINGLE ALERT NOTIFICATION IN PASSIVE CHECK

Post 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.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: SINGLE ALERT NOTIFICATION IN PASSIVE CHECK

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