Email Notifications (One More Try)

Jon Lyons jlyons30 at yahoo.com
Wed Apr 9 18:55:46 CEST 2003


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 - File online, calculators, forms, and more
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20030409/3dec5b03/attachment.html>


More information about the Users mailing list