but I haven't found an answer, so I would like to ask.(Return code of 4 is out of bounds : /usr/local/nagios/libexec/check_port.pl -p <port> -h <host> (-c <critical> -w <warning> -v)))
In my Nagios configuration, I have set up:
And I'm getting a return:define service{
use none
host_name TEST
service_description Port 80
check_command check_port.pl! -p 80 -h www.google.com '-w 1 -c 2 -v'
max_check_attempts 1
check_interval 1
retry_interval 1
}
(Return code of 4 is out of bounds : /usr/local/nagios/libexec/check_port.pl -p <port> -h <host> (-c <critical> -w <warning> -v)))
I am running it from the command line.
./check_port.pl -p 80 -h google.pl -w 1000.0,80% -c 2000.0,100% -v
I get:
Which ties to the following command:PORT 80 OK: google.pl/80 is responding
Code: Select all
define command{
command_name check_port.pl
command_line $USER1$/check_port.pl -p $ARG1$ -h $HOSTADDRESS$
}