Manage Users page SQL error
Re: Manage Users page SQL error
Sounds good, thank you, we will keep an eye out.
Re: Manage Users page SQL error
Followed your recommendation, successfully ran on remote DB, but issues remains.
SQL Error [nagiosxi] : ERROR: column "login_attempts" does not exist
LINE 1: SELECT user_id FROM xi_users WHERE (login_attempts >= 3) AN...
Nagios XI 2024R2.2.1 (8 Servers)
Nagios Fusion 2024R1.0.2
Nagios Fusion 2024R1.0.2
Re: Manage Users page SQL error
What is the output from this command:
- Please change user/pass and xxx.xxx.xxx.xxx
Thank you
- Please change user/pass and xxx.xxx.xxx.xxx
Code: Select all
echo "desc xi_users;" | mysql -unagiosxi -pnagios -h xxx.xxx.xxx.xxx nagiosxiRe: Manage Users page SQL error
ssax wrote:What is the output from this command:
- Please change user/pass and xxx.xxx.xxx.xxx
Thank youCode: Select all
echo "desc xi_users;" | mysql -unagiosxi -pnagios -h xxx.xxx.xxx.xxx nagiosxi
ERROR 1146 (42S02) at line 1: Table 'nagiosqldev.xi_users' doesn't exist
Nagios XI 2024R2.2.1 (8 Servers)
Nagios Fusion 2024R1.0.2
Nagios Fusion 2024R1.0.2
Re: Manage Users page SQL error
Can you post the following files from your Nagios XI server so we can view the settings?
Thanks
Code: Select all
/usr/local/nagiosxi/html/config.inc.php
/etc/php.iniBe sure to check out our Knowledgebase for helpful articles and solutions!
Re: Manage Users page SQL error
Not keen on posting login credentials. Can you be more specific on what you're looking for an I will verify?tgriep wrote:Can you post the following files from your Nagios XI server so we can view the settings?ThanksCode: Select all
/usr/local/nagiosxi/html/config.inc.php /etc/php.ini
Nagios XI 2024R2.2.1 (8 Servers)
Nagios Fusion 2024R1.0.2
Nagios Fusion 2024R1.0.2
Re: Manage Users page SQL error
The output from this command from a previous post failed so I wanted to verify the settings for your MYSQL server.
You can PM me the files or open a ticket by sending an email to [email protected] and we can continue there.
Code: Select all
echo "desc xi_users;" | mysql -u nagiosxi -pnagios -h xxx.xxx.xxx.xxx nagiosxiBe sure to check out our Knowledgebase for helpful articles and solutions!
Re: Manage Users page SQL error
Thanks for the files, run this command from the XI server as root and post the output.
Code: Select all
echo "\d+ xi_users;" | psql nagiosxi nagiosxiBe sure to check out our Knowledgebase for helpful articles and solutions!
Re: Manage Users page SQL error
Table "public.xi_users"
Column | Type | Modifiers | Storage | Description
----------------+------------------------+------------------------------------------------------------+----------+-------------
user_id | integer | not null default nextval('xi_users_user_id_seq'::regclass) | plain |
username | character varying(64) | not null | extended |
password | character varying(64) | not null | extended |
name | character varying(64) | | extended |
email | character varying(128) | not null | extended |
backend_ticket | character varying(128) | | extended |
enabled | smallint | not null default (1)::smallint | plain |
Indexes:
"xi_users_pkey" PRIMARY KEY, btree (user_id)
"xi_users_username_key" UNIQUE, btree (username)
Has OIDs: no
Nagios XI 2024R2.2.1 (8 Servers)
Nagios Fusion 2024R1.0.2
Nagios Fusion 2024R1.0.2
Re: Manage Users page SQL error
If the system was recently upgraded, it looks like it did not finish because the new tables in the postgress database are missing causing the SQL error.
Depending on how the upgrade was run, the upgrade.log file could be in one of these 2 folders.
Can you post them?
What version of XI is this server running?
Depending on how the upgrade was run, the upgrade.log file could be in one of these 2 folders.
Code: Select all
/tmp/nagiosxi/upgrade.log
/usr/local/nagiosxi/tmp/upgrade.logWhat version of XI is this server running?
Be sure to check out our Knowledgebase for helpful articles and solutions!