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
Nagios HTTP check
Re: Nagios HTTP check
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.
Former Nagios employee