This is not possible as it is the normal output of the check plugins.
If you want to shorten this you have to modify all the check plugins important for your SMS notification.
Why has your SMS only 80 characters? Here you can have a minimum of 160 characters plus the possibility of concatenated messages up to over 1k characters.
If this is needed the notification plugin should shorten your message.
The SMS notification plugin shortens the message to 160 characters. You can modify this script and insert your 80 character limit instead of the default 160. The variable is “max_len”.
Copy this plugin to your “~/local/share/check_mk/notifications” and do the modification.
That’s exactly what I was about to write, @andreas-doehler. The script’s full name is ~/share/check_mk/notifications/sms.
I’m not sure if this is neccessary, but in the copy below ~/local/... I suggest changing the 2nd line from
#!/usr/bin/env python
# SMS (using smstools)
to
#!/usr/bin/env python
# 80 character SMS (using smstools)
(or something similar) to be able to distinguish it from the original script in the GUI.
From the screenshot you posted it isn’t exactly clear to me who actually sends the SMS. But if it is some Java program, then I’m confident that Java also has some kind of substring function.
Then you have to pick those characters that you consider important and cut off the rest. The first 30 was just an example.
In your example you mark Size: 19.8 GB, 92.04% used as important, but the check isn’t WARN because of the 92.04% but rather because only 1.58 GB are left.
How would checkmk know that? I’m afraid you have to modify your SMS sending tool to only consider what you think is relevant.