centreon-clapi icon indicating copy to clipboard operation
centreon-clapi copied to clipboard

New line in Centengine Comment breaks the clapi

Open itsul opened this issue 5 years ago • 0 comments

Hi,

when using multiple lines in the comment field of the centengine configuration, the CLAPI-Export breaks the line too, instead of replacing by \n. Example:

ENGINECFG;ADD;Centreon Engine CFG 1;Central;Changes on 22.02.2019 12:15:
External Command Check Interval from 1s to -1
External Command Buffer Slots from 4096 to 8192
ENGINECFG;setparam;Centreon Engine CFG 1;log_file;/var/log/centreon-engine/centengine.log

Expected:

ENGINECFG;ADD;Centreon Engine CFG 1;Central;Changes on 22.02.2019 12:15:\nExternal Command Check Interval from 1s to -1\nExternal Command Buffer Slots from 4096 to 8192
ENGINECFG;setparam;Centreon Engine CFG 1;log_file;/var/log/centreon-engine/centengine.log

itsul avatar Apr 04 '19 12:04 itsul