CMK version: 2.3.0p18 OS version: Debian GNU/Linux 12 Bookworm
**Error message:
{“error”:{“code”:“InvalidRequestContent”,“message”:“The input body for trigger ‘manual’ of type ‘Request’ must be of type JSON, but was of type ‘application/octet-stream’.”}}
Hi guys,
I really tried many thing, still I cannot figure it out, what the problem is.
I switched, as intended, to Workflows (Ms-Teams Plugin) in order to get the notifications on Teams.
The Messages aren’t leaving the Checkmk! in Monitor–>Failed Notifications I can see them “trying” to get out to reach MS-Teams, but there is an error:
{“error”:{“code”:“InvalidRequestContent”,“message”:“The input body for trigger ‘manual’ of type ‘Request’ must be of type JSON, but was of type ‘application/octet-stream’.”}}
natürlich habe ich mir den auch angeschaut. Meinst du aber nicht, dass es z.Z. nur mit der Version 2.3.0p11 funktionieren soll, oder?! Ansonsten habe ich alles so umgestellt, wie beschrieben…
Ich schaue mir demnächst den KB article an. Mal sehen, ob es damit klappt.
Danke
##english
Hi Robin,
of course, I’ve looked at that too. Do you mean it’s supposed to work only with version 2.3.0.p11 at the moment? Otherwiese, I’ve set everything up as described.
I’ll take a look at the KB article. Let’s see if that works.
I did not look into this in-depth, I just recognized the topic. As we have plenty of reports where our updated notification plugin work fine (well, as fine as Microsoft will let it), I doubt it is a general issue.
Have you checked for files in $OMD_ROOT/local/, which might be overriding or affecting the built-in plugin?
The new Error I get in “Failed Notifications” on CheckMk is:
{“error”:{“code”:“WorkflowTriggerIsNotEnabled”,“message”:“Could not execute workflow ‘2794748f-f9e2-4c51-bb11-0a7b4e3383cc’ trigger ‘manual’ with state ‘Deleted’: trigger is not enabled.”}}
The Workflow is of course activ.
PS: per “curl” works the sending of POST perfectly, directly from the server.
That is the name of the custom extension package. This is not supported Checkmk sofware, but a third-party extension, for which only the respective maintainer can provide support.
on the https://exchange.checkmk.com/ Website, if I search for “Microsoft Teams” I get two results. I assume, these are not the official supported Plugins.
Where do I get/download the checkmk-Supported msteams plugin?
Things supported by Checkmk are built-in. And built-in functionality is - as the name suggests - already build into Checkmk, so no need to install anything. Just delete the MKP and use “Microsoft Teams” in the notification rule.
Surprinsingly, there is still not an Update regarding this issue comming from Checkmk Programmer-Team.
Yes, I got a workaround fix for this. You should act with care due to the fact that, by doing this, you can break something in the process.
Simply explained: you have to look on the server directly for the “PARAMETER_WEBHOOK_URL” (check the comment section in the failed notifications tab, it should be utils.py) and modify this to match exactly the Webhook URL.