check_http plugin times out with urls using self-signed certs

Traiano Welcome Traiano.Welcome at mtnbusiness.co.za
Wed Jul 6 14:40:38 CEST 2011


Hi List


I use the standard check_http plugin to check  a number of websites, testing for a string returned by a cgi script hosted on the site. Similar to the following example:

---
 /usr/local/libexec/nagios/check_http -I 196.666.666.666 -a x:y -u http://monkey.donkey.net/cgi-bin/nagios.cgi -s Operational
---

One of these sites uses as self-signed cert, which causes check_http to timeout. I assume this behavour is identical to what happens when you browse to such a url using a browser, i.e you get a prompt saying something like:

---
SSL error:self signed certificate-Continue? (y) 
---

At which point the check_http plugin would wait for timeout, not being able to answer with a "y". Is there any way I can get the plugin to somehow bypass this (maybe passing a "y" in response to the prompt), or some way of importing the self-signed cert so the prompt does not appear in the first place? We're stuck with the self signed cert for some time until we can get a 'proper' one.

Thanks in Advance,
Traiano Welcome
------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list