Page 1 of 1
"verifying configuration" step hangs
Posted: Tue Sep 10, 2024 10:22 am
by AngeloMileto
XI 5.9.3 running on RedHat 8. Waiting on a license upgrade - our process is slow! - to build on the latest 2024.x.
First, yes I did find all of the other threads on here and read them including most of the referenced KB articles. Still not working.
Second, this is a disconnected system so please don't ask for really long debug output.
I did try to tail the cmd sub log but it's empty and doesn't log anything. Didn't see anything in any of the other logs either.
The odd thing is that if I manually execute the script, it passes! AND even updates the web interface to no longer show there are pending configurations to apply.
I also tried the Tools:Config File Management - Delete, Write, Verify and they all work find.
I even tried to delete an old failed snapshot and that comes back with "Config snapshot deleted" but it's still there.
My guess is it may still be a permission issue somewhere but I don't know where.
Any other thoughts/ideas would be appreciated.
Re: "verifying configuration" step hangs
Posted: Tue Sep 10, 2024 11:34 am
by danderson
Just to verify I'm understanding your problem correctly, you are having trouble with XI being slow? Or is it a license upgrade issue?
Re: "verifying configuration" step hangs
Posted: Wed Sep 11, 2024 8:02 am
by AngeloMileto
1: We are waiting on our license. I don't think the license would impact being able to make changes to the database via XI but just in case it does impact updates, I wanted to mention it.
2: It's not "slow" but just doesn't complete. From the web, making any change and then "Applying Configuration" just stays on the screen "Waiting for configuration verification" and the "....." just keeps going. I've let it run for > 10 minutes and it never completed.
As noted, if I just cancel the web update - by just navigating to anywhere else - and instead of executing the "Apply Configuration" from the web, I execute /usr/local/nagiosxi/scripts/reconfigure_nagios.sh it completes with no errors and then if I fresh the web interface, the "Apply Configuration" is no longer red (indicating pending changes) and there is a current/updated Configuration Snapshot.
So it appears that all the underlying things are working, permissions, database, scripts, etc. and it's just something in the web execution. If there is a log that would show where it's executing/hanging, let me know and I'll take a look at that. I looked at a few of the logs that I could think of and didn't see anything.
Re: "verifying configuration" step hangs
Posted: Thu Sep 12, 2024 9:34 am
by AngeloMileto
Does anyone have any thoughts on this? Again, is there a log that would show the steps being executed via the web Apply Configuration to look at?
Re: "verifying configuration" step hangs
Posted: Thu Sep 12, 2024 2:16 pm
by danderson
From what I see, when you click Apply Configuration in the interface, it sends a command to execute the reconfigure_nagios.sh script. This should be appearing inside of the /usr/local/nagiosxi/var/cmdsubsys.log but there are some conditions where it might not be.
When you navigate to Admin -> System Information -> System Status and you look at the System Component Status table, when was the last time that the Command Subsystem was ran? It realistically shouldn't be getting over 1 second.
Also, if you navigate to Admin -> System Config -> Performance Settings -> Subsystem, make sure that the "Enable Subsystem Logging" is checked if you are looking for logs.
Re: "verifying configuration" step hangs
Posted: Fri Sep 13, 2024 11:12 am
by AngeloMileto
@danderson,
Brilliant! I had looked at the log and I did see the CMDLINE call for the reconfigure script so I figured it was running. It's not
Apparently, the Command Subsystem, among other things, doesn't run without the license. So at this point, I can make some changes and manually run the script while we're waiting on our license then see if all is working as expected.
Thanks!!!
Re: "verifying configuration" step hangs
Posted: Mon Sep 16, 2024 2:55 pm
by danderson
Glad to know you found a workaround!