Skip to content

Fix fake boolean options

In Centreon, the stream connector output options UI does not allow to pass boolean values, only string or numeric.

This leads to issues between the Lua code expecting a boolean value, and receiving string "true" or "false" or "whatever". Unfortunately, in Lua, any string (even an empty string) is evaluated to the boolean value true.

In order to "fix" this, the idea would be to use an integer value 0 or 1, which could be set properly from Centreon UI.

Same move for params:

  • verbose
  • use_instance_name_as_connector_name
  • disable_state_mapping
Edited by Mathias Védrines