Strange issue with check_http -C for SSL certs

Morris, Patrick patrick.morris at hp.com
Thu Sep 17 01:35:55 CEST 2009


On Wed, 16 Sep 2009, william pink wrote:

> Hi,
> 
> First email to the list been a Nagios user for some time now and have never had any really trouble with it until today, I am using the check_http plugin to check for SSL certificate expiry. I can check the plug in manually and it results back in the correct expiry time but if I configure it in Nagios it returns a totally different date here is the configuration
> 
> command defined
> 
> # Check SSL cert expiry
> define command{
>         command_name    check_cert_expiry
>         command_line    $USER1$/check_http -H $HOSTADDRESS$ --ssl -C 14
>         }
> 
> service defined
> 
> define service{
>         use                                    service         ; Name of service template to use
>         hostgroup_name                 linux-sites
>         service_description             Checks SSL Cert
>         contact_groups                  critical
>         check_command                check_cert_expiry
>         }
> 
> 
> The hostgroup linux-sites is a collection of the URL's I manage, I am really not sure where to start with this one?

Without seeing any examples of how your hosts are configured it's hard
to say for sure, but it sounds like the "address" parameter in your
hosts' configs is not set to the same address(es) that you're checking 
on the command line.

Got a host definition you can show us?

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
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