Configure sendEmail commands to use an existing smtp server

compared with
Current by NotSupportContact-Mark Carey
on Jan 09, 2013 22:03.

Key
This line was removed.
This word was removed. This word was added.
This line was added.

Changes (11)

View Page History
### Change the new command definition to:
{code}
/usr/bin/printf "%b" "<html><b>+++++ HOST $NOTIFICATIONTYPE$ : $HOSTSTATE$
+++++<br>$LONGDATETIME$</b><br>Host: <b>$HOSTALIAS$ ($HOSTADDRESS$)</b></b><br>Message:
<b>$HOSTOUTPUT$</b></html>" | /usr/local/groundwork/common/bin/sendEmail -s $USER13$
-xu $USER14$ -xp $USER15$ -q -f $ADMINEMAIL$ -t $CONTACTEMAIL$ -u "[GW] ++ $HOSTNAME$ :
$HOSTSTATE$ ++"
### Use the following new command definition
{code}
/usr/bin/printf "%b" "<html><b>+++++ SERVICE $NOTIFICATIONTYPE$ : $SERVICESTATE$
+++++<br>$LONGDATETIME$</b><br>Host: <b>$HOSTALIAS$ ($HOSTADDRESS$)</b></b><br>Message:
<b>$SERVICEOUTPUT$</b></html>" | /usr/local/groundwork/common/bin/sendEmail -s $USER13$
-xu $USER14$ -xp $USER15$ -q -f $ADMINEMAIL$ -t $CONTACTEMAIL$ -u "[GW] ++ $HOSTNAME$ :
$SERVICEDESC$ : $SERVICESTATE$ ++"
{code}
Now you should be able to use the *host-notify-by-sendemail* and *service-notify-by-sendemail* commands in your contact templates for notifications.

{{Configuration -> Contacts -> Contact templates -> modify -> [NameOfTemplate]}}
{{Configuration \-> Contacts \-> Contact templates \-> modify \-> NameOfTemplate}}

Or for individual contacts:

{{Configuration -> Contacts -> Contacts -> modify -> [NameOfContact]}}
{{Configuration \-> Contacts \-> Contacts \-> modify \-> NameOfContact}}

The full list of settings for sendEmail are as follows: