Cant mail notification, anyone can help?

it kid michaelcheung at arnhold.com.hk
Thu Mar 20 08:48:20 CET 2003


I have search over the form and have try manytimes but still fail, I wonder is any wrong of my setting but one interesting is the sendmail have success contact the company Lotus Domino server but with no notification is received just the following.

03/20/2003 03:10:27 PM  SMTP Server: 192.168.1.241 connected
03/20/2003 03:10:27 PM  SMTP Server: 192.168.1.241 disconnected. 0 message[s] received

Please give me some hints and I post my relevant config file here.

Contactgroups.cfg

# 'nt-admins' contact group definition
define contactgroup{
	contactgroup_name	server-admin
	alias			Server Administrators
	members			nagios, admin
}

Contacts.cfg

# 'nagios' contact definition
define contact{
        contact_name                    admin
        alias                           Administrator
        service_notification_period     workhours
     	host_notification_period        workhours
        service_notification_options    c,r
        host_notification_options       d,r
        service_notification_commands   notify-by-email
        host_notification_commands      host-notify-by-email
        email                           root
        }

	
define contact{
	contact_name			nagios
	alias				nagios admin
	service_notification_period	workhours
	host_notification_period	workhours
	service_notification_options	c,r
	host_notification_options	d,r
	service_notification_commands	notify-by-email
	host_notification_commands	host-notify-by-email
	email		                myname at mycomputer.com
	}


Services.cfg

define service{
	use				generic-service		; Name of service template to use

	host_name			test
	service_description		PING
	is_volatile			0
	check_period			24x7
	max_check_attempts		3
	normal_check_interval		5
	retry_check_interval		1
	contact_groups			server-admin
	notification_interval		120
	notification_period		24x7
	notification_options		c,r
	check_command			check_ping!100.0,20%!500.0,60%
	}

Misccommands.cfgdefine command{
	command_name	notify-by-email
	command_line	/usr/bin/echo -e "*****Nagios1.0*****nnNotificationType: $NOTIFICATIONTYPE$nnService: $SERVICEDESC$nHost: $HOSTALIAS$nAddress: $HOSTADDRESS$nState: $SERVICESTATE$nnDate/Time: $DATETIME$nnAdditional Info:nn$OUTPUT$" | /bin/mail -s "** $NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$

# 'host-notify-by-email' command definition
define command{
	command_name	host-notify-by-email
	command_line	/usr/bin/echo -e "***** Nagios1.0*****nnNotification Type: $NOTIFICATIONTYPE$nHost: $HOSTNAME$nState: $HOSTSTATE$nAddress: $HOSTADDRESS$nInfo: $OUTPUT$nnDate/Time: $DATETIME$n" | /bin/mail -s "Host $HOSTSTATE$ alert for $HOSTNAME$!" $CONTACTEMAIL$
	}


I have change misccommands.cfg of command_line parts as mentions in other mail, and can using "mail myemailaddress" in command line to send mail to the Lotus Domino mail server. The notification have been generated but my mail server have never receive it.I think Nagios is excellent, but this part is confused me.

Sendmail version is 8.11.6-15 and the only things changes of sendmail.mc is the line of and I have not change other sendmail config.

dnl define(`SMART_HOST',`192.168.1.2') -- point to the lotus domino server 
DAEMON_OPTIONS(`Port=smtp,Addr=192.168.1.241, Name=MTA') -- point to the nagios server (with sendmail)


Anyone please help me, thanks a lot.








-------------------------------------------------------
This SF.net email is sponsored by: Does your code think in ink? 
You could win a Tablet PC. Get a free Tablet PC hat just for playing. 
What are you waiting for?
http://ads.sourceforge.net/cgi-bin/redirect.pl?micr5043en
_______________________________________________
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





More information about the Users mailing list