This question is two-fold, with the other half perhaps more relevant on the NSClient forums.
We use certificates with Nagios/NRPE/NSClient for a number of our systems (>150 or so) and I have records of when the certs were put into service on most of those. I was looking for a check like check_http where I could point it to the port and check the expiration date on the ones we've converted to use certs but I've had no luck.
It looks like the best option I'll have is to check the file itself versus connecting directly to 5666 on the linux machines. I haven't looked at the NSClient side but that may be the option there as well, something with a powershell check.
NRPE Client Certificate Checks
Re: NRPE Client Certificate Checks
check_ssl_cert may be able to do what you need - https://exchange.nagios.org/directory/P ... rt/details. I haven't been able to fully test it and get it to work but it looks promising in that it creates a Client Hello request and then expects the client to respond with a certificate.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
-
MBowman325
- Posts: 14
- Joined: Fri Aug 09, 2013 3:31 pm
Re: NRPE Client Certificate Checks
I had looked at that a while back. It works better when you taken into account allowed hosts..
That does what I need it to do, thank you for pointing that back out!
That does what I need it to do, thank you for pointing that back out!
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: NRPE Client Certificate Checks
Great!MBowman325 wrote:I had looked at that a while back. It works better when you taken into account allowed hosts..
That does what I need it to do, thank you for pointing that back out!
Locking thread