Notifications by e-mail

Hugo Rebello hugo.rebello at dhl.com
Wed Apr 2 21:37:33 CEST 2003


I don't have problem in use the "mail command", I just can't start the
sendmail service.
Why when I use "mail command" I need running the sendmail service ?

Thanks,
Hugo

-----Original Message-----
From: Lonny Selinger [mailto:lonny at bangtherockstogether.net]
Sent: quarta-feira, 2 de abril de 2003 16:33
To: hugo.rebello at dhl.com
Cc: nagios-users at lists.sourceforge.net
Subject: RE: [Nagios-users] Notifications by e-mail


> The company don't permit to use another MTA (anyone) in the internal
network. If I
> want notify the administrators using Nagios, I must use the MTA of
company.
> On Nagios, exist some option for it ? Redirect the notification for
another MTA ?
>
> Thank you.
> Hugo

Then I'd suggest the original option ... redefine the command for
notifications
through email. The original is simply:

define command {
command_name                   notify-by-email
command_line                   /bin/echo -e "***** Nagios 1.0
*****\n\nNotification
Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHo
st: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time:
$DATETIME$\n\nAdditional Info:\n\n$OUTPUT$" | /bin/mail -s "**
$NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **"
$CONTACTEMAIL$
}

the command this is actually using is /bin/mail but you could pipe it to
whatever
you need in order to deliver the mail properly.

--
Lonny




-------------------------------------------------------
This SF.net email is sponsored by: ValueWeb: 
Dedicated Hosting for just $79/mo with 500 GB of bandwidth! 
No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
_______________________________________________
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