WebEx notification error: ConnectionResetError

CMK version:
Checkmk Raw Edition 2.1.0p10

OS version:
CentOS Linux release 7.6.1810 / RedHat

Error message:
requests.exceptions.ConnectionError: (‘Connection aborted.’, ConnectionResetError(104, ‘Connection reset by peer’))

2023-04-26 11:23:31,690 [20] [cmk.base.notify]      Output: Traceback (most recent call last):
2023-04-26 11:23:31,691 [20] [cmk.base.notify]      Output:   File "/omd/sites/site/share/check_mk/notifications/cisco_webex_teams", line 13, in <module>
2023-04-26 11:23:31,691 [20] [cmk.base.notify]      Output:     response = post_request(cisco_webex_teams_msg)
2023-04-26 11:23:31,691 [20] [cmk.base.notify]      Output:   File "/omd/sites/site/lib/python3/cmk/notification_plugins/utils.py", line 323, in post_request
2023-04-26 11:23:31,691 [20] [cmk.base.notify]      Output:     response = requests.post(
2023-04-26 11:23:31,691 [20] [cmk.base.notify]      Output:   File "/omd/sites/site/lib/python3.9/site-packages/requests/api.py", line 117, in post
2023-04-26 11:23:31,691 [20] [cmk.base.notify]      Output:     return request('post', url, data=data, json=json, **kwargs)
2023-04-26 11:23:31,691 [20] [cmk.base.notify]      Output:   File "/omd/sites/site/lib/python3.9/site-packages/requests/api.py", line 61, in request
2023-04-26 11:23:31,691 [20] [cmk.base.notify]      Output:     return session.request(method=method, url=url, **kwargs)
2023-04-26 11:23:31,691 [20] [cmk.base.notify]      Output:   File "/omd/sites/site/lib/python3.9/site-packages/requests/sessions.py", line 529, in request
2023-04-26 11:23:31,692 [20] [cmk.base.notify]      Output:     resp = self.send(prep, **send_kwargs)
2023-04-26 11:23:31,692 [20] [cmk.base.notify]      Output:   File "/omd/sites/site/lib/python3.9/site-packages/requests/sessions.py", line 645, in send
2023-04-26 11:23:31,692 [20] [cmk.base.notify]      Output:     r = adapter.send(request, **kwargs)
2023-04-26 11:23:31,692 [20] [cmk.base.notify]      Output:   File "/omd/sites/site/lib/python3.9/site-packages/requests/adapters.py", line 501, in send
2023-04-26 11:23:31,692 [20] [cmk.base.notify]      Output:     raise ConnectionError(err, request=request)
2023-04-26 11:23:31,692 [20] [cmk.base.notify]      Output: requests.exceptions.ConnectionError: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
2023-04-26 11:23:31,726 [20] [cmk.base.notify]      Plugin exited with code 1

Hi everyone,
I tried to setup the notifications for Cisco WebEx, but after creating the webhook and notification rule, I receive some errors. Also I got some mail notifications configured, which are working fine.
Could you guys help me please with this error message related to the plugin “cisco_webex_teams”.

Thanks in advance
Regards
Haegar

Hi Haegar,

is your checkmk host allowed to connect to the webex API to call the webhook on their site?
Connection reset by peer could just be your company firewall preventing you from making external connections.

You could check the reachability of the webhook url/host with nmap or ~/lib/nagios/plugins/check_http

Gerd

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.