check_xi_service_http multiple checks
Posted: Mon Feb 23, 2015 11:02 am
I have multiple machines that I need to look for the string "Diagnostics" on a website. These machines are all identical and running the same web service. I have one machine working fine but would like to setup a service template using the check_xi_service_http check command. Currently my check looks like this: $USER1$/check_http -H $HOSTADDRESS$ $ARG1$ with the $ARG1$ as -s "Diagnostics" -f ok -I <MACHINE IP> -u "/" -p <PORT NUMBER>
The <MACHINE IP> is what I am trying to use a variable for to use the Host Address. The <PORT NUMBER> would always be the same but this might be nice to have as a variable as well.
I figure once I get this all working I could do the same for several other checks I have for multiple machines and instead of using separate checks for each and every host place the service check within a service template. Others I am trying to do this with are the DNS service check $USER1$/check_dns -H $HOSTADDRESS$ $ARG1$ using -a <MACHINE IP>
The <MACHINE IP> is what I am trying to use a variable for to use the Host Address. The <PORT NUMBER> would always be the same but this might be nice to have as a variable as well.
I figure once I get this all working I could do the same for several other checks I have for multiple machines and instead of using separate checks for each and every host place the service check within a service template. Others I am trying to do this with are the DNS service check $USER1$/check_dns -H $HOSTADDRESS$ $ARG1$ using -a <MACHINE IP>