When I logged in this morning I got an email that the Nagios xi backup had failed. I went looking into the logs and found the following:
Backing up MySQL databases...
mysqldump: unknown variable 'column-statistics=0'
Error backing up MySQL database 'nagios' - check the password in this script!
So I logged in manually to the host and tried to back up. Same issue. So I went into the script and found the following section:
Code: Select all
##############################
# BACKUP DATABASES
##############################
# Some versions of mysqldump don't have to column statistics option
if mysqldump --column-statistics=0 --version &>/dev/null; then
column_option="--column-statistics=0"
else
column_option=""
fi
Then I ran mysqldump locally to see what happen and got the following:
Code: Select all
mysqldump: unknown variable 'column-statistics=0'
mysqldump Ver 10.19 Distrib 10.5.26-MariaDB, for debian-linux-gnu (x86_64)
For now I've manually removed this check and simply set column_option to "" and this works, but I'm wondering what changed and why this no longer works like it used to? Was this something changed in a recent update to the Nagios scripts? I'm not sure it's working as intended.
Thanks
James