Check_Http

Ian Rarity Ian.Rarity at espc.com
Thu Mar 2 16:50:27 CET 2017


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.rarity at espc.com<mailto:ian.rarity at espc.com>
http://www.espc.com<http://www.espc.com/>
==================

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

Bump please!

From: Charles Breite
Sent: Wednesday, February 01, 2017 2:09 PM
To: help at monitoring-plugins.org<mailto:help at 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 at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/help/attachments/20170302/79043018/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 10474 bytes
Desc: image001.jpg
URL: <https://www.monitoring-plugins.org/archive/help/attachments/20170302/79043018/attachment-0001.jpg>


More information about the Help mailing list