Page 1 of 1

API rate of input

Posted: Thu Apr 11, 2019 1:38 pm
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.

Re: API rate of input

Posted: Thu Apr 11, 2019 3:11 pm
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

Re: API rate of input

Posted: Fri Apr 12, 2019 7:06 am
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.

Re: API rate of input

Posted: Fri Apr 12, 2019 8:32 am
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

Re: API rate of input

Posted: Mon Apr 15, 2019 7:06 am
by hbouma
It appears this worked.

Thanks for the help.

Re: API rate of input

Posted: Mon Apr 15, 2019 7:58 am
by scottwilkerson
hbouma wrote:It appears this worked.

Thanks for the help.
great!

Locking thread