SNMP Walk Wizard error - SQL Error [nagiosxi] : Unknown colu

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

SNMP Walk Wizard error - SQL Error [nagiosxi] : Unknown colu

Post by GldRush98 »

Seeing this error at the top of the new SNMP Walk wizard... Both prod and dev servers showing the same error.

SQL Error [nagiosxi] : Unknown column 'trapdata_parent_mib_name' in 'where clause'
snmp_walk_wizard_error.PNG
You do not have the required permissions to view the files attached to this post.
Prod XI: Debian 12 - Nagios XI 2026R1.2
Dev XI: Debian 12 - Nagios XI 2026R1.2
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: SNMP Walk Wizard error - SQL Error [nagiosxi] : Unknown

Post by scottwilkerson »

It looks like part of a DB migration may not have happened properly

Can you run the following:

Code: Select all

cd /tmp
rm -rf nagiosxi xi*
wget https://assets.nagios.com/downloads/nagiosxi/xi-latest.tar.gz
tar xzf xi-latest.tar.gz
cd /tmp/nagiosxi
psql nagiosxinagiosxi -f nagiosxi/nagiosxi-db/mods/pgsql/schema_05.sql
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
GldRush98
Posts: 259
Joined: Wed May 25, 2011 10:51 am
Location: Springfield, IL
Contact:

Re: SNMP Walk Wizard error - SQL Error [nagiosxi] : Unknown

Post by GldRush98 »

Code: Select all

[root@nagios nagiosxi]# psql nagiosxinagiosxi -f nagiosxi/nagiosxi-db/mods/pgsql/schema_05.sql
-bash: psql: command not found
[root@nagios nagiosxi]# which psql
/usr/bin/which: no psql in (/usr/local/sbin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
edit: I believe both are fully mysql systems with not postgres on them. Pretty sure I converted/upgraded them a bit ago.
Last edited by GldRush98 on Tue Sep 10, 2019 1:02 pm, edited 1 time in total.
Prod XI: Debian 12 - Nagios XI 2026R1.2
Dev XI: Debian 12 - Nagios XI 2026R1.2
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: SNMP Walk Wizard error - SQL Error [nagiosxi] : Unknown

Post by scottwilkerson »

Sorry, for some reason I thought you might have been on a older postgresql system

lets run the following if you have changes your root mysql password to somethign other than nagiosxi adjust -pnagiosxi accordingly

Code: Select all

cd /tmp/nagiosxi
mysql -pnagiosxi --database=nagiosxi --force < nagiosxi/nagiosxi-db/mods/mysql/schema_05.sql
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
GldRush98
Posts: 259
Joined: Wed May 25, 2011 10:51 am
Location: Springfield, IL
Contact:

Re: SNMP Walk Wizard error - SQL Error [nagiosxi] : Unknown

Post by GldRush98 »

Yeah, sorry I converted these to fully mysql a while back.

Ok, that command seemed to have worked, I'm not seeing that error on the config wizard screen any more. Thank you!
Prod XI: Debian 12 - Nagios XI 2026R1.2
Dev XI: Debian 12 - Nagios XI 2026R1.2
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: SNMP Walk Wizard error - SQL Error [nagiosxi] : Unknown

Post by scottwilkerson »

GldRush98 wrote:Yeah, sorry I converted these to fully mysql a while back.

Ok, that command seemed to have worked, I'm not seeing that error on the config wizard screen any more. Thank you!
Great!

Locking
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked