Skip to content

Instantly share code, notes, and snippets.

@phlegx
Created May 29, 2012 13:38
Show Gist options
  • Save phlegx/2828426 to your computer and use it in GitHub Desktop.
Save phlegx/2828426 to your computer and use it in GitHub Desktop.
define command {
command_name restart-service
command_line /etc/nagios3/conf.d/event_handler_script.sh $SERVICESTATE$ $SERVICESTATETYPE $ $SERVICEATTEMPT$ $HOSTADDRESS$ $ARG1$ $SERVICEDESC$
}
define service {
host_name servername
service_description Service Name
servicegroups example-service
check_command check_https_livetest!https://cluster.example.com/livetest/1
use generic-service
notification_interval 5
event_handler restart-service!sge-execd
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment