ansible-role-check-mk-agent icon indicating copy to clipboard operation
ansible-role-check-mk-agent copied to clipboard

Host is not added to Check_MK Instance

Open jpylypiw opened this issue 3 years ago • 5 comments

Hi there! I use this role a lot in our ansible production environment. Thank you for developing and keeping it updated! Recently I noticed, that new host are not added since the upgrade to Check_MK Raw 2.0. In 2.0 they changed the error messages from Check_MK to Checkmk. My solution in this PR may be too easy. It would be better to compare the end of the String "No such host". Maybe you can implement this and close the PR.

jpylypiw avatar Jun 22 '21 15:06 jpylypiw

Can confirm this patch fixes 2.0

visbits avatar Jul 07 '21 17:07 visbits

@elnappo can we get a merge plzzz!!

visbits avatar Jul 07 '21 17:07 visbits

Tested on a checkmk instance just upgraded to 2.0.0 (patch 7) and I can confirm the patch works. To make it future proof, maybe we need to switch using REST-API, as Web-API are now considered deprecated and will be removed in a next major release (link to docs)

pandvan avatar Jul 14 '21 14:07 pandvan

Hi, I was ready to do the same Pull Request, I can confirm also that it resolved the issue. Not sure why they change this string but it matters for us. Thank you for the great work.

ramuskay avatar Jul 23 '21 12:07 ramuskay

Not sure why they change this string.

The official name is now Checkmk instead of the former Check_MK The rebrand started with version 2.0.0

pandvan avatar Jul 23 '21 12:07 pandvan