Home Directory

Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Directory Tree

Directory

ivani

Reviews(1)
byivani, June 2, 2014
0 of 1 people found this review helpful
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!
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.