check_xi_service_http vs check_http

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
soniah
Posts: 5
Joined: Fri Apr 18, 2014 7:15 am

check_xi_service_http vs check_http

Post 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.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: check_xi_service_http vs check_http

Post 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.
Former Nagios employee
soniah
Posts: 5
Joined: Fri Apr 18, 2014 7:15 am

Re: check_xi_service_http vs check_http

Post 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$"
}
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: check_xi_service_http vs check_http

Post 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!
Former Nagios employee
Locked