Notification

Marc Powell mpowell at ena.com
Thu Feb 27 19:44:58 CET 2003


There isn't one. Nagios uses whatever command is specified in
commands.cfg as host-notify-by-email and service-notify-by-email e.g.

# 'service-notify-by-email' command definition
define command{
        command_name    service-notify-by-email
        command_line    /bin/echo -e "Subject: Service $SERVICEDESC$
$SERVICESTATE$ alert for $HOSTNAME$!\n\n***** NetSaint *****\n\
nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState:
$SERVICESTATE$\nAddress: $HOSTADDRESS$\n\nService: $SERVICEDESC$\nI
nfo: $OUTPUT$\n\nDate/Time: $DATETIME$\n" | /bin/mail -s '**
$NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ 
**' $CONTACTEMAIL$
        }

In the above case it's /bin/mail which uses sendmail for final delivery.
Other MUA's use other MTA's. Postfix probably comes with an equivalent
to /bin/mail specifically for Postfix, etc.

You might want to look at the above two commands and see what happens
when you execute them directly from the command line as user nagios.

--
Marc

> -----Original Message-----
> From: Hugo Rebello [mailto:hugo.rebello at br.danzas.com]
> Sent: Thursday, February 27, 2003 12:24 PM
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] Notification
> 
> Where is the SMTP SERVER configuration in Nagios ?
> Because I don't receive the notifications by e-mail.
> 
> Thank you.
> Hugo
> 
> 
> 
> 
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when
> reporting any issue.
> ::: Messages without supporting info will risk being sent to /dev/null


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list