Skip to content

Instantly share code, notes, and snippets.

@acobaugh
Created February 8, 2012 23:18
Show Gist options
  • Save acobaugh/1775321 to your computer and use it in GitHub Desktop.
Save acobaugh/1775321 to your computer and use it in GitHub Desktop.
define command {
command_name notify-service-ganglia
command_line /usr/bin/wget -q -O /dev/null "$CONTACTEMAIL$/api/events.php?action=add&start_time=now&summary=$NOTIFICATIONTYPE$ $SERVICEDESC$ $SERVICESTATE$&description=$SERVICEOUTPUT$&host_regex=$HOSTNAME$"
}
define command {
command_name notify-host-ganglia
command_line /usr/bin/wget -q -O /dev/null "$CONTACTEMAIL$/api/events.php?action=add&start_time=now&summary=$NOTIFICATIONTYPE$ $HOSTSTATE$&description=$HOSTOUTPUT$&host_regex=$HOSTNAME$"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment