Re: Return code of 4 is out of bounds
Posted: Fri Aug 25, 2023 8:53 am
What I see is an conflict is the arguments in the command definition and the arguments in the service check's arguments.
Your command line is
And the service check command is this
It is specifying the -p and the -h option twice in the command which is causing the error.
Change the command line to this for the command
Change the check command for the service like this.
Then try it out and see if it works.
Your command line is
Code: Select all
command_line $USER1$/check_port.pl -p $ARG1$ -h $HOSTADDRESS$
Code: Select all
check_command check_port.pl! -p 80 -h www.google.com '-w 1 -c 2 -v'
Change the command line to this for the command
Code: Select all
command_line $USER1$/check_port.pl $ARG1$
Code: Select all
check_command check_port.pl! -p 80 -h www.google.com -w 1 -c 2 -v