I’m writing Check_MK deployment automation for my company as we deploy for each client platform standalone Check_MK. I’ve almost everything written and working, however I can’t find a way of Signing Monitoring Agent via created key apart from GUI.
Can somebody tell me if there is any way of signing them after they’re baked from command line.
This is not directly true, at least based on the version your using.
It’s a little bit complicated, but possible. At least at <=1.5.0.
The url you need to “call” looks similiar to this:
The key_id needed to be look up once for each key at your site.
First pic the key you want to use for signing:
Then you need to examine the properties of the html-site and need to look for “key_p_key”.
If you have all information, then you can call the url above with the values and auto-sign your agents.
As soon as you change your signing-key, you need to look again for the changed key_id.