Page 1 of 1

problem in nagios backup

Posted: Thu Oct 02, 2014 3:14 am
by hanya.radwan
hi,

after upgrade nagios to 2014R1.4 andwhen i try to backup nagios when I run backup.sh script,the backup fail, but where can I change the password:
[root@nms ~]# /usr/local/nagiosxi/scripts/backup_xi.sh
Backing up Core Config Manager (NagiosQL)...
tar: Removing leading `/' from member names
tar: Removing leading `/' from member names
Backing up Nagios Core...
tar: Removing leading `/' from member names
tar: /usr/local/nagios/var/rw/nagios.qh: socket ignored
tar: /usr/local/nagios/var/ndo.sock: socket ignored
tar: /usr/local/nagios/var: file changed as we read it
Backing up Nagios XI...
tar: Removing leading `/' from member names
Backing up MRTG...
tar: Removing leading `/' from member names
Backing up MySQL databases...
mysqldump: Got error: 144: Table './nagios/nagios_statehistory' is marked as crashed and last (automatic?) repair failed when using LOCK TABLES
Error backing up MySQL database 'nagios' - check the password in this script!
You have new mail in /var/spool/mail/root
[root@nms ~]#

Re: problem in nagios backup

Posted: Thu Oct 02, 2014 10:07 am
by slansing
I believe that is just a generic error that is thrown out, lets first try to fix your crashed tables by running:

Code: Select all

/usr/local/nagiosxi/scripts/repair_databases.sh
Then try to run the backup again.

Re: problem in nagios backup

Posted: Mon Oct 13, 2014 3:15 am
by hanya.radwan
the packup succeed.

Re: problem in nagios backup

Posted: Mon Oct 13, 2014 9:26 am
by tmcdonald
Can we close the topic now?

Re: problem in nagios backup

Posted: Wed Oct 15, 2014 5:49 am
by hanya.radwan
I don't have privileges to close

Re: problem in nagios backup

Posted: Wed Oct 15, 2014 8:52 am
by tmcdonald
I know, we handle the closing - I just wanted to make sure we weren't closing it before you were ready to do so.