Page 1 of 1

Upgrade to 2012R2.8c -Error backing up MySQL database nagios

Posted: Tue Jan 28, 2014 8:28 am
by cwireless
Hi,
We have this configuration:
Red Hat Enterprise Linux Server release 5.3; 32 bit; VMWare Image of NagiosXI; No special configurations.Using Internet Explorer.

We updated to Nagios XI 2012R2.8c last week and since that day our daily backup task running from CRONTAB is sending an error message:

Code: Select all

Error backing up MySQL database 'nagios' - check the password in this script!
Backing up Core Config Manager (NagiosQL)...
Backing up Nagios Core...
Backing up Nagios XI...
Backing up MRTG...
Backing up MySQL databases...
Error backing up MySQL database 'nagios' - check the password in this script!
Backing up Core Config Manager (NagiosQL)...
Backing up Nagios Core...
Backing up Nagios XI...
Backing up MRTG...
Backing up MySQL databases...
Error backing up MySQL database 'nagios' - check the password in this script!

Code: Select all

[nagios@nagioscwp scripts]$ ls -l /usr/local/nagiosxi/html/config.inc.php
-rwxr-x--- 1 nagios nagios 5145 Jan 22 08:44 /usr/local/nagiosxi/html/config.inc.php
[nagios@nagioscwp scripts]$ ls -l /usr/local/nagiosxi/scripts/backup_xi.sh
-rwxr-xr-x 1 nagios nagios 4652 Jan 27 09:03 /usr/local/nagiosxi/scripts/backup_xi.sh
[nagios@nagioscwp scripts]$
we changed owner and permissions to backup_xi.sh
If you run the script by command line it finishes; but it does not complete when it is schedule from crontab.

Re: Upgrade to 2012R2.8c -Error backing up MySQL database na

Posted: Tue Jan 28, 2014 8:43 am
by scottwilkerson
Sorry, there was a bug in the backup script, replacement can be found here

http://support.nagios.com/forum/viewtop ... 893#p86905

Re: Upgrade to 2012R2.8c -Error backing up MySQL database na

Posted: Tue Jan 28, 2014 11:29 am
by cwireless
Thanks, that worked!!!!!!