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;;
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;;