GUI issues after 5.6.12 -> 5.7.1 upgrade

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
sib
Posts: 111
Joined: Thu Dec 11, 2014 8:06 am

GUI issues after 5.6.12 -> 5.7.1 upgrade

Post by sib »

Dear Nagios Support Team,

Im facing an issue with GUI after we did upgrade from 5.6.12 to 5.7.1. The nagios monitoring itself its working i can see that checks are being performed we are getting alerts etc. But nothing is reflected in GUI. Things which are not working in GUI are:
- Last check and check content is not updated in GUI page
- If i add new host in Core Config Manager and apply configuration its not showing up in GUI at all
- Performance graphs are working fine

Can you advise what can be an issue and what information would you like me to attach to the topic to help you find the root cause?
sib
Posts: 111
Joined: Thu Dec 11, 2014 8:06 am

Re: GUI issues after 5.6.12 -> 5.7.1 upgrade

Post by sib »

We did upgrade to 5.7.2 same issue

On System Information Tab ive noticed (attached) status of services - any idea how to trouybleshoot "monitoring engine process" ?
You do not have the required permissions to view the files attached to this post.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: GUI issues after 5.6.12 -> 5.7.1 upgrade

Post by benjaminsmith »

Hi Sib,

Let's do a full restart of the Nagios XI stack, this should get your monitoring engine running again. If not, let me know. Open up a shell on the XI server as root and run the following commands:

Code: Select all

systemctl stop crond
systemctl stop npcd
systemctl stop nagios
pkill -9 -u nagios
rm -rf /usr/local/nagiosxi/var/dbmaint.lock
rm -rf /usr/local/nagiosxi/var/event_handler.lock
rm -rf /usr/local/nagiosxi/scripts/reconfigure_nagios.lock
systemctl restart mysqld || systemctl restart mariadb
systemctl start nagios
systemctl start npcd
systemctl start crond
systemctl restart httpd
If you are still having trouble with check results coming in, please send over your system profile and we'll review the logs for you.

Benjamin

To send us your system profile.
Login to the Nagios XI GUI using a web browser.
Click the "Admin" > "System Profile" Menu
Click the "Download Profile" button
Save the profile.zip file and share in a private message or upload it to the post/ticket, and then reply to this post to bring it up in the queue.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
sib
Posts: 111
Joined: Thu Dec 11, 2014 8:06 am

Re: GUI issues after 5.6.12 -> 5.7.1 upgrade

Post by sib »

Hi i followed the steps but didnt help still GUI dont work as expected. Nagios profile file sent via PM to you
benjaminsmith wrote:Hi Sib,

Let's do a full restart of the Nagios XI stack, this should get your monitoring engine running again. If not, let me know. Open up a shell on the XI server as root and run the following commands:

Code: Select all

systemctl stop crond
systemctl stop npcd
systemctl stop nagios
pkill -9 -u nagios
rm -rf /usr/local/nagiosxi/var/dbmaint.lock
rm -rf /usr/local/nagiosxi/var/event_handler.lock
rm -rf /usr/local/nagiosxi/scripts/reconfigure_nagios.lock
systemctl restart mysqld || systemctl restart mariadb
systemctl start nagios
systemctl start npcd
systemctl start crond
systemctl restart httpd
If you are still having trouble with check results coming in, please send over your system profile and we'll review the logs for you.

Benjamin

To send us your system profile.
Login to the Nagios XI GUI using a web browser.
Click the "Admin" > "System Profile" Menu
Click the "Download Profile" button
Save the profile.zip file and share in a private message or upload it to the post/ticket, and then reply to this post to bring it up in the queue.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: GUI issues after 5.6.12 -> 5.7.1 upgrade

Post by benjaminsmith »

Hi @Sib,
It looks like you have enabled SELinux on this system and Nagios XI is not compatible with that configuration.
[core:notice] [pid 13868] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
Can you disabled SELinux on this server, and then do a full restart and let me know if the issue is resolved.

Nagios XI Restart

Code: Select all

systemctl stop crond
systemctl stop npcd
systemctl stop nagios
pkill -9 -u nagios
rm -rf /usr/local/nagiosxi/var/dbmaint.lock
rm -rf /usr/local/nagiosxi/var/event_handler.lock
rm -rf /usr/local/nagiosxi/scripts/reconfigure_nagios.lock
systemctl restart mysqld || systemctl restart mariadb
systemctl start nagios
systemctl start npcd
systemctl start crond
systemctl restart httpd
See: 5.4.2. DISABLING SELINUX
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
sib
Posts: 111
Joined: Thu Dec 11, 2014 8:06 am

Re: GUI issues after 5.6.12 -> 5.7.1 upgrade

Post by sib »

Hi,

SeLinux has now been set to permissive mode but issue still persists...
benjaminsmith wrote:Hi @Sib,
It looks like you have enabled SELinux on this system and Nagios XI is not compatible with that configuration.
[core:notice] [pid 13868] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
Can you disabled SELinux on this server, and then do a full restart and let me know if the issue is resolved.

Nagios XI Restart

Code: Select all

systemctl stop crond
systemctl stop npcd
systemctl stop nagios
pkill -9 -u nagios
rm -rf /usr/local/nagiosxi/var/dbmaint.lock
rm -rf /usr/local/nagiosxi/var/event_handler.lock
rm -rf /usr/local/nagiosxi/scripts/reconfigure_nagios.lock
systemctl restart mysqld || systemctl restart mariadb
systemctl start nagios
systemctl start npcd
systemctl start crond
systemctl restart httpd
See: 5.4.2. DISABLING SELINUX
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: GUI issues after 5.6.12 -> 5.7.1 upgrade

Post by benjaminsmith »

Hi @Sib,
If i add new host in Core Config Manager and apply configuration its not showing up in GUI at all
Just to clarify this particular issue, when you add the new host, are you able to find the host in the CCM? Also, what operating system are you using?

I noticed in the database log that the MySQL had recently run out of memory.
200807 10:48:29 [ERROR] mysqld: Out of memory (Needed 128917504 bytes)
Please log in as root and run the following check and repair command.

Code: Select all

mysqlcheck -f -r -u root -pnagiosxi --all-databases --use_frm
Can you post the MySQL configuration file.

Code: Select all

cat /etc/my.cnf
Let me know if you notice any improvement after running the db repair script. If you're still having issues with check results not updating, it maybe necessary to downgrade the backend database to the previous version.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
sib
Posts: 111
Joined: Thu Dec 11, 2014 8:06 am

Re: GUI issues after 5.6.12 -> 5.7.1 upgrade

Post by sib »

I've run mysqlcheck -f -r -u root -pnagiosxi --all-databases --use_frm - still same issue with GUI

in CCM i can see newly configured host but its not visible outside CCM in GUI - but for instance alerts are being generated for new host so its active. MariaDB config sent via PM.
benjaminsmith wrote:Hi @Sib,
If i add new host in Core Config Manager and apply configuration its not showing up in GUI at all
Just to clarify this particular issue, when you add the new host, are you able to find the host in the CCM? Also, what operating system are you using?

I noticed in the database log that the MySQL had recently run out of memory.
200807 10:48:29 [ERROR] mysqld: Out of memory (Needed 128917504 bytes)
Please log in as root and run the following check and repair command.

Code: Select all

mysqlcheck -f -r -u root -pnagiosxi --all-databases --use_frm
Can you post the MySQL configuration file.

Code: Select all

cat /etc/my.cnf
Let me know if you notice any improvement after running the db repair script. If you're still having issues with check results not updating, it maybe necessary to downgrade the backend database to the previous version.
cconkrig
Posts: 2
Joined: Thu Oct 26, 2017 7:44 am

Re: GUI issues after 5.6.12 -> 5.7.1 upgrade

Post by cconkrig »

We too are facing this issue in multiple instances. The last couple of releases have been VERY rough.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: GUI issues after 5.6.12 -> 5.7.1 upgrade

Post by benjaminsmith »

Hi @cconkrig,

Sorry to hear your experiencing issues with the upgrade, let's get another thread going or support ticket open to directly assist you if you haven't done so already.

Thanks,
Benjamin
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!