CMK2.0 - Opsgenie - ModuleNotFoundError

After upgrading to v 2.0 we’ve several failed notifications in checkmk.

Attached is the “Comment”:

Traceback (most recent call last): – File “/omd/sites//share/check_mk/notifications/opsgenie_issues”, line 11, in – from cmk.notification_plugins import opsgenie_issues – File “/omd/sites//lib/python3/cmk/notification_plugins/opsgenie_issues.py”, line 11, in – from opsgenie.swagger_client import AlertApi # type: ignore[import] # pylint: disable=import-error – ModuleNotFoundError: No module named ‘opsgenie’

This is a long shot but this might be happening because the notification script is still Python 2.

Have you checked that?

Hi!
the plugin uses python3 and also the new imports.

The modules in Python3 have complete different namens.
I only found the AlertApi under

from opsgenie_sdk.api.alert import AlertApi

I cannot check if it is working with this import then :wink:

Thanks for reporting. We will have a look. I let you know if there is an update on this issue.

1 Like

I have the same issue after upgrade from 1.6.0p20.cee to 2.0.0p1.cee.
I recreated the notif setting just in case and still have the same issue + the clear failed notification doesnt work.

@justanothercompany : the clear failed is working for you ?

1 Like

The Opsgenie notification plugin will be fixed with Werk #12612

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