API monitor

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Post Reply
mandar18
Posts: 28
Joined: Thu Feb 08, 2024 6:43 am

API monitor

Post 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
User avatar
MaterazziSan
Posts: 3
Joined: Wed Apr 19, 2023 5:31 pm

Re: API monitor

Post by MaterazziSan »

Hi,

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

Best regards
mandar18
Posts: 28
Joined: Thu Feb 08, 2024 6:43 am

Re: API monitor

Post 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?
DoubleDoubleA
Posts: 68
Joined: Thu Feb 09, 2017 5:07 pm

Re: API monitor

Post 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
Post Reply