Monitor base 64 certificate format expiry

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
raydha
Posts: 13
Joined: Thu Mar 03, 2016 12:16 am

Monitor base 64 certificate format expiry

Post by raydha »

Hi,

Has anyone try to monitor / have script to monitor base64 certificate ?
normally in .cer or .crt format.
I would like to monitor the certificate expiry date.

note: it is not SSL certificate. It is a end user certificate.

regards,
User avatar
nozlaf
Posts: 172
Joined: Sun Nov 09, 2014 9:50 pm
Location: Victoria, Australia

Re: Monitor base 64 certificate format expiry

Post by nozlaf »

If you look at this plugin

https://exchange.nagios.org/directory/P ... te/details

then read the comments

someone has extended the script to read files

https://subversion.ceres.auckland.ac.nz ... ertificate

I have not tested it
but should work for you
Looking forward to seeing you all at #NagiosCon2019?
-Dedicated Lover of Nconf,PNP4Nagios and Nagvis
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Monitor base 64 certificate format expiry

Post by rkennedy »

Thanks @nozlaf!

Let us know if that helps.

Alternatively, here's the link to our exchange which has a few more results returned for 'client cert' -
https://exchange.nagios.org/index.php?o ... ent%20cert
Former Nagios Employee
raydha
Posts: 13
Joined: Thu Mar 03, 2016 12:16 am

Re: Monitor base 64 certificate format expiry

Post by raydha »

rkennedy wrote:Thanks @nozlaf!

Let us know if that helps.

Alternatively, here's the link to our exchange which has a few more results returned for 'client cert' -
https://exchange.nagios.org/index.php?o ... ent%20cert
thanks nozlaf & rkennedy. i failed to get the revised version made by Mr. vladimir.mencl.

this is the link to grab the revised plugin "You are welcome to grab my version from https://subversion.ceres.auckland.ac.nz ... ertificate"

however, i did try one of the script shared https://gallery.technet.microsoft.com/s ... iscussions but still in configuration mode. may require assistance from creator.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Monitor base 64 certificate format expiry

Post by hsmith »

Let us know what you come up with.
Former Nagios Employee.
me.
raydha
Posts: 13
Joined: Thu Mar 03, 2016 12:16 am

Re: Monitor base 64 certificate format expiry

Post by raydha »

i am stuck. the status show "CHECK_NRPE : Error - Could not complete SSH handshake."
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Monitor base 64 certificate format expiry

Post by rkennedy »

Can you show us the full command your inputting to receive that?
Former Nagios Employee
Locked