Created
May 29, 2012 13:38
-
-
Save phlegx/2828426 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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