Email Notifications (One More Try)

David Gitman David at feedroom.com
Wed Apr 9 20:02:10 CEST 2003


Which one would that be?

 

[-d]

-----Original Message-----
From: Drew Weaver [mailto:drew.weaver at thenap.com] 
Sent: Wednesday, April 09, 2003 2:10 PM
To: David Gitman
Subject: RE: [Nagios-users] Email Notifications (One More Try)

 

Might help if you run nagios under a real OS.

 

-Drew

 

 

-----Original Message-----
From: David Gitman [mailto:David at feedroom.com] 
Sent: Wednesday, April 09, 2003 1:09 PM
To: Jon Lyons; nagios-users at lists.sourceforge.net
Subject: RE: [Nagios-users] Email Notifications (One More Try)

 

Yes, it's set to nagios.

 

[-d]

-----Original Message-----
From: Jon Lyons [mailto:jlyons30 at yahoo.com] 
Sent: Wednesday, April 09, 2003 12:56 PM
To: David Gitman; nagios-users at lists.sourceforge.net
Subject: Re: [Nagios-users] Email Notifications (One More Try)

 

Have you checked the nagios_user= option in the nagios.cfg file? 

 David Gitman <David at feedroom.com> wrote: 

	My email notifications are being sent from root at host. When I run
the command definition by hand it comes from nagios at host. Nagios is
running as nagios.

	 

	I'm running Solaris 7 and using mailx, simply because I couldn't
get it to work with mail.

	 

	Could Nagios be starting as root and su'ing to nagios?

	 

	Any other ideas?

	 

	 

	ps -ef | grep nagios

	nagios  6314     1  0   Mar 20 ?       48:26
/local/project/nagios/bin/nagios -d /local/project/nagios/etc/nagios.cfg

	dgitman 17296  4466  0 12:38:52 pts/18   0:00 grep nagios

	  

	 

	# 'notify-by-email' command definition

	define command{

	        command_name    notify-by-email

	        command_line    /usr/bin/printf "%b" "***** Nagios 1.0
*****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SE

	RVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState:
$SERVICESTATE$\n\nDate/Time: $DATETIME$\n\nAdditional Info:\n\n

	$OUTPUT$" | /usr/bin/mailx -s "** $NOTIFICATIONTYPE$ alert -
$HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$

	        }

 

  _____  

Do you Yahoo!?
Yahoo! Tax Center
<http://us.rd.yahoo.com/finance/mailsig/*http:/tax.yahoo.com>  - File
online, calculators, forms, and more

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20030409/29b6fb04/attachment.html>


More information about the Users mailing list