Page 1 of 1
backup issue
Posted: Mon Nov 26, 2012 3:17 pm
by cskang
We are experiencing ERROR during backup.
We have two separate NagiosXI server running and the ERROR message getting from them are slightly different.
In first NagiosXI server, pg_dump failed due to some sort of permission problem - see attachment 'backupERROR-pg_dump.JPG'.
In second NagiosXI server, mysqldump failed - see attachment 'backupERROR-mysqldump.JPG'.
Is there any preventive measure that we should take?
Also, what action should we take to fix the error and backup NagiosXI?
Thanks in advance.
Re: backup issue
Posted: Mon Nov 26, 2012 3:47 pm
by scottwilkerson
It looks like the system you are backing up has crashed tables in MySQL
Please run this procedure and perform the backup again
http://library.nagios.com/library/produ ... i-database
Re: backup issue
Posted: Mon Nov 26, 2012 4:28 pm
by cskang
Hi Scott,
Thanks for the prompt response.
Yes, it looks like mysql database failed on one incident.
On the other incident, it looks like that mysql back has been passed and it went on to backup PostgressQL database.
But, pg_dump failed with the following ERROR message from pg_dump:
pg_dump: SQL command failed
pg_dump: Error message from server: ERROR: permission denied for relation xi_session
pg_dump: The command was: LOCK TABLE public.xi_session IN ACCESS SHARE MODE
Could you take a look at this error?
The pdf from the URL
http://library.nagios.com/library/produ ... i-database
handles only mysql table corruption and does not have anything to clear pg_dump error.
Thx.
Re: backup issue
Posted: Mon Nov 26, 2012 5:00 pm
by scottwilkerson
Have you change postgres account information?
Can you run the following on that machine
Code: Select all
echo "vacuum;vacuum analyse;vacuum full;"|psql nagiosxi postgres
Re: backup issue
Posted: Mon Nov 26, 2012 5:24 pm
by cskang
I did not change Postgres account, but let me ask my co-workers to make sure.
For the command you ask me to try, I got the following:
[root@localhost ~]# echo "vacuum;vacuum analyse;vacuum full;"|psql nagiosxi postgres
VACUUM
VACUUM
VACUUM
[root@localhost ~]#
Re: backup issue
Posted: Tue Nov 27, 2012 10:19 am
by scottwilkerson
What version of Nagios XI are you running?
Re: backup issue
Posted: Tue Nov 27, 2012 5:35 pm
by cskang
Hi Scott,
We found the cause and we are looking into resolving it.
Thanks for the prompt support.
BTW, We are still running NagiosXI 1.7 currently.