Plugin sending 1 message instead of 2

CMK version:2.1.0p2

Error message:

2022-06-09 09:54:50,860 [20] [cmk.base.notify] ----------------------------------------------------------------------
2022-06-09 09:54:50,860 [20] [cmk.base.notify] Got raw notification (**(hostname)**;***(service)***) context with 73 variables
2022-06-09 09:54:50,863 [20] [cmk.base.notify] Global rule 'rc_debug'...
2022-06-09 09:54:50,863 [20] [cmk.base.notify]  -> matches!
2022-06-09 09:54:50,863 [20] [cmk.base.notify]    - adding notification of automation via rocket_chat.py
2022-06-09 09:54:50,864 [20] [cmk.base.notify] Global rule 'rc_debug2'...
2022-06-09 09:54:50,864 [20] [cmk.base.notify]  -> matches!
2022-06-09 09:54:50,864 [20] [cmk.base.notify]    - modifying notification of automation via rocket_chat.py
[...]
2022-06-09 09:54:50,864 [20] [cmk.base.notify] Executing 1 notifications:
2022-06-09 09:54:50,864 [20] [cmk.base.notify]   * notifying automation via rocket_chat.py, parameters: rocketchat_webhook_url, url_prefix, bulk: no
2022-06-09 09:54:50,864 [20] [cmk.base.notify] Creating spoolfile: /omd/sites/cmk/var/check_mk/notify/spool/9811639f-d3e4-46be-b321-98c6d823a787

rc_debug and rc_debug2 are configured to send to 2 different RocketChat Channels. The Notification should appear in both. Instead of adding a new notification, CheckMK modifys it. How can I fix this?

If I’m not incorrect, checkmk only sends 1 notification per User & notification plugin, which leads to confusion with plugins that send to a URL.
To see if this is the reason, simply add another user to “rc_debug2” as an explicit contact

so adding another contact works, but then it sends the notification twice in the same channel

I got it working by setting a different user in one of the rules. I don’t know why it works now because I thought I would need the automation user to call a webhook, but it works. Thanks @gstolz

1 Like

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact an admin if you think this should be re-opened.