Email Notifications (One More Try)
David Gitman
David at feedroom.com
Wed Apr 9 19:08:36 CEST 2003
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/6cc8c815/attachment.html>
More information about the Users
mailing list