TECHZEN Zenoss User Community ARCHIVE  

How do you properly setup HttpMonitor for HTTPS connections

Subject: How do you properly setup HttpMonitor for HTTPS connections
Author: [Not Specified]
Posted: 2014-04-03 09:05

I am trying to set up a monitoring instance to check my web interface (just login and complete the page build). My site is HTTPS proxied by an F5. Embedded credentials is not supported (or desired). Inside the proxy the calls are not encrypted.

I have configurations that monitor the web interface from the local server (e.g. device has a local HttpMonitor template configured to query http://:. This configuration is working correctly.

For the HTTPS configuration I used the the same values I used for the configuration above except I checked the "Use SSL" box, changed "Port:" field to 443, and changed the "URL:" field to the internet resolvable value (validated that this system can resolve it).

Am I missing something



Subject: additional details
Author: [Not Specified]
Posted: 2014-04-03 09:09

This configuration generates a "connection refused" event.



Subject: Compare to this screenshot:
Author: [Not Specified]
Posted: 2014-04-03 09:13

Compare to this screenshot: http://hydruid-blog.com/attachment_id=864

Those settings are working for me!

Hydruid



Subject: screen shot compare
Author: [Not Specified]
Posted: 2014-04-03 09:15

Hydruid, thanks for the response. How are you authenticating with no username/password to an SSL connection



Subject: My SSL connection doesn't
Author: [Not Specified]
Posted: 2014-04-03 11:25

My SSL connection doesn't require authenication, I'm simply monitoring to confirm that the login URL is up

Hydruid



Subject: Anyone know how to troubleshoot this?
Author: [Not Specified]
Posted: 2014-04-03 14:11

Is there a way to command line test the data sets
Anyone know what the python script is actually doing
Or expecting as to how the HTTPS authentication should be presented



Subject: You can look at this file to
Author: [Not Specified]
Posted: 2014-04-04 08:57

You can look at this file to get an idea of what it's doing: $ZENHOME/ZenPacks/ZenPacks.zenoss.HttpMonitor-2.1.0-py2.7.egg/ZenPacks/zenoss/HttpMonitor/datasources/HttpMonitorDataSource.py

You mentioned in your original post that embedded credentials were blocked. What are you trying to login to and what kind of login is it Proxy Basic HTTP Auth

Hydruid



Subject: additional details
Author: [Not Specified]
Posted: 2014-04-04 09:41

I have an F5 in front of the servers providing proxy and load balancing.



Subject: Okay that doesn't answer my
Author: [Not Specified]
Posted: 2014-04-04 10:10

Okay that doesn't answer my question, and I'm not sure if you're wanting to just know how the python code works or if you are having issues with HTTPS Authentication (username/password)

Hydruid



Subject: Event returned
Author: [Not Specified]
Posted: 2014-04-06 09:03

I get connection refused when I configure what I believe is the correct configuration. I can use the same credentials from IE to the site, login at the prompt and get to the main landing page. This activity is what I want to measure. My question is how do I troubleshoot why I am getting connection refused An explanation of how the python could works would be great, otherwise are there command line functions that allow me to test the code or provide more explicit response back to help me solve this issue



Subject: Dunno if this helps, but the
Author: [Not Specified]
Posted: 2014-04-07 05:41

Dunno if this helps, but the Nagios check_http script that we use has a -f follow flag.

See this thread http://zenoss.org/forum/786

This can easily be run on the cmdline just as it's written in the thread. Don't know about autentication though.

Good luck!



< Previous
Localized zWinUser/zWinPassword