xWyatt / check_rest_api

Nagios Core plugin to check output from a RESTful JSON API
GNU General Public License v3.0
10 stars 5 forks source link

Add support to return optional performance data #17

Closed levelsw closed 2 years ago

levelsw commented 2 years ago

It would be great if it is possible to return performance data. I would like to create a graph of the return value. Nagios just needs a specific syntax in the return value for that (https://assets.nagios.com/downloads/nagioscore/docs/nagioscore/3/en/perfdata.html). Is this possible?

I tried searching if I could somehow modify the return value so that Nagios uses it as performance data but don't see an easy way to do that from my side.

Thanks!

Wesley

xWyatt commented 2 years ago

This has been added with the latest release 1.2.0. Thanks for the suggestion!

https://github.com/xWyatt/check_rest_api/releases/tag/v1.2.0