check_http -H 192.x.x.x -u www.blah.com -C 30,14

That'll get you "OK" if the cert's valid for more than 30 days; if it's valid 
for between 30 days and 14 days, you'll get "WARNING", and CRITICAL if the 
certificate expires in less than 14 days.

Cheers,
Ian.

==================
Ian Rarity
IT Services Engineer
ESPC (UK) Ltd.
ian.rar...@espc.com<mailto:ian.rar...@espc.com>
http://www.espc.com<http://www.espc.com/>
==================

From: Help [mailto:help-bounces+ian.rarity=espc....@monitoring-plugins.org] On 
Behalf Of Charles Breite
Sent: 28 February 2017 16:30
To: help@monitoring-plugins.org
Cc: Chad Leggett <chad.legg...@altertrading.com>
Subject: RE: Check_Http

Bump please!

From: Charles Breite
Sent: Wednesday, February 01, 2017 2:09 PM
To: help@monitoring-plugins.org<mailto:help@monitoring-plugins.org>
Subject: Check_Http

Trying to configure a check for our SSL certs in Nagios.
Our issue is we have several vhost directories and url's being served from the 
server.
Can you give me an example of how we can check that the ssl cert is valid for 
say for 14 days and critical at 7.
i.e. server ip is 192.x.x.x and url is https://blah.com
Were probably over thinking this we just want to be able to monitor multiple 
urls on the same server and warn 14 days before expiring.
Thanks
 Charles


[cid:image001.jpg@01D2936C.1E7E9950]


[https://espc.com/media/emailsig/finalistLogo1.jpg]     
[http://assets.espc.com/Nominee%20Logo%202017.jpg]

Private and Confidential: This e-mail transmission is strictly confidential and 
intended solely for the addressee. It may contain privileged and confidential 
information and if you are not the intended recipient, you must not copy, 
disclose, distribute or take any action in reliance on it. If you have received 
this e-mail in error, please delete it and notify our E-mail Systems 
Administrator on +44 (0) 131 624 8000. ESPC (UK) Ltd does not accept any 
liability for any harm that may be caused to the recipient's system or data by 
this message or any attachment.
ESPC (UK) Ltd is a company registered under the Companies Acts in Scotland 
(Registered Number SC203585), and having its registered office at 90A George 
Street, Edinburgh, Midlothian EH2 3DF.
ESPC (UK) Ltd is an Appointed Representative of Lyncombe Consultants Ltd which 
is authorised and regulated by the Financial Conduct Authority.

Reply via email to