Skip to content

Plugin output is multiline #6

@futurekill

Description

@futurekill

Is there any way to get just the last line (see below) from the plugin output? The check works fine and Icinga isn't complaining but "output of the check plugin" field only contains "check warning" instead of "Status Ok, Records in the last 50 minute(s): 18321011".

Here's my plugin output:

checking warning
range was warning
(0.0, 250000.0, True)
18321011.0:0.0:250000.0 = True
checking critical
range was critical
(0.0, 500000.0, True)
18321011.0:0.0:500000.0 = True
Status Ok, Records in the last 50 minute(s): 18321011|num_records=18321011.0;250000;500000;;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions