Page 1 of 2

GUI issues after 5.6.12 -> 5.7.1 upgrade

Posted: Mon Aug 10, 2020 2:58 am
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?

Re: GUI issues after 5.6.12 -> 5.7.1 upgrade

Posted: Mon Aug 10, 2020 5:37 am
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" ?

Re: GUI issues after 5.6.12 -> 5.7.1 upgrade

Posted: Mon Aug 10, 2020 4:15 pm
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.

Re: GUI issues after 5.6.12 -> 5.7.1 upgrade

Posted: Tue Aug 11, 2020 1:37 am
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.

Re: GUI issues after 5.6.12 -> 5.7.1 upgrade

Posted: Tue Aug 11, 2020 5:36 pm
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

Re: GUI issues after 5.6.12 -> 5.7.1 upgrade

Posted: Thu Aug 13, 2020 1:49 am
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

Re: GUI issues after 5.6.12 -> 5.7.1 upgrade

Posted: Thu Aug 13, 2020 4:13 pm
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.

Re: GUI issues after 5.6.12 -> 5.7.1 upgrade

Posted: Tue Aug 18, 2020 10:14 am
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.

Re: GUI issues after 5.6.12 -> 5.7.1 upgrade

Posted: Tue Aug 18, 2020 10:57 am
by cconkrig
We too are facing this issue in multiple instances. The last couple of releases have been VERY rough.

Re: GUI issues after 5.6.12 -> 5.7.1 upgrade

Posted: Wed Aug 19, 2020 10:35 am
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