Nagios HTTP check

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
krishnar
Posts: 13
Joined: Sun Nov 06, 2016 4:08 pm

Nagios HTTP check

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

Re: Nagios HTTP check

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