API rate of input

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
hbouma
Posts: 483
Joined: Tue Feb 27, 2018 9:31 am

API rate of input

Post by hbouma »

Is there a rate limit we should use when sending commands to the the Core Command API?

We are currently using it to disable alerts for new users upon creation so that alerts are not set until some manual work is done on each user (https://support.nagios.com/forum/viewto ... 65#p279758). What I am seeing is that when we send 500 or so of these commands to the core command API, not all users get applied each time.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: API rate of input

Post by scottwilkerson »

There is no limit per-se, but your apache instance needs to be able to handle them.

That said, you may want to introduce a sleep as part of your script to slow the calls
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
hbouma
Posts: 483
Joined: Tue Feb 27, 2018 9:31 am

Re: API rate of input

Post by hbouma »

Thank you. I am adding a .5 second delay after each user. I will try it out tonight and Monday and see if the issue is fixed.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: API rate of input

Post by scottwilkerson »

hbouma wrote:Thank you. I am adding a .5 second delay after each user. I will try it out tonight and Monday and see if the issue is fixed.
Sounds good
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
hbouma
Posts: 483
Joined: Tue Feb 27, 2018 9:31 am

Re: API rate of input

Post by hbouma »

It appears this worked.

Thanks for the help.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: API rate of input

Post by scottwilkerson »

hbouma wrote:It appears this worked.

Thanks for the help.
great!

Locking thread
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked