Skip to content

[apps::eclipse::mosquitto::mqtt::plugin]:format-custom #5771

@joviado

Description

@joviado

It seems that the plugin "centreon_eclipse_mosquitto_mqtt.pl" does not work correctly when evaluating
--format-custom regular expressions when --mode=string-value

If
--format-custom='."state":"([^"]+)".'
The string is ignored

Actual result

OK: value: {"state":"online"}

Expected result

OK: value: online

I solved it in the code by declaring it as a string
`
$options{options}->add_options(arguments => {

     ..

      'format-custom:s'    => { name => 'format_custom'},

     ..

`

Best regards.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions