FTP Backups retention not working

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
jacek
Posts: 255
Joined: Wed Sep 09, 2015 5:49 am

FTP Backups retention not working

Post by jacek »

Hi,

I have setup an FTP backup, which is working quite good, but the retention setting doesn't.
I checked the FTP account using WinSCP and the user has permission to delete the files.

Any clue?
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: FTP Backups retention not working

Post by npolovenko »

@jacek, What is the backup limit is currently set to in the GUI? Can you run ls -l in the directory on the FTP server where backup files are stored and show me the output? What version of XI are you currently running?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
jacek
Posts: 255
Joined: Wed Sep 09, 2015 5:49 am

Re: FTP Backups retention not working

Post by jacek »

Limit is 7, backups made daily.
At this point I have 8 or 9 already (deleted some of them few days ago).
Can't do the ls -l right now, but don't see the point in that either?
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: FTP Backups retention not working

Post by ssax »

What version of XI are you using? You can grab it from the bottom left hand side of the web interface.

Additionally, please attach this file:

Code: Select all

/usr/local/nagiosxi/var/components/scheduledbackups.log
jacek
Posts: 255
Joined: Wed Sep 09, 2015 5:49 am

Re: FTP Backups retention not working

Post by jacek »

Sorry, forgot to mention, newest version possible.
I will attach the file later.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: FTP Backups retention not working

Post by lmiltchev »

Sorry, forgot to mention, newest version possible.
I will attach the file later.
Any updates @jacek?
Be sure to check out our Knowledgebase for helpful articles and solutions!
jacek
Posts: 255
Joined: Wed Sep 09, 2015 5:49 am

Re: FTP Backups retention not working

Post by jacek »

Sorry, was off 1 day, will be at work tomorrow and will give an update.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: FTP Backups retention not working

Post by lmiltchev »

Noted. Whenever you are ready.
Be sure to check out our Knowledgebase for helpful articles and solutions!
jacek
Posts: 255
Joined: Wed Sep 09, 2015 5:49 am

Re: FTP Backups retention not working

Post by jacek »

04-04-2019 01:20:28 ERROR: Scheduled FTP Backup Failed: Local file to transfer does not exist
That is the only thing I got in the log and I forced a backup (changed the time it's supposed to happen) and it did it without any issues.
BUT it didn't delete the oldest files again and I have 10 already (screenshots attached from WinSCP FTP as the user that is setup in the scheduled backups), will delete the oldest 2 to make some space for new ones.
You do not have the required permissions to view the files attached to this post.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: FTP Backups retention not working

Post by lmiltchev »

If you had 8+ backups already, the "extra" ones (over 7) wouldn't be deleted. You had 10, and deleted two of them manually, so that leaves 8. Nagios won't delete any additional backups in this case... Try leaving only 6 backups to see if after 2 runs, the oldest (8th) backup will be removed.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked