Skip to content

Instantly share code, notes, and snippets.

@warwickp
Created July 10, 2010 04:59
Show Gist options
  • Save warwickp/470448 to your computer and use it in GitHub Desktop.
Save warwickp/470448 to your computer and use it in GitHub Desktop.
# '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"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment