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: $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$\nAcknowledgements: $SERVICEACKCOMMENT$" | /usr/bin/mail -s "** $NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$
}
************************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. Any unauthorised distribution or copying is strictly
prohibited.
Whilst Kognitio Limited takes steps to prevent the transmission of
viruses via e-mail, we can not guarantee that any email or
attachment is free from computer viruses and you are strongly
advised to undertake your own anti-virus precautions.
Kognitio grants no warranties regarding performance,
use or quality of any e-mail or attachment and undertakes no
liability for loss or damage, howsoever caused.
***********************************************************************
