Neptune theme broken in last 2 releases?

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Post Reply
User avatar
GldRush98
Posts: 257
Joined: Wed May 25, 2011 10:51 am
Location: Springfield, IL
Contact:

Neptune theme broken in last 2 releases?

Post by GldRush98 »

I have a user who was happily using the new Neptune gui until the last 2 releases. If you try to log in with a user with that theme set, or you switch your account to that theme, you're met with a blank screen that some times shows a generic error and is some times just all blue.

I have 2 completely separate XI servers I tried this on and both broke with the Neptune theme set in the same way.
Prod XI: Debian 12 - Nagios XI 2024R2.1
Dev XI: Debian 12 - Nagios XI 2026R1
cnorell
Developer
Posts: 141
Joined: Mon Nov 27, 2017 3:08 pm

Re: Neptune theme broken in last 2 releases?

Post by cnorell »

GldRush98,

What version is your user's XI running? We had some issues in 2024R1.1.3 that could potentially cause the symptoms you're seeing, and have fixed several of those in 2024R1.1.4, which was released today.

Best Regards,

Cory Norell
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
GldRush98
Posts: 257
Joined: Wed May 25, 2011 10:51 am
Location: Springfield, IL
Contact:

Re: Neptune theme broken in last 2 releases?

Post by GldRush98 »

1.1.3 and 1.1.4 both exhibit the same behavior.
Capture.PNG
You do not have the required permissions to view the files attached to this post.
Prod XI: Debian 12 - Nagios XI 2024R2.1
Dev XI: Debian 12 - Nagios XI 2026R1
cnorell
Developer
Posts: 141
Joined: Mon Nov 27, 2017 3:08 pm

Re: Neptune theme broken in last 2 releases?

Post by cnorell »

Are you familiar with web developer tools? On Chrome and Firefox, you can access them by pressing F12. Once the developer tools are open, you should see a Network tab that will track requests. I've attached a screenshot of the Chrome developer tools for reference:
Screenshot 2024-06-13 at 3.11.03 PM.png
Once you have the developer tools open, you should be able to reload the page and see exactly which request throws the 404 error. If you can copy/paste or screenshot the bad request, that would help troubleshoot. Since my last post, I heard about a different 404 error related to our translation files that could be causing your issue.

If you are uncomfortable doing any of this, you can open a case with Customer Support provided you have entitlements available.

Best Regards,

Cory Norell
You do not have the required permissions to view the files attached to this post.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
swolf

Re: Neptune theme broken in last 2 releases?

Post by swolf »

If the upgrade was otherwise successful, there is one other thing the support team reported to us yesterday that you can check independently.

First, take a system level backup (i.e. VM snapshot), since we're going to muck around in the database.

In the Nagios XI terminal, look at the configured languages for all users:

Code: Select all

. /usr/local/nagiosxi/etc/xi-sys.cfg
mysql -u root -p$mysqlpass nagiosxi -Nse "SELECT * from xi_usermeta WHERE keyname = 'language'"
On systems where Neptune is working, the output looks similar to this:

Code: Select all

61	2	language	en_US	1
92	1	language	en_US	1
149	3	language	en_US	1
Some customers have had this instead:

Code: Select all

61	2	language	en	1
92	1	language	en	1
149	3	language	en	1
If you find that the language is set to "en", change it to "en_US":

Code: Select all

mysql -u root -p$mysqlpass nagiosxi -Nse "UPDATE xi_usermeta SET keyvalue = 'en_US' WHERE keyname = 'language' AND keyvalue = 'en'"
Hopefully that helps - if that doesn't resolve your issue, I'd recommend taking the debugging steps that Cory recommended.

-Sebastian
ssunga
Posts: 72
Joined: Wed Aug 09, 2023 10:38 am

Re: Neptune theme broken in last 2 releases?

Post by ssunga »

What OS are you running Neptune on and are there any errors in the console (dev tools --> console)?
User avatar
GldRush98
Posts: 257
Joined: Wed May 25, 2011 10:51 am
Location: Springfield, IL
Contact:

Re: Neptune theme broken in last 2 releases?

Post by GldRush98 »

swolf wrote: Fri Jun 14, 2024 10:34 am If the upgrade was otherwise successful, there is one other thing the support team reported to us yesterday that you can check independently.

First, take a system level backup (i.e. VM snapshot), since we're going to muck around in the database.

In the Nagios XI terminal, look at the configured languages for all users:

Code: Select all

. /usr/local/nagiosxi/etc/xi-sys.cfg
mysql -u root -p$mysqlpass nagiosxi -Nse "SELECT * from xi_usermeta WHERE keyname = 'language'"
On systems where Neptune is working, the output looks similar to this:

Code: Select all

61	2	language	en_US	1
92	1	language	en_US	1
149	3	language	en_US	1
Some customers have had this instead:

Code: Select all

61	2	language	en	1
92	1	language	en	1
149	3	language	en	1
If you find that the language is set to "en", change it to "en_US":

Code: Select all

mysql -u root -p$mysqlpass nagiosxi -Nse "UPDATE xi_usermeta SET keyvalue = 'en_US' WHERE keyname = 'language' AND keyvalue = 'en'"
Hopefully that helps - if that doesn't resolve your issue, I'd recommend taking the debugging steps that Cory recommended.

-Sebastian
This indeed fixed it! My users all had just en (this is a pretty old system), and changing to en_US fixed Neptune.
Thanks!
Prod XI: Debian 12 - Nagios XI 2024R2.1
Dev XI: Debian 12 - Nagios XI 2026R1
amoss24
Posts: 31
Joined: Thu Dec 17, 2020 1:19 pm

Re: Neptune theme broken in last 2 releases?

Post by amoss24 »

We found a user of ours in the same boat with the Neptune theme after doing an upgrade to 2024R1.1.4. We have a Nagios install that dates pretty far back so all users in our DB are just set to "en." Changing to en_US fixes the theme for them.
image.png
The language options show three English settings for us. Second option is en_EN or UK, third is en_US.
You do not have the required permissions to view the files attached to this post.
Post Reply