email notifications
David Gitman
David at feedroom.com
Tue Apr 1 18:34:17 CEST 2003
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. Any 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/20030401/b15a3b7a/attachment.html>
More information about the Users
mailing list