Page 1 of 1

Monitoring API REST Services

Posted: Fri Jun 28, 2019 11:01 am
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.

Re: Monitoring API REST Services

Posted: Fri Jun 28, 2019 2:39 pm
by ssax
I found this:

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

Is the API returning HTML, XML, YAML, or JSON?

Re: Monitoring API REST Services

Posted: Fri Jun 28, 2019 2:52 pm
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.

Re: Monitoring API REST Services

Posted: Mon Jul 01, 2019 5:00 pm
by scottwilkerson
depending on your requirements, it may be possible to do this with check_http as well

Re: Monitoring API REST Services

Posted: Tue Jul 02, 2019 10:51 am
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.

Re: Monitoring API REST Services

Posted: Tue Jul 02, 2019 12:44 pm
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.