Help with Nagios check
Posted: Sun Nov 06, 2016 4:17 pm
Hi Experts,
This is my first post here. Please excuse me if I am asking a stupid question. I have seen a Nagios check config like this.
define command {
command_name check_site
command_line $USER1$/check_http -S -H $ARG1$ -I $HOSTADDRESS$ -p $ARG2$ -u /servlet/Test -e 200 -w 2 -c 4
}
I am having some difficulty in understand the -p and -I parameters. Why do we need -I which is the IP address of the host when we are passing the hostname in the $ARG1$. is it to bypass any local DNS resolution and enforce the IP address that is mentioned somewhere in the config?
Also, what does -P do? I thought -S is there to enforce https check
Krish
This is my first post here. Please excuse me if I am asking a stupid question. I have seen a Nagios check config like this.
define command {
command_name check_site
command_line $USER1$/check_http -S -H $ARG1$ -I $HOSTADDRESS$ -p $ARG2$ -u /servlet/Test -e 200 -w 2 -c 4
}
I am having some difficulty in understand the -p and -I parameters. Why do we need -I which is the IP address of the host when we are passing the hostname in the $ARG1$. is it to bypass any local DNS resolution and enforce the IP address that is mentioned somewhere in the config?
Also, what does -P do? I thought -S is there to enforce https check
Krish