Monitoring API REST Services

This forum is intended for the discussion of Nagios plugin development. Feature requests, patches, bug fixes, and all types of development-related discussions are welcome!

NOTE: The SourceForge.net nagiosplug-devel mailing list has been deprecated in favor of this forum in order to expedite support and provide additional features not available on the old mailing list.

Monitoring API REST Services

Postby markoz88 » Fri Jun 28, 2019 11:01 am

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

Re: Monitoring API REST Services

Postby ssax » Fri Jun 28, 2019 2:39 pm

I found this:

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

Is the API returning HTML, XML, YAML, or JSON?
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
ssax
Dreams In Code
 
Posts: 4384
Joined: Wed Feb 11, 2015 12:54 pm

Re: Monitoring API REST Services

Postby markoz88 » Fri Jun 28, 2019 2:52 pm

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

Re: Monitoring API REST Services

Postby scottwilkerson » Mon Jul 01, 2019 5:00 pm

depending on your requirements, it may be possible to do this with check_http as well
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
scottwilkerson
DevOps Engineer
 
Posts: 17023
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Re: Monitoring API REST Services

Postby markoz88 » Tue Jul 02, 2019 10:51 am

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

Re: Monitoring API REST Services

Postby scottwilkerson » Tue Jul 02, 2019 12:44 pm

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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
scottwilkerson
DevOps Engineer
 
Posts: 17023
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises


Return to Nagios Plugin Development

Who is online

Users browsing this forum: No registered users and 2 guests

cron