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
Nagios to trigger 15 requests per min to API endpoint.
-
- Posts: 120
- Joined: Fri May 22, 2015 7:12 am
-
- 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.
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
Here are the nagios plugin development guidelines
https://nagios-plugins.org/doc/guidelines.html
-
- Posts: 120
- Joined: Fri May 22, 2015 7:12 am
Re: Nagios to trigger 15 requests per min to API endpoint.
Thanks Scott Wilkerson for the reply. Any examples?
-
- 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.
I don't know of any plugin that do this so I don't have an example... Sorrykaushalshriyan wrote:Thanks Scott Wilkerson for the reply. Any examples?