Skip to content

Fixed a bug in signl4 notification plugin that would crash the script if there are non-ascii characters in the service description - #950

Open
lbuhleie wants to merge 1 commit into
Checkmk:masterfrom
svalabs:bugfix/singl4_notifications
Open

Fixed a bug in signl4 notification plugin that would crash the script if there are non-ascii characters in the service description#950
lbuhleie wants to merge 1 commit into
Checkmk:masterfrom
svalabs:bugfix/singl4_notifications

Conversation

@lbuhleie

Copy link
Copy Markdown
Contributor

General information

This fixes a small bug in the signl4 notification plugin, being caused by non-ascii characters in the service description of alerts.

Bugreport

When a service alert triggers the signl4 notification plugin and this service contains non-ascii characters (e.g. umlauts), the notification plugin would crash.

Proposed changes

I fixed this by defining the behaviour on errors within the encode function to replace those non-ascii characters with a "?". So now instead of crashing the service description will be slightly altered.
Example:
A service like "Log C:\temp\Domänen-Admins.log)" will now report via signl4 with the service description "Log C:\temp\Dom?nen-Admins.log".

… if there are non-ascii characters in the service description
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants