Certificate Management
Certificate Management
Is anyone using Nagios to check digital certificate expirations on servers that are monitored? I have a Powershell script to check for certificates that are expiring within a certain time frame. We have approximately 25 servers that we monitor. Can Nagios run the script and show status? Thanks
Re: Certificate Management
Yup -- via check_http.jharr wrote:Is anyone using Nagios to check digital certificate expirations on servers that are monitored?
check_tcp can do this too:CHECK CERTIFICATE: check_http -H www.verisign.com -C 14
When the certificate of 'www.verisign.com' is valid for more than 14 days,
a STATE_OK is returned. When the certificate is still valid, but for less than
14 days, a STATE_WARNING is returned. A STATE_CRITICAL will be returned when
the certificate is expired.
-D, --certificate=INTEGER[,INTEGER]
Minimum number of days a certificate has to be valid.
1st is #days for warning, 2nd is critical (if not specified - 0).
Former Nagios employee
https://www.mcapra.com/
https://www.mcapra.com/
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Certificate Management
Thanks @mcapra!