kuhn-ruess / cmdbsyncer

Rule Based Syncronisation System with Checkmk and Ansible Support
MIT License
41 stars 9 forks source link

Cronjob: Checkmk activate changes #26

Closed PhXcell closed 1 year ago

PhXcell commented 1 year ago

It seems that the "Activate Changes" Cronjob is missing If-Match header.

DEBUG - Request (POST) to https://cmk-dev/site01/check_mk/api/1.0//domain-types/activation_run/actions/activate-changes/invoke
DEBUG - Request Body: {'redirect': False, 'force_foreign_changes': True}
DEBUG - Response Json {'title': 'Precondition required', 'status': 428, 'detail': 'If-Match header required for this operation. See documentation.'}
Precondition required If-Match header required for this operation. See documentation.

I think it is due to this change: https://checkmk.com/werk/15884

Bastian-Kuhn commented 1 year ago

Thank you for reporting, is fixed.