Skip to content

Instantly share code, notes, and snippets.

View warwickp's full-sized avatar
🏠
Working from home

Warwick Poole warwickp

🏠
Working from home
View GitHub Profile
# 'notify-throttle-host' command definition
define command{
command_name notify-throttle-host
command_line /usr/local/bin/ruby $USER1$/throttle_alert.rb "$CONTACTEMAIL$" "[nagios] $NOTIFICATIONTYPE$ Host: $HOSTNAME$ $HOSTSTATE$" "at $LONGDATETIME$ \n\n $NOTIFICATIONTYPE$ : $HOSTNAME$ ($HOSTADDRESS$) is $HOSTSTATE$ \n\n: $HOSTOUTPUT$ \n"
}
# 'notify-throttle-service' command definition
define command{
command_name notify-throttle-service
command_line /usr/local/bin/ruby $USER1$/throttle_alert.rb "$CONTACTEMAIL$" "[nagios] $NOTIFICATIONTYPE$ Service: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$" "at $LONGDATETIME$ \n\n $NOTIFICATIONTYPE$ : Service $SERVICEDESC$ on $HOSTALIAS$ ($HOSTADDRESS$) is $SERVICESTATE$ \n\n: $SERVICEOUTPUT$ \n"