SSL-Certificates plug-in from CheckMK Exchange

Hello community,

I want to to monitor the life cycle of my SSL-Certificates as most of you and for that reason I downloaded the SSL-Certificates plug-in from CheckMK Exchange. (SSL-Certificates - Checkmk Exchange)

I then uploaded the file on my enterprise edition via the GUI and activated it as well.
I also created a ‘‘Parameters for SSL certificates’’ rule and defined the desirable values.

Lastly I copied the sslcertificates.ps1 script under C:\ProgramData\checkmk\agent\plugins on a host.

After initiating a service discovery I was able to find and monitor the desired certificates.

But I have a few hundred hosts and copying/pasting the script in each one of them will take long and is not scalable. I’m sure there is a way to automate the process and here is where I need your help.

Would the agent bakery help me achieve that result? Since I have the enterprise edition and I have already uploaded and activated the SSL-Certificates plug-in from CheckMK Exchange, would baking the agents achieve the result I want and described above?

If yes, can I choose to bake some agents and leave some others with different scope unbaked?

Thanks in advance for any help/tips/guidance!

The bakery is just what you’re looking for:

in that rule, you can then use the same conditions as in any other rule to decide which of your hosts get the plugin via the bakery and which don’t

2 Likes

Thank you Gerd!

The rule you mentioned is now in place. Now, when I got under Setup > Agents, I cal also see the following:
deploy SSL

Running a service discovery still doesn’t find any certificates to monitor though.

I suppose I need to wait out the ‘‘interval for update check’’ for the agents to pull (enterprise edition) the plug-in from the central bakery, correct?

Do you know if there is a way to force the check or do I need to wait out the interval for update check?

In any case, I will write again with more updates and let you know if it worked. If so I’ll mark it as ‘‘resolved’’.

1 Like

The bakery basically creates tailored agent packages. You can either deploy them manually or configure the agent updater to automatically update agent packages when changed packages (version updates, changes to plug-ins…) are available.

Please also read the Official User Guide on this topic:

1 Like

The solution from Gerd worked. If you have the same issue as I had, keep in mind that after creating the rule, you will have to sign the agents again.

Mattias thank you too for sharing the link regarding automatic agent updates. I will definitely look into it.

1 Like