the only thing I saw was the file permissions problem when seemed to happen right before you noted that the new backup should have run, but you mentioned that you fixed that.
Did new backups start getting created after making this change?
Problems with scheduled backups
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Problems with scheduled backups
Scheduled backups are still missing, unfortunately.
Re: Problems with scheduled backups
Do you think it makes sense to open a ticket?
Regards
NJ
Regards
NJ
Re: Problems with scheduled backups
For this I would say a ticket makes sense since it looks like we'll have to do some digging. Please provide a fresh profile on the ticket(ideally when the backup has failed) as well as a copy of /usr/local/nagiosxi/var/cleaner.log.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: Problems with scheduled backups
For anyone that may come across similar problems, we discovered an issue scheduled backups being deleted before they could run. This was seen by enabling sql logging in my.cnf:
general_log_file = /var/log/mysql/mysql.log
general_log = 1
just long enough to capture when a scheduled backup would run. Looking at lines containing "xi_commands" we would see the an INSERT and then DELETE of everything in xi_commands:
Query INSERT INTO xi_commands (submitter_id,command,command_data,event_time,submission_time,status_code) VALUES ('0','1117','a:2:{i:0;s:19:"nagiosxi.1529007002";i:1;s:23:"/store/backups/nagiosxi";}',NOW(),NOW(),'0')
Query DELETE FROM xi_commands WHERE processing_time < FROM_UNIXTIME(1528978202)
The fix will be available in 5.5 and will only delete scheduled jobs if there status_code is '2'(meaning complete).
general_log_file = /var/log/mysql/mysql.log
general_log = 1
just long enough to capture when a scheduled backup would run. Looking at lines containing "xi_commands" we would see the an INSERT and then DELETE of everything in xi_commands:
Query INSERT INTO xi_commands (submitter_id,command,command_data,event_time,submission_time,status_code) VALUES ('0','1117','a:2:{i:0;s:19:"nagiosxi.1529007002";i:1;s:23:"/store/backups/nagiosxi";}',NOW(),NOW(),'0')
Query DELETE FROM xi_commands WHERE processing_time < FROM_UNIXTIME(1528978202)
The fix will be available in 5.5 and will only delete scheduled jobs if there status_code is '2'(meaning complete).
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: Problems with scheduled backups
I can confirm the issue is fixed in 5.5.
Thank you.
NJ
Thank you.
NJ
Re: Problems with scheduled backups
Did you have further (related) questions or are we good to lock this up?
Former Nagios employee
Re: Problems with scheduled backups
Yes, please.
The problem is fixed.
NJ
The problem is fixed.
NJ