help: notifications not being sent!

Bryan Nolen bryan at bryann.ath.cx
Sun Feb 16 10:31:30 CET 2003


maillog shows no sending attempts, the notifications log is empty.

attached is my contacts and contactgroups files. also a sample from from 
hosts and services files...

-Bryan

On Sun, 16 Feb 2003 20:23, you wrote:
> Have you checked the maillog to see if any attempt is being made to send
> out the emails?
> What does the nagios log file say? Does it say it is sending out an
> alert?
>
> You may need to post a sample of config from all the files to really be
> able to see where the problem is.
>
> Tony
>
> > -----Original Message-----
> > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-
> > admin at lists.sourceforge.net] On Behalf Of Bryan Nolen
> > Sent: 16 February 2003 07:05
> > To: nagios-users at lists.sourceforge.net
> > Subject: [Nagios-users] help: notifications not being sent!
> >
> > plz help ....
> >
> > my contacts.cfg file has an entry for my admin user with a valid email
>
> address
>
> > my contactgroups.cfg file has the admin user as a member of the admins
>
> group.
>
> > my service template in services.cfg has admins on the contact_groups
>
> line.
>
> > the hostgroup for the hosts in question has admins on contact_groups
>
> line.
>
> > notifications are enabled globally. I am using the 24x7 time period
>
> for all
>
> > notification_period lines.
> >
> > but I am not getting any notifications!
> >
> > help needed asap!
> >
> > Regards,
> > Bryan.
> >
> > --
> > ==================================================
> > Bryan Nolen	   bryan at bryann dot ath dot cx
> >   		        http://bryann.ath.cx/
> > ==================================================
> >
> >
> >
> > -------------------------------------------------------
> > This sf.net email is sponsored by:ThinkGeek
> > Welcome to geek heaven.
> > http://thinkgeek.com/sf
> > _______________________________________________
> > Nagios-users mailing list
> > Nagios-users at lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/nagios-users
> >
> > ::: Please include Nagios version, plugin version (-v) and OS when
>
> reporting any
>
> > issue.
> >
> > ::: Messages without supporting info will risk being sent to /dev/null

-- 
==================================================
Bryan Nolen	   bryan at bryann dot ath dot cx
  		        http://bryann.ath.cx/
==================================================

-------------- next part --------------
# Contact configuration - converted from netsaint: 20030113

define contact {
	contact_name			root
	alias				Root
	service_notification_period	24x7
	host_notification_period	24x7
	service_notification_commands	service-notify-by-email
	host_notification_commands	host-notify-by-email
	email				bryan at arc.net.au
}



-------------- next part --------------
# Contact group configuration - converted from netsaint: 20030113

define contactgroup {
	contactgroup_name		admins
	alias				Administrators
	members				root
}

-------------- next part --------------
define service {
	name				my-service
	active_checks_enabled			1
	passive_checks_enabled			1
	parallelize_check				1
	obsess_over_service				1
	check_freshness					1
	notifications_enabled			1
	event_handler_enabled			1
	flap_detection_enabled			01
	process_perf_data				1
	retain_status_information		1
	retain_nonstatus_information	1

	is_volatile						0
	check_period					24x7
	max_check_attempts				5
	normal_check_interval			5
	retry_check_interval			5
	contact_groups					admins
	notification_interval		6	
	notification_period				24x7

	register						0
}

define service {
	use		my-service
	host_name		servername
	service_description	server-http
	check_command		check_http
}

# ----- #
define host {
	name							myhost
	notifications_enabled			1
	event_handler_enabled			1
	flap_detection_enabled			0
	process_perf_data				1
	retain_status_information		1
	retain_nonstatus_information	1

	check_command					check-host-alive
	max_check_attempts				5
	notification_interval			5
	notification_period				24x7
	notification_options			d,u,r

	register						0
}

define host {
	use			myhost
	host_name		servername
	alias			serverfqdn
	address			serverfqdn
}

# --- #
define hostgroup {
	hostgroup_name			myhosts
	alias				my hosts
	contact_groups			admins
	members			myhost
}	


More information about the Users mailing list