Hello everyone, I am trying the following. I have an OpenVPN server for which I have issued several client certificates with different expiration dates. I have a script on the server which is executed daily and reads all expiration dates of the clients, in the following syntax:
[client name]
[expiration date]
[days until expiration]
[client name]
[expiration date]
[days until expiry]
…
I would like to insert a check which issues a warning as soon as the certificate is valid for less than 14 days, for example. What would be the procedure for this? The text file can be accessed via a web server or directly via the server itself.
The certificates are included in “.ovpn” files, my script only reads these with awk and makes a query via openssl. I could store them as certificates this way, but if reading from the file is possible, that would be better for me.
As long as there is a -----BEGIN CERTIFICATE----- within the file the SSL-Certificates agent plugin should be able to read it.
If that does not work you can adapt it to your needs.
Sorry, Im still having a bit of a hard time with checkmk. I have installed and activated the .mkp file on the checkMK server via the CLI. My understanding is that there should be a plugin somewhere that I can download? But I cant find anything, or is this a fundamental misunderstanding?
Another solution would be to modify your script or create a wrapper script and add this to the local folder of the CheckMK Agent. Have a look into this document: Lokale Checks
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact an admin if you think this should be re-opened.