Notifications by e-mail

Lonny Selinger lonny at bangtherockstogether.net
Wed Apr 2 21:33:19 CEST 2003


> 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