Email Notifications (One More Try)

David Gitman David at feedroom.com
Wed Apr 9 18:05:53 CEST 2003


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$

        }

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


More information about the Users mailing list