SMS messages appear with strange characters - CheckMK 2.3.0p23

2.3.0p23

When a SMS was sent by CheckMK this SMS arrives with strange Symbols on my German Smartphone .
Under checkMK 2.2 i dont have this Problem .


SMS1

Good Morning ,

Does anyone have any idea what this could be ?

Thanks
Michael

Hello Michael!

It is possible that the way you send the messages – the provider of the SMS gateway – affects the encoding.
Could you please share how you send the SMS?

Hi Sara ,

Here are our SMS Settings in CheckMK .

This is not a CheckMK included notification plugin.
The included SMS API plugin looks like this.


In your case the code of the plugin would be relevant.
It is possible that there inside is a small bug.

1 Like

The plug-ins bundled with Checkmk only cover Smstools and Modem API (as @andreas-doehler) correctly stated.

This looks like a 3rd party add-on. However, the problem seems to be a UTF-8 character on the 160 byte boundary that gets cut in two and thus leads to a fully garbled second SMS. I suggest first reaching out to Telekom Austria and ask them about their UTF-8 handling. In case they know about the problem, but are not planning to fix, the script has to be checked, either to remove UTF-8 characters or to pad to make sure no UTF-8 character gets cut.

1 Like

Hello Andreas , that dont work for us . Maybe the reason is that the SMS Service from the Austrian A1 Pro SMS dont workwith this Protokoll . Therfore we use smsapi with own Config from our CheckMK Service Provider.

The point is that on the Website from A1 Pro SMS i see that the SMS comes from CheckMK shown in the right Format. On my Austrian Mobile Phone the SMS arrives in the right Format on the Phone. I test different German Mobile Phones , and different german Providers , but with no success.

Can you read out URL and keys from the plugin and its config? And then craft an SMS that is 85 two-byte UTF-8 characters (those that cannot be converted to ISO-8859-x, like pile of sh*t). Send it then craft another SMS with one normal space followed by 85 two-byte UTF-8 characters. If one of them arrives garbled, the problem is with Telekom Austrias slicing algo. A quick fix might sure to prepare additional one-byte characters at the right placess within the notification plugin.

Good Morning and sorry for the Delay .

At least our service provider solve the Problem .
They configure the smsapi Plugin so that now the character set is the right one.
They use the document from the SMS Provider to find out what they have to configure.

Michael

2 Likes