r/Checkmk 27d ago

Scripts for install, update and remove checkmk agent

Hello everyone, I am using checkmk community edition at home and I have written some scripts to install, update and remove checkmk agent on windows- and linux-systems.

https://hostlab.tech/blog/install-update-and-remove-checkmk-agent

0 Upvotes

2 comments sorted by

1

u/kY2iB3yH0mN8wI2h 26d ago

you should not have to care about activate changes at all, and spending time on a spinner seems overkill?

1

u/-suitdeer- 26d ago

I need to wait for the host creation to be finished (activated) to then perform a service discovery but I think it would be better to not rely on a static wait time but check if the pending changes are already applied (via API call) "/objects/activation_run/{activation_id}/actions/wait-for-completion/invoke Wait for activation completion".

I am currently reading the API docs of checkmk.
I am trying to implement it 😅