Page 1 of 1

Backup script mysqlpass missing?

Posted: Tue Jan 28, 2014 2:40 pm
by WillemDH
Has there something changed to the backup_xi.sh script? I had a procedure how to update it after an update, but it seems I cannot find the mysqlpass that I thought was there before.

When I follow http://assets.nagios.com/downloads/nagi ... ing_XI.pdf

I can't find the mysqlpass= anymore
Tired to add it and still get
Error backing up MySQL database 'nagios' - check the password.

I can see -password=$cfg__db_info_ndoutils__pwd in the script. What is this?

Re: Backup script mysqlpass missing?

Posted: Tue Jan 28, 2014 5:28 pm
by tmcdonald
Scott addressed this in an earlier post:

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

We made some changes to the way configs are pulled in. I'm not familiar with the specifics, but it looks like your old configs should be parsed by this script and saved in config.dat.

Re: Backup script mysqlpass missing?

Posted: Wed Jan 29, 2014 3:32 am
by WillemDH
Hello,

I've been testing the attached backup script in the other thread and I can confirm it seems to be working as expected. There is no longer a password required in the backup script, which is nice.
Added my rsync logic.

Thanks. Thread can be closed.

Willem

Re: Backup script mysqlpass missing?

Posted: Wed Jan 29, 2014 8:53 am
by scottwilkerson
That was the goal of the change, unfortunately Subversion wasn't playing nice that day, and a few important lines were removed.

The fix in that patch is in the trunk and will be what is used moving forward.

Re: Backup script mysqlpass missing?

Posted: Fri Jun 05, 2015 4:52 pm
by WillemDH
This thread can be closed.