xi 2012R1.2 error MySQL backup table 'cond_instances'

This support forum board is for support questions relating to Nagios xi, our flagship commercial network monitoring solution.
david_sloboda
Posts: 33
Joined: Mon Apr 30, 2012 1:26 pm
Location: Burnaby, Canada

xi 2012R1.2 error MySQL backup table 'cond_instances'

Post by david_sloboda »

After the upgrade to xi 2012R1.2
I see the following error in email from /root/scripts/automysqlbackup

Code: Select all

###### WARNING ######
Errors reported during AutoMySQLBackup execution.. Backup failed
Error log below..
mysqldump: Got error: 1142: SELECT,LOCK TABL command denied to user 'root'@'localhost' for table 'cond_instances' when using LOCK TABLES
The error looks similar to this forum post
http://support.nagios.com/forum/viewtop ... 39&p=32489
and this forum post
http://support.nagios.com/forum/viewtop ... 52&p=36865
However, the table name is different.

I first saw the same error with the dbase information_schema reported by other forum members.
I edited /root/scripts/automysqlbackup to exclude information_schema and that specific error went away.

The error now shows up in a second dbase named performance_schema in a table cond_instances

I have edited /root/scripts/automysqlbackup to also exclude performance_schema and I will see if that resolves the issue.

Code: Select all

# List of DBNAMES to EXLUCDE if DBNAMES are set to all (must be in " quotes)
DBEXCLUDE="information_schema performance_schema"

Code: Select all

[root@nagiosxi-dev-mtl ~]# mysql --version
mysql  Ver 14.14 Distrib 5.5.27, for Linux (x86_64) using readline 5.1
[root@nagiosxi-dev-mtl ~]#
I have read the "Repairing The Nagios xi Database" doc
http://exchange.nagios.org/directory/Do ... se/details
and run this script mentioned there
/usr/local/nagiosxi/scripts/repairmysql.sh nagios
This does not appear to have resolved the issue.

David Sloboda
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Re: xi 2012R1.2 error MySQL backup table 'cond_instances'

Post by scottwilkerson »

david_sloboda wrote: I have edited /root/scripts/automysqlbackup to also exclude performance_schema and I will see if that resolves the issue.

Code: Select all

# List of DBNAMES to EXLUCDE if DBNAMES are set to all (must be in " quotes)
DBEXCLUDE="information_schema performance_schema"
This should fix it.

performance_schema was recently added in mysql
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
david_sloboda
Posts: 33
Joined: Mon Apr 30, 2012 1:26 pm
Location: Burnaby, Canada

Re: xi 2012R1.2 error MySQL backup table 'cond_instances'

Post by david_sloboda »

All Better.

I confirm that adding performance_schema to the list of excluded databases in /root/scripts/automysqlbackup allows the mysql backup to run without error.

I am very glad to have the Forum to help diagnose and fix these issues.
Thanks!