Werk #7068: Truncate values of the notification context which are too long

Component Notifications
Title Truncate values of the notification context which are too long
Date Mar 21, 2019
Checkmk Edition Checkmk Raw (CRE)
Checkmk Version 1.5.0p14 1.6.0b1
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed

If the the value stored in the notification context was larger than the OS limit MAX_ARG_STRLEN a failed notification was produced and the error 'OSError: [Errno 7] Argument list too long' appeared in the notify.log. This was usually the case for very long values in the long outputs of a service like e.g. fileinfo.groups. Now the values are truncated and the text 'Attention: Removed remaining content because it was too long.' is shown at the end.

To the list of all Werks