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 - SQL Error [nagiosxi] : Unknown colu
SNMP Walk Wizard error - SQL Error [nagiosxi] : Unknown colu
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
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
It looks like part of a DB migration may not have happened properly
Can you run the following:
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.sqlRe: SNMP Walk Wizard error - SQL Error [nagiosxi] : Unknown
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)
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
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
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
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.sqlRe: SNMP Walk Wizard error - SQL Error [nagiosxi] : Unknown
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!
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
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
Great!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!
Locking