Monitoring API REST Services

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.
Locked
markoz88
Posts: 8
Joined: Wed Jun 26, 2019 7:38 am

Monitoring API REST Services

Post by markoz88 »

Hi everyone;

i just recently added in a Nagios Admin Job and i need to monitoring API REST services for an APP, and i don't know how to do; somebody please have any plugin that monitoring these type of services that i colud use?

Thanks.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Monitoring API REST Services

Post by ssax »

I found this:

https://github.com/ynishi/nagios-check-rest

Is the API returning HTML, XML, YAML, or JSON?
markoz88
Posts: 8
Joined: Wed Jun 26, 2019 7:38 am

Re: Monitoring API REST Services

Post by markoz88 »

ssax wrote:I found this:

https://github.com/ynishi/nagios-check-rest

Is the API returning HTML, XML, YAML, or JSON?
Hi, thanks ssax, if the response is '200' return an 'application/Json'; if the response is a '4XX' or '5xx' code is a text/Xml

I am a begginner doing this so, i have much to learn.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Monitoring API REST Services

Post by scottwilkerson »

depending on your requirements, it may be possible to do this with check_http as well
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
markoz88
Posts: 8
Joined: Wed Jun 26, 2019 7:38 am

Re: Monitoring API REST Services

Post by markoz88 »

scottwilkerson wrote:depending on your requirements, it may be possible to do this with check_http as well
Hi Scott thanks for the reply, yes, but the services return and receive encripted the data. In other forum recommend me that use a bash with cURL.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Monitoring API REST Services

Post by scottwilkerson »

markoz88 wrote:Hi Scott thanks for the reply, yes, but the services return and receive encripted the data. In other forum recommend me that use a bash with cURL.
Ya that's going to make it difficult, you are going to need to code something up that can decipher the enc data so you can get what you need.
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked