API failing with http code 500 on Servicestatus request

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
grenley
Posts: 96
Joined: Tue May 13, 2014 6:06 pm

Re: API failing with http code 500 on Servicestatus request

Post by grenley »

BTW, we are actually doing that.
The API calls are to delete all the monitored agents that have been moved.
Kind of important. Seems like a Catch-22
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: API failing with http code 500 on Servicestatus request

Post by tgriep »

The API should work, it is just that there are so many services, it will take a long time to Apply the Config.
Splitting up the servers will make the Apply Config work faster.
Be sure to check out our Knowledgebase for helpful articles and solutions!
grenley
Posts: 96
Joined: Tue May 13, 2014 6:06 pm

Re: API failing with http code 500 on Servicestatus request

Post by grenley »

Wow. This is going from bad to worse.
I just issued API deletes for all the services on a number of hosts.
When I looked at a couple of servers in Home->Hosts, they showed no services under them.
I then ran an Apply Config from the GUI, which completed in quite short order this time.
So, I then tried to delete the hosts from CCM and they all failed due to service dependencies.
And, lo and behold, the hosts' services were all magically repopulated after the apply config.
We need to take this to a problem ticket.
I'll send the email.
Can I just reference this post so I don't have to respell out all this stuff?
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: API failing with http code 500 on Servicestatus request

Post by dwhitfield »

grenley wrote: Can I just reference this post so I don't have to respell out all this stuff?
Yep, that's exactly what you should do.

Once sent, please post here so we can verify that we got it.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: API failing with http code 500 on Servicestatus request

Post by ssax »

In addition, it is normal when an apply config fails for it to revert the files back to the last known good configuration.
grenley
Posts: 96
Joined: Tue May 13, 2014 6:06 pm

Re: API failing with http code 500 on Servicestatus request

Post by grenley »

I have sent in an email request for a problem ticket.
Also, the Apply Configuration appeared to work properly though it finished extremely quickly (under a minute).
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: API failing with http code 500 on Servicestatus request

Post by tgriep »

Shall I close and lock this post so you can continue on in the support ticket?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked