Try defining a command that doesn't use the HOSTADDRESS.

This commit is contained in:
Ralph Bean 2015-09-30 17:50:08 +00:00
parent 3fb95d3dd0
commit 9e364dcd18
2 changed files with 10 additions and 1 deletions

View file

@ -166,7 +166,7 @@ define service {
define service {
host_name 209.132.183.81-phx2
service_description whatcanidoforfedora.org - asknot-ng
check_command check_website!whatcanidoforfedora.org!/en/!What
check_command check_remote_website!whatcanidoforfedora.org!/en/!What
use websitetemplate
}

View file

@ -75,6 +75,15 @@ define command{
command_line $USER1$/check_http -w 18 -c 28 --ssl -I $HOSTADDRESS$ -H $ARG1$ -u $ARG2$ -s "$ARG3$"
}
define command{
command_name check_remote_website
command_line $USER1$/check_http -w 18 -c 28 -H $ARG1$ -u "$ARG2$" -s "$ARG3$"
}
define command{
command_name check_remote_website_ssl
command_line $USER1$/check_http -w 18 -c 28 --ssl -H $ARG1$ -u $ARG2$ -s "$ARG3$"
}
define command {
command_name check_by_ssh_check_raid
command_line $USER1$/check_by_ssh -t 30 -H $HOSTADDRESS$ "$USER1$/check_raid.py"