Page 1 of 1

Nagios HTTP check

Posted: Wed Nov 09, 2016 10:31 pm
by krishnar
Hi Experts,

I have query about a Nagios configuration that I have seen in a server.

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



define service{
use local-service ; Name of service template to use
host_name localhost
service_description HTTP
check_command check_http
notifications_enabled 0
}

check_http command is configuration with 2 arguments, but the actual service definition is not passing the argument. Are the arguments in the command definition are optional parameters?

Krish

Re: Nagios HTTP check

Posted: Thu Nov 10, 2016 12:27 pm
by tmcdonald
That is correct - ARG1 is optional in this case, and is used if you want to pass in additional parameters such as SSL options, alternate ports, etc.