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.
API rate of input
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: API rate of input
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
That said, you may want to introduce a sleep as part of your script to slow the calls
Re: API rate of input
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
Sounds goodhbouma 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.
Re: API rate of input
It appears this worked.
Thanks for the help.
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
great!hbouma wrote:It appears this worked.
Thanks for the help.
Locking thread