Monitor APIs with Nagios

monitoringnagios

I'm just getting started with Nagios and I'm wondering if anyone knows of a plugin or built-in function that would allow me to monitor restful APIs?

I want to be able to run a predefined GET/POST methods to endpoints and check that they don't return an error.

Best Answer

If you don't need to parse JSON output or the like, check_http, bundled in Nagios Core, could be the right tool for the job.

It has SNI support, HTTP methods, PKI certificates support, headers string check, response string/regex check.

Just give a look to all the switches invoking check_http -h.