check ssl expire

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
stauftm
Posts: 8
Joined: Wed Dec 05, 2018 1:47 pm

check ssl expire

Post 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
You do not have the required permissions to view the files attached to this post.
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: check ssl expire

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
stauftm
Posts: 8
Joined: Wed Dec 05, 2018 1:47 pm

Re: check ssl expire

Post by stauftm »

Worked like a charm! Thank you!!!
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: check ssl expire

Post by cdienger »

Glad to hear!
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked