Patches for check_syslog [sf#1119930] [#565]