Nagios Web UI is not loading after upgrading to 2024R1.1.4 version

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
pavan509
Posts: 68
Joined: Fri Apr 30, 2021 7:07 am

Nagios Web UI is not loading after upgrading to 2024R1.1.4 version

Post by pavan509 »

After upgrading the Nagiosxi version from 2024R1.1.1 to 2024R1.1.4, we are not able to access the Web UI of NagiosXI and getting Permission denied error.
Snipaste_2024-07-12_12-56-06.jpeg
Not sure what is missing or what went wrong during the upgrade.
Has anyone faced this issue after the upgrade.
You do not have the required permissions to view the files attached to this post.
Thanks, Pavan
User avatar
jmichaelson
Posts: 194
Joined: Wed Aug 23, 2023 1:02 pm

Re: Nagios Web UI is not loading after upgrading to 2024R1.1.4 version

Post by jmichaelson »

Which Distribution of Linux are you on? (It matters because the web server logs are in different locations depending on the distribution.)

On Debian/Ubuntu systems, have a look at the error.log file in /var/log/apache2.

On RedHat/Oracle/Centos systems, check error_log in /var/log/http.

You should be able to see errors about the permissions problems there.
Please let us know if you have any other questions or concerns.

-Jason
pavan509
Posts: 68
Joined: Fri Apr 30, 2021 7:07 am

Re: Nagios Web UI is not loading after upgrading to 2024R1.1.4 version

Post by pavan509 »

We are running on RHEL 9.4

Code: Select all

 cat /etc/redhat-release
Red Hat Enterprise Linux release 9.4 (Plow)
I could see below entries in the error_log file under /var/log/httpd

Code: Select all

[Mon Jul 08 12:20:31.135094 2024] [proxy_fcgi:error] [pid 1832221:tid 1832266] [client 10.214.165.113:52152] AH01071: Got error 'PHP message: PHP Warning:  Undefined variable $background_style in /usr/local/nagiosxi/html/includes/page-home-main.php on line 68', referer: http://10.236.176.97/nagiosxi/
[Mon Jul 08 12:35:01.070589 2024] [proxy_fcgi:error] [pid 1832221:tid 1832255] [client 10.214.165.113:53199] AH01071: Got error 'PHP message: PHP Warning:  Undefined variable $background_style in /usr/local/nagiosxi/html/includes/page-home-main.php on line 68', referer: http://10.236.176.97/nagiosxi/
[Mon Jul 08 12:36:53.468637 2024] [proxy_fcgi:error] [pid 1831940:tid 1832081] [client 10.214.165.113:53378] AH01071: Got error 'PHP message: PHP Warning:  Undefined variable $background_style in /usr/local/nagiosxi/html/includes/page-home-main.php on line 68', referer: http://10.236.176.97/nagiosxi/
[Mon Jul 08 12:49:06.631366 2024] [proxy_fcgi:error] [pid 1832221:tid 1832254] [client 10.214.165.113:54201] AH01071: Got error 'PHP message: PHP Warning:  Undefined variable $background_style in /usr/local/nagiosxi/html/includes/page-home-main.php on line 68', referer: http://10.236.176.97/nagiosxi/
[Mon Jul 08 12:56:18.955595 2024] [proxy_fcgi:error] [pid 1831940:tid 1832048] [client 10.214.165.113:54944] AH01071: Got error 'PHP message: PHP Warning:  Undefined variable $background_style in /usr/local/nagiosxi/html/includes/page-home-main.php on line 68', referer: http://10.236.176.97/nagiosxi/
[Wed Jul 10 13:11:57.455565 2024] [proxy_fcgi:error] [pid 1831941:tid 1832092] [client 10.214.163.23:62672] AH01071: Got error 'PHP message: PHP Warning:  Undefined variable $background_style in /usr/local/nagiosxi/html/includes/page-home-main.php on line 68', referer: http://10.236.176.97/nagiosxi/index.php
[Wed Jul 10 13:14:59.647878 2024] [proxy_fcgi:error] [pid 1831939:tid 1832022] [client 10.214.163.23:62821] AH01071: Got error 'PHP message: PHP Warning:  ssh2_auth_password(): Authentication failed for nagios using password in /usr/local/nagiosxi/html/includes/components/scheduledbackups/ajaxcalls.php on line 0', referer: http://10.236.176.97/nagiosxi/includes/components/scheduledbackups/managebackups.php
[Wed Jul 10 13:15:18.074010 2024] [proxy_fcgi:error] [pid 1831941:tid 1832104] [client 10.214.163.23:62869] AH01071: Got error 'PHP message: PHP Warning:  ssh2_auth_password(): Authentication failed for nagios using password in /usr/local/nagiosxi/html/includes/components/scheduledbackups/ajaxcalls.php on line 0', referer: http://10.236.176.97/nagiosxi/includes/components/scheduledbackups/managebackups.php
[Wed Jul 10 15:56:23.774573 2024] [proxy_fcgi:error] [pid 1832221:tid 1832258] [client 10.214.163.23:59752] AH01071: Got error 'PHP message: PHP Warning:  Undefined variable $background_style in /usr/local/nagiosxi/html/includes/page-home-main.php on line 68', referer: http://10.236.176.97/nagiosxi/
[Wed Jul 10 16:16:11.773681 2024] [proxy_fcgi:error] [pid 1831941:tid 1832110] [client 10.214.163.23:61627] AH01071: Got error 'PHP message: PHP Warning:  Undefined variable $background_style in /usr/local/nagiosxi/html/includes/page-home-main.php on line 68', referer: http://10.236.176.97/nagiosxi/
[Wed Jul 10 16:21:18.613895 2024] [proxy_fcgi:error] [pid 1832221:tid 1832260] [client 10.214.163.23:62022] AH01071: Got error 'PHP message: PHP Warning:  file(/usr/local/nagios/etc/services/SocAvailMonitor2.schneider-electric.com.cfg): Failed to open stream: No such file or directory in /usr/local/nagiosxi/html/includes/components/nagiosql/nagiosql.inc.php on line 0PHP message: PHP Warning:  foreach() argument must be of type array|object, bool given in /usr/local/nagiosxi/html/includes/components/nagiosql/nagiosql.inc.php on line 0', referer: http://10.236.176.97/nagiosxi/includes/components/xicore/status.php?show=servicedetail&host=SocAvailMonitor2.schneider-electric.com&service=Current+Users&dest=auto
[Wed Jul 10 16:24:48.629578 2024] [proxy_fcgi:error] [pid 1832221:tid 1832266] [client 10.214.163.23:62385] AH01071: Got error 'PHP message: PHP Warning:  Undefined variable $background_style in /usr/local/nagiosxi/html/includes/page-home-main.php on line 68', referer: http://10.236.176.97/nagiosxi/
[Wed Jul 10 16:36:36.248452 2024] [proxy_fcgi:error] [pid 1831939:tid 1832009] [client 10.214.163.23:63501] AH01071: Got error 'PHP message: PHP Warning:  Undefined variable $background_style in /usr/local/nagiosxi/html/includes/page-home-main.php on line 68', referer: http://10.236.176.97/nagiosxi/
[Wed Jul 10 16:43:57.758603 2024] [proxy_fcgi:error] [pid 1832221:tid 1832256] [client 10.214.163.23:64064] AH01071: Got error 'PHP message: PHP Warning:  Undefined variable $background_style in /usr/local/nagiosxi/html/includes/page-home-main.php on line 68', referer: http://10.236.176.97/nagiosxi/
[Wed Jul 10 16:44:15.766347 2024] [proxy_fcgi:error] [pid 1831941:tid 1832105] [client 10.214.163.23:64090] AH01071: Got error 'PHP message: PHP Warning:  Undefined variable $background_style in /usr/local/nagiosxi/html/includes/page-home-main.php on line 68', referer: http://10.236.176.97/nagiosxi/
[Wed Jul 10 16:48:28.652192 2024] [proxy_fcgi:error] [pid 1831940:tid 1832077] [client 10.214.163.23:64456] AH01071: Got error 'PHP message: PHP Warning:  Undefined variable $background_style in /usr/local/nagiosxi/html/includes/page-home-main.php on line 68', referer: http://10.236.176.97/nagiosxi/
[Wed Jul 10 16:51:38.849547 2024] [proxy_fcgi:error] [pid 1832221:tid 1832266] [client 10.214.163.23:65085] AH01071: Got error 'PHP message: PHP Warning:  Undefined variable $background_style in /usr/local/nagiosxi/html/includes/page-home-main.php on line 68', referer: http://10.236.176.97/nagiosxi/
[Wed Jul 10 16:51:45.978677 2024] [proxy_fcgi:error] [pid 1831940:tid 1832059] [client 10.214.163.23:65102] AH01071: Got error 'PHP message: PHP Warning:  Undefined variable $background_style in /usr/local/nagiosxi/html/includes/page-home-main.php on line 68', referer: http://10.236.176.97/nagiosxi/
[Wed Jul 10 16:56:41.409267 2024] [proxy_fcgi:error] [pid 1832221:tid 1832265] [client 10.214.163.23:65476] AH01071: Got error 'PHP message: PHP Warning:  Undefined variable $background_style in /usr/local/nagiosxi/html/includes/page-home-main.php on line 68', referer: http://10.236.176.97/nagiosxi/
[Wed Jul 10 16:57:24.450405 2024] [proxy_fcgi:error] [pid 1832221:tid 1832271] [client 10.214.163.23:49188] AH01071: Got error 'PHP message: PHP Warning:  Undefined variable $background_style in /usr/local/nagiosxi/html/includes/page-home-main.php on line 68', referer: http://10.236.176.97/nagiosxi/
[Wed Jul 10 16:57:35.763455 2024] [proxy_fcgi:error] [pid 1832221:tid 1832261] [client 10.214.163.23:49201] AH01071: Got error 'PHP message: PHP Warning:  Undefined variable $background_style in /usr/local/nagiosxi/html/includes/page-home-main.php on line 68', referer: http://10.236.176.97/nagiosxi/
[Wed Jul 10 16:57:59.499629 2024] [proxy_fcgi:error] [pid 1832221:tid 1832263] [client 10.214.163.23:49225] AH01071: Got error 'PHP message: PHP Warning:  Undefined variable $background_style in /usr/local/nagiosxi/html/includes/page-home-main.php on line 68', referer: http://10.236.176.97/nagiosxi/
We can access Web UI using IP address without https
http and ip address.jpeg
but cannot access the Web UI using the domain name/IP address with https.
https and domain name.jpeg
https and ip address.jpeg
Do let me know on what can be done to fix this issue?
You do not have the required permissions to view the files attached to this post.
Thanks, Pavan
jsimon
Posts: 180
Joined: Wed Aug 23, 2023 11:27 am

Re: Nagios Web UI is not loading after upgrading to 2024R1.1.4 version

Post by jsimon »

It looks like the last screenshot is showing a certificate issue when you try to access Nagios XI via https. If you weren't seeing this before your upgrade, you may want to revisit the steps to set up SSL for your Nagios XI:

https://assets.nagios.com/downloads/nag ... s%20XI.pdf

Otherwise, you should be able to click on "Proceed to [ip address] (unsafe)" to reach your XI UI via SSL, despite the certificate issue. Let us know if you need further assistance with troubleshooting!
pavan509
Posts: 68
Joined: Fri Apr 30, 2021 7:07 am

Re: Nagios Web UI is not loading after upgrading to 2024R1.1.4 version

Post by pavan509 »

Thanks @jsimon for your response.

We have not faced this issue before upgrade. The SSL certificate has been issued only to the hostname of the server but not to the IP address of the server as per the organization policy.

After proceeding with ip address with https, I am still getting the same Forbidden error
https and ip.jpeg
As we are not authorized to access the application with http, we have to ensure that the application is accessible only via https.

Please do let me know if any other troubleshooting steps to fix this.
You do not have the required permissions to view the files attached to this post.
Thanks, Pavan
bbahn
Posts: 189
Joined: Thu Jan 12, 2023 5:42 pm

Re: Nagios Web UI is not loading after upgrading to 2024R1.1.4 version

Post by bbahn »

Hello @pavan509,

It seems you may not have properly set up TLS/SSL with Nagios XI. Here is a guide to do so: Configuring SSL/TLS in Nagios XI 2024
Actively advancing awesome answers with ardent alliteration, aptly addressing all ambiguities. Amplify your acumen and avail our amicable assistance. Eagerly awaiting your astute assessments of our advice.
jsimon
Posts: 180
Joined: Wed Aug 23, 2023 11:27 am

Re: Nagios Web UI is not loading after upgrading to 2024R1.1.4 version

Post by jsimon »

Can you let us know how this upgrade was performed, as well as how the 2024R1.1.1 installation you upgraded from was installed or upgraded to?

Are there any entries in the apache access log? This should be located in the same directory as the error_log you provided previously. In addition, it would be helpful to have access to your apache configuration:

Code: Select all

/etc/httpd/conf/httpd.conf
If you have the upgrade.log file available from when you performed the upgrade to 2024R1.1.4, that would also be helpful.

Feel free to DM me these files if you feel they contain sensitive data. It may also be expedient to open a case with Support directly in this instance. I've provided a link below in case you prefer that route:

https://answerhub.nagios.com/support/s/
User avatar
jmichaelson
Posts: 194
Joined: Wed Aug 23, 2023 1:02 pm

Re: Nagios Web UI is not loading after upgrading to 2024R1.1.4 version

Post by jmichaelson »

I'm also curious as to what happens if you proceed to the site on the ip address only. Do you get a 403 forbidden?
Please let us know if you have any other questions or concerns.

-Jason
pavan509
Posts: 68
Joined: Fri Apr 30, 2021 7:07 am

Re: Nagios Web UI is not loading after upgrading to 2024R1.1.4 version

Post by pavan509 »

@jsimon

The application has been upgraded to 2024R1.1.1 on RHEL7 machine in March and then the application has been migrated to RHEL 9 machine in May. In the early days of July the application has been upgraded to 2024R1.1.4

Please find the requested information.

@jmichaelson

We get 403 forbidden error when we use https://ip address. If we use http://ip address, we are able to login without any issues
You do not have the required permissions to view the files attached to this post.
Thanks, Pavan
jsimon
Posts: 180
Joined: Wed Aug 23, 2023 11:27 am

Re: Nagios Web UI is not loading after upgrading to 2024R1.1.4 version

Post by jsimon »

I think it would be worth going through the SSL/TLS setup document that has been linked in this thread already and verifying that all of the configuration changes specified there are still in place, along with any configuration changes that are specific to your implementation.
Locked