Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
Directory
ivani
Hello,
Can you help me. What I must write in section "define service"? If I write it:
check_command check_website! -P 203.146.82.253 -w 20000 -c 50000 www.name.com - it is work not correctly.
In the commands.cfg I wrote it:
command_line $USER1$/check_website.sh -P $ARG1$ -w $ARG2$ -c $ARG3$ $HOSTADDRESS$
If I try to run this script
/usr/lib/nagios/plugins/check_website.sh -p 80 -u /index.html -P 203.146.82.253 -w 22000 -c 50000 www.name.com - all work!
Can you help me. What I must write in section "define service"? If I write it:
check_command check_website! -P 203.146.82.253 -w 20000 -c 50000 www.name.com - it is work not correctly.
In the commands.cfg I wrote it:
command_line $USER1$/check_website.sh -P $ARG1$ -w $ARG2$ -c $ARG3$ $HOSTADDRESS$
If I try to run this script
/usr/lib/nagios/plugins/check_website.sh -p 80 -u /index.html -P 203.146.82.253 -w 22000 -c 50000 www.name.com - all work!
Owner's reply
Hello Ivani,your proxy definition is missing the port number.
It works on the cli since you probably have a defined proxy environment value which is used in favor of the passed argument.
Try to use 203.146.82.253:3128 if that is your proxy ip and service port.
My script is lacking in argument checking. I'll have to fix that.