Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- define command{
- command_name notify-host-by-email
- command_line /usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n" | /usr/bin/mail -s "** $NOTIFICATIONTYPE$ Host Alert: $HOSTNAME$, $HOSTNOTES, is $HOSTSTATE$ **" $CONTACTEMAIL$
- }
Add Comment
Please, Sign In to add comment