Bug in API

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
jomann
Development Lead
Posts: 611
Joined: Mon Apr 22, 2013 10:06 am
Location: Nagios Enterprises

Re: Bug in API

Post by jomann »

Hmm so the problem is more than likely caused by too many being written at once... although it adds to the file instead of overwriting it like before it seems like the import is being imported before they are all written and maybe the file is being locked/deleted before the rest get entered in. I'll have to test sending a bunch all at once (I only sent a few at once) and I can get back to you.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: Bug in API

Post by BanditBBS »

jomann wrote:Hmm so the problem is more than likely caused by too many being written at once... although it adds to the file instead of overwriting it like before it seems like the import is being imported before they are all written and maybe the file is being locked/deleted before the rest get entered in. I'll have to test sending a bunch all at once (I only sent a few at once) and I can get back to you.
I put my sleep commands back in, but set to 1 and 9 out of 11 were added. So looks like a sleep 3 would still be needed between them all. In your testing, I'd at least test adding 15 back to back.
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
jomann
Development Lead
Posts: 611
Joined: Mon Apr 22, 2013 10:06 am
Location: Nagios Enterprises

Re: Bug in API

Post by jomann »

I have an idea. I'll get back to you sometime this afternoon hopefully with a fix you can try.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
jomann
Development Lead
Posts: 611
Joined: Mon Apr 22, 2013 10:06 am
Location: Nagios Enterprises

Re: Bug in API

Post by jomann »

This has been fixed in 5.2.2. Closing this.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked