Licenses: Updated the list of licenses and added a PDF containing all license texts
[check_mk.git] / .werks / 304
blob75b8263e949f020eaf91b9e9ea389e1e3a66abd4
1 Title: Escaping several unwanted chars from incoming log messages
2 Level: 1
3 Component: ec
4 Version: 1.2.5i1
5 Date: 1386579742
6 Class: fix
8 There are several kind of chars which are not wanted to be included
9 in log messages. For example the null byte is nothing to be expected
10 in log messages. We simply remove those chars now from the log messages.
12 Single log lines do not contain new line chars (\n), since they are 
13 already processed as single lines. But snmp traps might contain those
14 chars, which might break e.g. processing the log history (resulting
15 in error messages "Invalid line XX in history file..."). The newline
16 chars are now simply removed from the incoming data.
17 This might change incoming values, but this seems to be better than 
18 before. In future, when trap the parsing/processing code is extended
19 by single value matching etc., we might be able to clean this up.