Nagios to trigger 15 requests per min to API endpoint.

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
kaushalshriyan
Posts: 120
Joined: Fri May 22, 2015 7:12 am

Nagios to trigger 15 requests per min to API endpoint.

Post by kaushalshriyan »

Hi,

Is there a way to send requests for example 15 requests per min to API endpoint http://api.mydomain.com from Nagios server? If any one of the requests fails out of 15 requests/min meaning there is no 200 OK response from the failed request then Nagios should trigger an alert.
I happen to see https://nagios-plugins.org/doc/man/check_http.html. Any examples which will help me understand to use check_http nagios plugin.

Any help will be highly appreciable. Thanks in Advance and i look forward to hearing from you.

Best Regards,

Kaushal
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios to trigger 15 requests per min to API endpoint.

Post by scottwilkerson »

You would need to create your own plugin for this as this is not a capability of check_http.

Here are the nagios plugin development guidelines
https://nagios-plugins.org/doc/guidelines.html
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
kaushalshriyan
Posts: 120
Joined: Fri May 22, 2015 7:12 am

Re: Nagios to trigger 15 requests per min to API endpoint.

Post by kaushalshriyan »

Thanks Scott Wilkerson for the reply. Any examples?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios to trigger 15 requests per min to API endpoint.

Post by scottwilkerson »

kaushalshriyan wrote:Thanks Scott Wilkerson for the reply. Any examples?
I don't know of any plugin that do this so I don't have an example... Sorry
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked