Email Notification using Postfix
Scott Lambert
lambert at lambertfam.org
Tue Jun 21 19:39:47 CEST 2005
On Tue, Jun 21, 2005 at 12:25:07PM -0500, Matt Luettgen wrote:
> > # 'notify-by-email' command definition
> > define command{
> > command_name notify-by-email
> > command_line /usr/bin/printf "%b" "*****
> > Nagios *****\n\nNotification Type:
> > $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost:
> > $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState:
> > $SERVICESTATE$\n\nDate/Time: $DATETIME$\n\nAdditional
> > Info:\n\n$OUTPUT$" | /usr/sbin/sendmail -s "**
> > $NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$
> > is $SERVICESTATE$ **" $CONTACTEMAIL$
Try changing sendmail(8) to mail(1).
The manpage for sendmail's sendmail(8) on my system, FreeBSD 4.11, does
not list a -s parameter. mail(1), on the other hand, does.
--
Scott Lambert KC5MLE Unix SysAdmin
lambert at lambertfam.org
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
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