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.
Enquiry on error
Re: Enquiry on error
Can you post the command definition for check_http_proxy?
Former Nagios employee
Re: Enquiry on error
$USER1$/check_http_proxy --proxy $ARG1$ --auth $ARG2$ --url $ARG3$ --timeout $ARG4$ --warntime $ARG5$ --expect $ARG6$
Re: Enquiry on error
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
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: Enquiry on error
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
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
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Re: Enquiry on error
http://exchange.nagios.org/directory/Pl ... te/details - does not support proxy with authentication.
check_http -J CONNECT same.
check_http -J CONNECT same.
Re: Enquiry on error
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.dino wrote:check_http -J CONNECT same.
Former Nagios employee
Re: Enquiry on error
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.
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.
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: Enquiry on error
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.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.