Scheduled FTP backups not copying on remote FTP server

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
jmercier
Posts: 9
Joined: Thu Aug 03, 2017 8:19 am

Scheduled FTP backups not copying on remote FTP server

Post by jmercier »

I have a problem with my scheduled FTP backup where the backup is created locally in /store/backups/nagiosxi but is not copied to my remote FTP server and is not deleted from the local nagios server.

I think the problem is there since I upgraded to 5.5.1.

All the settings seems good, I tried a Test Upload and it worked fine.

thanks for your help!
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Scheduled FTP backups not copying on remote FTP server

Post by scottwilkerson »

We believe we found a bug.

unzip and replace the 2 files attach in
/usr/local/nagiosxi/html/includes/components/scheduledbackups/scheduledbackups.inc.php
/usr/local/nagiosxi/html/includes/utils-commands.inc.php

After this these should remove the old files on the next backup
You do not have the required permissions to view the files attached to this post.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
JoeR
Posts: 4
Joined: Thu Jun 15, 2017 5:23 pm

Re: Scheduled FTP backups not copying on remote FTP server

Post by JoeR »

I have the same issue - I'm on 5.5.2. I attempted to upload the 2 files posted, and I lost the "System Backup" section. Fortunately, I was able to restore these two files. What can I do to get my scheduled backups to FTP to my remote server again.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Scheduled FTP backups not copying on remote FTP server

Post by scottwilkerson »

unzip and replace the 2 files attach to
/usr/local/nagiosxi/html/includes/components/scheduledbackups/scheduledbackups.inc.php
/usr/local/nagiosxi/html/includes/utils-commands.inc.php
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
JoeR
Posts: 4
Joined: Thu Jun 15, 2017 5:23 pm

Re: Scheduled FTP backups not copying on remote FTP server

Post by JoeR »

Which 2 zip files should I use? If from the previous post, unless you just updated them, I tried those. Once I replaced the 2 files, I lost the "System Backup" section. Please advise.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Scheduled FTP backups not copying on remote FTP server

Post by scottwilkerson »

Yes the ones above. If you try again, if you are "losing the section" can you show the output of the following while you try to load the admin area

Code: Select all

tail -f /var/log/httpd/_error_log
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
JoeR
Posts: 4
Joined: Thu Jun 15, 2017 5:23 pm

Re: Scheduled FTP backups not copying on remote FTP server

Post by JoeR »

Second attempt, it worked. This time I made sure that the permissions and attributes of the files were correct. I might have missed that last time. Thank you.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Scheduled FTP backups not copying on remote FTP server

Post by lmiltchev »

@JoeR, are the scheduled backups copying over to the remove FTP server now? Is your issue resolved?
Be sure to check out our Knowledgebase for helpful articles and solutions!
JoeR
Posts: 4
Joined: Thu Jun 15, 2017 5:23 pm

Re: Scheduled FTP backups not copying on remote FTP server

Post by JoeR »

Yes! Problem has been resolved. Thank you very much!
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Scheduled FTP backups not copying on remote FTP server

Post by scottwilkerson »

JoeR wrote:Yes! Problem has been resolved. Thank you very much!
Excellent

Locking
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked