notification service not work

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

notification service not work

Post by ehermouet »

Hi all

i have nagios core pro 4.0.7.

I use notification for host without error. but unable for service.

firt things i note on mail.log this error ->
Apr 3 07:19:11 localhost postfix/smtp[14272]: 6505981A: to=<[email protected]>, orig_to=<$>, relay=

so on my command i change my $contactemail$ by my email -> ok i receive email with notify-service-by-email
when i go to service and do "Send custom service notification" i receive it

but unable to receive it when my service is critical.

here an example of service:

Code: Select all

define service {
	host_name			xxxxxxx
	service_description		Antivirus SOPHOS
	display_name			Antivirus SOPHOS
	check_command			check_nt!SERVICESTATE -s nagios!-d SHOWALL -l SAVService!!!!!!
	is_volatile			0
	initial_state			o
	max_check_attempts		500
	check_interval			1
	retry_interval			1
	active_checks_enabled		1
	passive_checks_enabled		1
	check_period			24x7
	obsess_over_service		0
	check_freshness			0
	freshness_threshold		0
	event_handler			notify-service-by-email
	event_handler_enabled		0
	flap_detection_enabled		0
	process_perf_data		1
	retain_status_information	1
	retain_nonstatus_information	1
	notification_interval		0
	first_notification_delay	0
	notification_period		24x7
	notification_options		w,c,r,
	notifications_enabled		1
	contacts			myuser,GLPI
	contact_groups			admins
	stalking_options		o,w,c,
	register			1
	}

My user

define contact {
	contact_name                  		myuser
	alias                         		myuser
	host_notifications_enabled    		1
	service_notifications_enabled 		1
	host_notification_period      		24x7
	service_notification_period   		24x7
	host_notification_options     		d,u,r,
	service_notification_options  		c,r,
	host_notification_commands    		notify-host-by-email
	service_notification_commands 		notify-service-by-email
	can_submit_commands           		1
	email                         		[email protected]
	}
since 2 days... :'(

any help will be appreciated
ehermouet
Posts: 18
Joined: Tue Mar 03, 2015 5:12 am

Re: notification service not work

Post by ehermouet »

oups

my Max check attempts was to hight. i try with 1 and it's work :)
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: notification service not work

Post by ssax »

I was just replying, I'm glad you got that working. :) I'm going to mark this as resolved and lock the topic.
Locked