Page 1 of 2
Command applying but not showing in GUI
Posted: Tue Oct 20, 2020 11:30 am
by rferebee
Good morning team,
I need some help figuring out why when I disable Notifications in the GUI of my backup XI server, it shows the command submitted successfully but it does not show that notifications are disabled. I have to reboot the server to get the green check mark to change to a red X.
This has been happening since we updated to 5.7.3 a couple weeks ago.
It's not an emergency, because I can confirm the notifications actually do disable but it would be nice for the visual confirmation to occur like normal.
Thank you!
Re: Command applying but not showing in GUI
Posted: Wed Oct 21, 2020 10:10 am
by dchurch
Yes, this is a known issue in Nagios XI. Enabling or disabling systems from the Monitoring Engine Status page successfully sets the engine state, but doesn't update the UI right away.
Good news, however: There's no need to restart Nagios XI. All you need to do is re-navigate to the page by clicking on Monitoring Engine Status (left nav) and it should show the updated engine status.
Re: Command applying but not showing in GUI
Posted: Wed Oct 21, 2020 11:30 am
by rferebee
Yes, that's typically what I do, but reloading the Monitoring Engine Status page does not produce the expected result. The Notifications still appear as enabled.
So, something else is going on.
Re: Command applying but not showing in GUI
Posted: Wed Oct 21, 2020 4:28 pm
by dchurch
I'm wondering what the logs say is happening.
Can you upload your System Profile zip? You can get one by going to Admin (top menu), then going to System Profile (left nav) and clicking the big blue button.
Re: Command applying but not showing in GUI
Posted: Thu Oct 22, 2020 3:41 pm
by dchurch
System Profile received.
I'm noticing that there's an error in the
nagios_commenthistory table inside the
nagios database. the MySQL database - one of the tables is corrupt. It might be a good idea to
run the database repair script.
Re: Command applying but not showing in GUI
Posted: Thu Oct 22, 2020 6:13 pm
by rferebee
That did the trick! I could've swore I ran a repair, but it must have been on a different host.
You can lock this as resolved. Thank you!
Re: Command applying but not showing in GUI
Posted: Thu Oct 29, 2020 12:47 pm
by rferebee
Hello team, unfortunately this issue is not yet resolved. Everyday we perform a failover restore from our Production XI server to our backup XI server to ensure if anything ever happens to the Production host, we have an up to date backup available immediately. It seems that something related to the profile restore process is causing the DB files to "lockup?" and when I login to the backup XI server to set the notifications from enabled to disabled, it shows the command successfully applied but the Green circle never changes to Red.
This began after we updated to 5.7.3.
Let me know what you need from me in order to identify the problem. Thank you.
Re: Command applying but not showing in GUI
Posted: Thu Oct 29, 2020 5:11 pm
by benjaminsmith
Hi
@ rferebee
I tested this out on my 5.7.4 system and did not have any issues. What value do you have set for the dashlet? By default it will refresh every 30 seconds, you can check this by going to Admin > Performance Settings > Dashlets. Try setting it to a low number like 5 or 10 seconds.
monitoring-engine-dashlet.png
If that doesn't work, run the following tail command and disable notifications from the GUI and we'll see if there any errors we can capture.
Code: Select all
tail -Fn0 /var/log/httpd/error_log /var/log/httpd/ssl_error_log /usr/local/nagiosxi/var/cmdsubsys.log /usr/local/nagiosxi/var/eventman.log
Re: Command applying but not showing in GUI
Posted: Mon Nov 02, 2020 12:25 pm
by rferebee
This is all I get from tailing the logs:
Code: Select all
==> /usr/local/nagiosxi/var/cmdsubsys.log <==
PROCESSING COMMAND ID 48020...
PROCESS COMMAND: CMD=16, DATA={"cmd":11}
COMMAND DATA: {"cmd":11}
CMDARR:
Array
(
[cmd] => 11
)
CORE CMD: DISABLE_NOTIFICATIONS;0
SUBMITTING A NAGIOSCORE COMMAND...
No errors I can see. It's weird because like I said it shows the command is submitting successfully, but the Green dot doesn't switch to Red unless I reboot the box. Even refreshing the page doesn't update the status to Red.
Re: Command applying but not showing in GUI
Posted: Mon Nov 02, 2020 3:15 pm
by benjaminsmith
Hi
@referebee,
Thanks for the logs, that does look alright, this is odd. There must be an issue on this system with front scripts as it works and it just doesn't update the page like it's supposed to.
If your using Chrome ( or Firefox) hover over the Notifications element and select the inspect tools, then pull up the Network tab to verify that the scripts are loading correctly.
inspect-element.png
If you see any errors, please take a screenshot and post it to the thread.
Regards,
Benjamin