Page 1 of 1

Enquiry on error

Posted: Fri Oct 24, 2014 5:22 am
by dino
Error: Service check command 'check_http_proxy' specified in service '_ URL Status' for host 'Google SG' not defined anywhere!

define host {
host_name Google SG
use xiwizard_website_host
address 10.1.237.103
hostgroups linux-servers
check_command check-dummy!0!!!!!!!
max_check_attempts 5
check_interval 10
retry_interval 1
check_period xi_timeperiod_24x7
contacts nagiosadmin
contact_groups admins
notification_period xi_timeperiod_24x7
first_notification_delay 0
notification_options d,u,r,f,s,
notifications_enabled 1
register 1
}

###############################################################################

service
###############################################################################

define service {
host_name Google SG
service_description _ URL Status
use generic-service
display_name GE Life Proxy
check_command check_http_proxy!myproxy.ge.net:880!pgpsg:Password1234!http://www.google.com.sg!10!5.0!"Google.com.sg offered in"!!
max_check_attempts 5
check_interval 10
retry_interval 1
check_period xi_timeperiod_24x7
notification_period xi_timeperiod_24x7
contacts nagiosadmin
contact_groups admins
register 1
}

please help.

Re: Enquiry on error

Posted: Fri Oct 24, 2014 9:05 am
by tmcdonald
Can you post the command definition for check_http_proxy?

Re: Enquiry on error

Posted: Fri Oct 24, 2014 7:53 pm
by dino
$USER1$/check_http_proxy --proxy $ARG1$ --auth $ARG2$ --url $ARG3$ --timeout $ARG4$ --warntime $ARG5$ --expect $ARG6$

Re: Enquiry on error

Posted: Sat Oct 25, 2014 5:17 am
by dino
Or is there any nagios plugins that can support SSL - with proxy authentication, im currently using plugin check_http_proxy plugins but non working on ssl

Re: Enquiry on error

Posted: Mon Oct 27, 2014 10:09 am
by sreinhardt
Looks like there are quite a few options. The nagios-plugins check_http with -j CONNECT and -i [proxy IP] flags added should cause the plugin to use connect and go to the proxies IP then use it for the connection. I see whether this has been completed is up for discussion, so this might not be the best route at this time. Otherwise exchange appears to have quite a few options:

http://exchange.nagios.org/index.php?op ... eb%20proxy

One in that caught my eye for a quick basic setup was: http://exchange.nagios.org/directory/Pl ... te/details

Re: Enquiry on error

Posted: Tue Oct 28, 2014 1:51 am
by dino
http://exchange.nagios.org/directory/Pl ... te/details - does not support proxy with authentication.

check_http -J CONNECT same.

Re: Enquiry on error

Posted: Tue Oct 28, 2014 9:32 am
by tmcdonald
dino wrote:check_http -J CONNECT same.
Did you use an upper-case J or a lower-case j? You will need to use lower-case, as well as specifying the -p option.

Re: Enquiry on error

Posted: Tue Oct 28, 2014 7:30 pm
by dino
Hi

Im asking if the check_http supports proxy with authentication. If not is there any plugins i can use to monitor website response time until the page loads successfully with the requirements ( Monitor website response via https with proxy authentication.)

Thanks.

Re: Enquiry on error

Posted: Wed Oct 29, 2014 1:38 pm
by sreinhardt
Again, provided you used both the -j CONNECT and -i [ip of proxy] flags, it should have caused it to hit the proxy then redirect to your page. However there is a patch that I have to review that modifies this code, so it may not be implemented completely at the moment. If you are finding that it is not meeting your needs, than trying the check-website plugin you linked looks like another good option.