7 lines
532 B
INI
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$
|
|
}
|