Page 1 of 1

check_xi_service_http vs check_http

Posted: Tue Apr 22, 2014 12:22 am
by soniah
What is the difference between check_xi_service_http and check_http?

In this particular case (http) I'm wondering if the two commands accept the same parameters, but I'm also interested in the general differences in the xi_service commands.

I've searched my system for a check_xi_service_http executable but haven't found one, so I presume invocation is caught by some sort of hook.

Re: check_xi_service_http vs check_http

Posted: Tue Apr 22, 2014 9:15 am
by tmcdonald

Code: Select all

define command {
       command_name                     check_http
       command_line                     $USER1$/check_http -I $HOSTADDRESS$ $ARG1$
}

define command {
       command_name                     check_xi_service_http
       command_line                     $USER1$/check_http -H $HOSTADDRESS$ $ARG1$
}
One uses -I and one uses -H, and both are defined in the commands.cfg file. Should be in the CCM as well.

Re: check_xi_service_http vs check_http

Posted: Tue Apr 22, 2014 6:19 pm
by soniah
Ah thanks tmcdonald.

Code: Select all

% pwd
/usr/local

% grep -l -r check_xi_service_http *
..
nagios/etc/commands.cfg
..

% grep -A 3 check_xi_service_http nagios/etc/commands.cfg
       command_name                             check_xi_service_http
       command_line                             $USER1$/check_http -H $HOSTADDRESS$ $ARG1$
}

--
       command_name                             check_xi_service_http_cert
       command_line                             $USER1$/check_http -H $HOSTADDRESS$ -C $ARG1$
}

--
       command_name                             check_xi_service_http_content
       command_line                             $USER1$/check_http -H $HOSTADDRESS$ --onredirect=follow -s "$ARG1$"
}

Re: check_xi_service_http vs check_http

Posted: Wed Apr 23, 2014 9:22 am
by tmcdonald
You're quite welcome. I'll be closing this thread now, but feel free to open another if you need anything in the future!