Page 1 of 1

API monitor

Posted: Wed Aug 28, 2024 3:57 am
by mandar18
Hello team,
I want to monitor API in Nagios core.
How can this be done?
I don't have any details other than the API link.
The API link is in JSON

Re: API monitor

Posted: Thu Aug 29, 2024 4:39 am
by MaterazziSan
Hi,

You can use this plugin https://nagios-plugins.org/doc/man/check_http.html

Best regards

Re: API monitor

Posted: Thu Aug 29, 2024 6:32 am
by mandar18
It does not work with HTTP, although other sites work by using HTTP.

Can we do it by using any plugin of rest API other than HTTP?

Re: API monitor

Posted: Thu Aug 29, 2024 9:09 am
by DoubleDoubleA
Hi @mandar18,

When asking for help on how to monitor, it is very useful to share what exactly you want to monitor for.

You mention json and an api, are you looking to parse a json api return and look for a specific value in that?

If so, you might look at https://exchange.nagios.org/directory/P ... on/details or https://exchange.nagios.org/directory/P ... s)/details or https://github.com/drewkerrigan/nagios-http-json .

Aaron