bonesmoses / NagAconda

Python Nagios Integration
BSD 3-Clause "New" or "Revised" License
15 stars 15 forks source link

Plugin output is multiline #6

Open futurekill opened 10 years ago

futurekill commented 10 years ago

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

stromnet commented 6 years ago

While this is resolved in master, it would be great if a release could be made and pushed to pypi!