surveil/tools/docker/etc/shinken/commands/detailled-host-by-email.cfg
aviau 9f7cdee108 Moved Dockerfile to root
Change-Id: Ie4e4b14028aeeba58d20464fc9c5d02846b029ec
2014-08-14 20:57:02 -04:00

7 lines
532 B
INI

## Notify Host by Email with detailled informations
# Service have appropriate macros. Look at unix-fs pack to get an example
define command {
command_name detailled-host-by-email
command_line /usr/bin/printf "%b" "Shinken Notification\n\nType:$NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nDate/Time: $DATE$/$TIME$\n Host Output : $HOSTOUTPUT$\n\nHost description: $_HOSTDESC$\nHost Impact: $_HOSTIMPACT$" | /usr/bin/mail -s "Host $HOSTSTATE$ alert for $HOSTNAME$" $CONTACTEMAIL$
}