Manage Users page SQL error

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
TBT
Posts: 625
Joined: Wed May 18, 2011 1:26 pm

Re: Manage Users page SQL error

Post by TBT »

Yes, there was a failed upgrade in the past. Currently running 5.3.3, see attached upgrade log.
upgrade.log
You do not have the required permissions to view the files attached to this post.
Nagios XI 2024R2.2.1 (8 Servers)
Nagios Fusion 2024R1.0.2
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Manage Users page SQL error

Post by tgriep »

Thanks for the upgrade.log files, it didn't show any errors from before.

Lets add the missing tables to the postgress database manually but make a full backup of the server in case something doesn't work

Follow this procedure by logging in to the server as root.

Code: Select all

cd /tmp
Make sure you delete the /tmp/nagiosxi/ directory and any old “tar.gz” files the exist. You can do this by running the following command:

Code: Select all

rm -rf nagiosxi xi*.tar.gz
Next, download the latest stable release to the /tmp/ directory on the Nagios XI server. To download run the following command:

Code: Select all

wget http://assets.nagios.com/downloads/nagiosxi/xi-latest.tar.gz
Unpack the updated tarball you just downloaded.

Code: Select all

tar xzf xi-latest.tar.gz
Then run the following to add the missing tabled to the Postgress database.
psql nagiosxi nagiosxi -f /tmp/nagiosxi/nagiosxi/nagiosxi-db/mods/pgsql/schema_01.sql

After this, lets restart the nagios and apache processes by running

Code: Select all

service httpd restart
service nagios restart
Login to the XI GUI and see if the error is gone now.
Be sure to check out our Knowledgebase for helpful articles and solutions!
TBT
Posts: 625
Joined: Wed May 18, 2011 1:26 pm

Re: Manage Users page SQL error

Post by TBT »

That did the trick. Thank you for your assistance.
Nagios XI 2024R2.2.1 (8 Servers)
Nagios Fusion 2024R1.0.2
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Manage Users page SQL error

Post by tgriep »

Your welcome. If you don't have any other questions, shall I close the post as solved?
Be sure to check out our Knowledgebase for helpful articles and solutions!
TBT
Posts: 625
Joined: Wed May 18, 2011 1:26 pm

Re: Manage Users page SQL error

Post by TBT »

tgriep wrote:Your welcome. If you don't have any other questions, shall I close the post as solved?
Issue appears to be resolved.
Nagios XI 2024R2.2.1 (8 Servers)
Nagios Fusion 2024R1.0.2
Locked