Page 1 of 1

check ssl expire

Posted: Wed Jan 09, 2019 10:09 am
by stauftm
Hi everyone. I have Nagios XI, and I'm monitoring a few websites and in particular we are monitoring the expire date of the ssl certificate. The catch is the server we are monitoring is a single server with multiple websites. So for instance when I run my website monitor wizard and use https://website1.com or https://website2.com they both go to the same webserver/IP but they each have their own ssl cert. The problem is when I run the website monitor wizard the SSL Cert expire service will bounce back only with website1.com ssl for both websites. Everything else is appropriate, DNS Match, DNS Resolution, HTTP, etc. So when I go into my service status of each website1.com and website2.com in the SSL Certificate it has status information of only website1.com for both.

I've also added an attachment.

Great product! I am really finding it useful!

Todd

Re: check ssl expire

Posted: Wed Jan 09, 2019 1:02 pm
by cdienger
Edit the check and for $ARG1$ you'll likely see something like:

30 -p 443

tack on the sni option:

30 -p 443 --sni

This will add the site name to the request so the site can respond with the proper cert.

Re: check ssl expire

Posted: Wed Jan 09, 2019 1:41 pm
by stauftm
Worked like a charm! Thank you!!!

Re: check ssl expire

Posted: Wed Jan 09, 2019 3:28 pm
by cdienger
Glad to hear!