Scheduled FTP/SCP Backups Not Working

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
luczynj
Posts: 88
Joined: Wed Dec 03, 2014 6:47 pm

Scheduled FTP/SCP Backups Not Working

Post by luczynj »

Hello all,

I have an issue with my Nagios XI (5.7.2) systems where scheduled backups are not being FTP'd or SCP'd to my remote host.

The login and upload tests work:
Connection established. Username/Password OK.
Test file "ftp_test_upload.txt" uploaded successfully.

Here's my crontab:
[root@nagios-b nagiosxi]# crontab -l | grep backup
30 02 * * * /usr/local/nagiosxi/scripts/backup_xi.sh >> /dev/null 2>&1
30 01 * * * find /logs/store/backups/ -type f -mtime +60 -exec rm {} \;
30 01 * * * find /logs/store/backups/ -type f -name "nagiosxi*.tar.gz" -mtime +10 -exec rm {} \;

Here's a list of local backups (run from cron at 02:30):

3030288 -rw-r--r-- 1 nagios nagios 3103010315 Jun 4 03:30 1622773801.tar.gz
3034796 -rw-r--r-- 1 nagios nagios 3107625190 Jun 5 03:33 1622860201.tar.gz
3032644 -rw-r--r-- 1 nagios nagios 3105419471 Jun 6 03:33 1622946601.tar.gz
3019912 -rw-r--r-- 1 nagios nagios 3092383330 Jun 7 03:33 1623033001.tar.gz
3029952 -rw-r--r-- 1 nagios nagios 3102666217 Jun 8 03:33 1623119401.tar.gz
3038840 -rw-r--r-- 1 nagios nagios 3111764995 Jun 9 03:32 1623205801.tar.gz
3049060 -rw-r--r-- 1 nagios nagios 3122231562 Jun 10 03:31 1623292201.tar.gz
3051624 -rw-r--r-- 1 nagios nagios 3124858570 Jun 11 03:32 1623378601.tar.gz
3054892 -rw-r--r-- 1 nagios nagios 3128204825 Jun 12 03:32 1623465001.tar.gz
3047632 -rw-r--r-- 1 nagios nagios 3120770378 Jun 13 03:32 1623551401.tar.gz
3034764 -rw-r--r-- 1 nagios nagios 3107590703 Jun 14 03:29 1623637801.tar.gz
3042788 -rw-r--r-- 1 nagios nagios 3115808028 Jun 15 03:28 1623724201.tar.gz
3057828 -rw-r--r-- 1 nagios nagios 3131209455 Jun 16 03:32 1623810601.tar.gz
3066440 -rw-r--r-- 1 nagios nagios 3140027889 Jun 17 03:30 1623897001.tar.gz
3068464 -rw-r--r-- 1 nagios nagios 3142102619 Jun 18 03:30 1623983401.tar.gz
3070344 -rw-r--r-- 1 nagios nagios 3144028020 Jun 19 03:31 1624069801.tar.gz
3061092 -rw-r--r-- 1 nagios nagios 3134553974 Jun 20 03:33 1624156201.tar.gz
3051320 -rw-r--r-- 1 nagios nagios 3124543504 Jun 21 03:32 1624242601.tar.gz
3058452 -rw-r--r-- 1 nagios nagios 3131850059 Jun 22 03:36 1624329001.tar.gz


Here are the past 10 days of the backups that are meant to be xferred via FTP/SCP to my backup host:

[root@nagios-b nagiosxi]# ls -lsart | grep nagiosxi
3053136 -rw-r--r-- 1 nagios nagios 3126405832 Jun 11 17:23 nagiosxi.1623428402.tar.gz
3049008 -rw-r--r-- 1 nagios nagios 3122179481 Jun 12 17:28 nagiosxi.1623514802.tar.gz
3038836 -rw-r--r-- 1 nagios nagios 3111761445 Jun 13 17:17 nagiosxi.1623601202.tar.gz
3041676 -rw-r--r-- 1 nagios nagios 3114669994 Jun 14 17:18 nagiosxi.1623687602.tar.gz
3054312 -rw-r--r-- 1 nagios nagios 3127610330 Jun 15 17:18 nagiosxi.1623774001.tar.gz
3063216 -rw-r--r-- 1 nagios nagios 3136726148 Jun 16 17:17 nagiosxi.1623860401.tar.gz
3066064 -rw-r--r-- 1 nagios nagios 3139643271 Jun 17 17:17 nagiosxi.1623946801.tar.gz
3069184 -rw-r--r-- 1 nagios nagios 3142837917 Jun 18 17:18 nagiosxi.1624033202.tar.gz
3064432 -rw-r--r-- 1 nagios nagios 3137972309 Jun 19 17:19 nagiosxi.1624119603.tar.gz
3054984 -rw-r--r-- 1 nagios nagios 3128295614 Jun 20 17:19 nagiosxi.1624206001.tar.gz
3059108 -rw-r--r-- 1 nagios nagios 3132518583 Jun 21 17:27 nagiosxi.1624292401.tar.gz
3070060 -rw-r--r-- 1 nagios nagios 3143735806 Jun 22 17:22 nagiosxi.1624378802.tar.gz

Any help would be appreciated.

Regards,
JLu
gsmith
Posts: 1253
Joined: Tue Mar 02, 2021 11:15 am

Re: Scheduled FTP/SCP Backups Not Working

Post by gsmith »

Hi

Could you please send me your /usr/local/nagiosxi/var/components/scheduledbackups.log

Thanks
luczynj
Posts: 88
Joined: Wed Dec 03, 2014 6:47 pm

Re: Scheduled FTP/SCP Backups Not Working

Post by luczynj »

Hello.

Thanks for your quick response. Here it is:

[root@nagios-b components]# more scheduledbackups.log
07-26-2020 15:18:02 ERROR: Scheduled SSH Backup Failed: Could not authenticate using password on SSH server
07-27-2020 15:18:02 ERROR: Scheduled SSH Backup Failed: Could not authenticate using password on SSH server
07-28-2020 15:18:02 ERROR: Scheduled SSH Backup Failed: Could not authenticate using password on SSH server
07-29-2020 15:18:03 ERROR: Scheduled SSH Backup Failed: Could not authenticate using password on SSH server
07-30-2020 15:18:03 ERROR: Scheduled SSH Backup Failed: Could not authenticate using password on SSH server
07-31-2020 15:18:02 ERROR: Scheduled SSH Backup Failed: Could not authenticate using password on SSH server
08-01-2020 15:18:02 ERROR: Scheduled SSH Backup Failed: Could not authenticate using password on SSH server
08-02-2020 15:18:02 ERROR: Scheduled SSH Backup Failed: Could not authenticate using password on SSH server
08-03-2020 15:18:02 ERROR: Scheduled SSH Backup Failed: Could not authenticate using password on SSH server
08-04-2020 15:18:02 ERROR: Scheduled SSH Backup Failed: Could not authenticate using password on SSH server
08-05-2020 15:18:02 ERROR: Scheduled SSH Backup Failed: Could not authenticate using password on SSH server
08-06-2020 15:18:03 ERROR: Scheduled SSH Backup Failed: Could not authenticate using password on SSH server
08-07-2020 15:18:02 ERROR: Scheduled SSH Backup Failed: Could not authenticate using password on SSH server
08-08-2020 15:18:02 ERROR: Scheduled SSH Backup Failed: Could not authenticate using password on SSH server
08-09-2020 15:18:02 ERROR: Scheduled SSH Backup Failed: Could not authenticate using password on SSH server
08-10-2020 15:18:03 ERROR: Scheduled SSH Backup Failed: Could not authenticate using password on SSH server
08-11-2020 15:18:03 ERROR: Scheduled SSH Backup Failed: Could not authenticate using password on SSH server
08-12-2020 15:18:03 ERROR: Scheduled SSH Backup Failed: Could not authenticate using password on SSH server
08-13-2020 15:18:04 ERROR: Scheduled SSH Backup Failed: Could not authenticate using password on SSH server
08-14-2020 15:18:03 ERROR: Scheduled SSH Backup Failed: Could not authenticate using password on SSH server
08-15-2020 15:18:03 ERROR: Scheduled SSH Backup Failed: Could not authenticate using password on SSH server
08-16-2020 15:18:02 ERROR: Scheduled SSH Backup Failed: Could not authenticate using password on SSH server
08-17-2020 15:18:03 ERROR: Scheduled SSH Backup Failed: Could not authenticate using password on SSH server
08-18-2020 15:18:03 ERROR: Scheduled SSH Backup Failed: Could not authenticate using password on SSH server
08-19-2020 15:18:03 ERROR: Scheduled SSH Backup Failed: Could not authenticate using password on SSH server
08-20-2020 15:18:03 ERROR: Scheduled SSH Backup Failed: Could not authenticate using password on SSH server
08-21-2020 15:18:02 ERROR: Scheduled SSH Backup Failed: Could not authenticate using password on SSH server
08-22-2020 15:18:03 ERROR: Scheduled SSH Backup Failed: Could not authenticate using password on SSH server
08-23-2020 15:18:03 ERROR: Scheduled SSH Backup Failed: Could not authenticate using password on SSH server
08-24-2020 15:18:02 ERROR: Scheduled SSH Backup Failed: Could not authenticate using password on SSH server
08-25-2020 15:18:02 ERROR: Scheduled SSH Backup Failed: Could not authenticate using password on SSH server
08-26-2020 15:18:03 ERROR: Scheduled SSH Backup Failed: Could not authenticate using password on SSH server
08-27-2020 15:18:02 ERROR: Scheduled SSH Backup Failed: Could not authenticate using password on SSH server
08-28-2020 15:18:02 ERROR: Scheduled SSH Backup Failed: Could not authenticate using password on SSH server
08-29-2020 15:18:02 ERROR: Scheduled SSH Backup Failed: Could not authenticate using password on SSH server
08-30-2020 15:18:03 ERROR: Scheduled SSH Backup Failed: Could not authenticate using password on SSH server
08-31-2020 15:18:04 ERROR: Scheduled SSH Backup Failed: Could not authenticate using password on SSH server
09-01-2020 15:18:02 ERROR: Scheduled SSH Backup Failed: Could not authenticate using password on SSH server
09-02-2020 15:18:02 ERROR: Scheduled SSH Backup Failed: Could not authenticate using password on SSH server
09-03-2020 15:18:03 ERROR: Scheduled SSH Backup Failed: Could not authenticate using password on SSH server
09-04-2020 15:18:02 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
09-05-2020 15:18:02 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
09-06-2020 15:18:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
09-07-2020 15:18:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
09-08-2020 15:18:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
09-09-2020 15:18:02 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
09-09-2020 23:50:02 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
09-10-2020 23:50:02 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
09-11-2020 23:50:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
09-12-2020 23:50:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
09-13-2020 23:50:02 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
09-14-2020 23:50:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
09-15-2020 23:50:02 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
09-16-2020 23:50:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
09-17-2020 23:50:02 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
09-18-2020 23:50:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
09-19-2020 23:50:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
09-20-2020 23:50:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
09-21-2020 23:50:02 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
09-22-2020 23:50:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
09-23-2020 23:50:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
09-24-2020 23:50:02 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
09-25-2020 23:50:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
09-26-2020 23:50:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
09-27-2020 23:50:02 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
09-28-2020 23:50:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
09-29-2020 23:50:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
09-30-2020 23:50:02 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
10-01-2020 23:50:02 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
10-02-2020 23:50:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
10-03-2020 23:50:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
10-04-2020 23:50:02 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
10-05-2020 23:50:02 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
10-06-2020 23:50:02 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
10-07-2020 23:50:02 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
10-08-2020 23:50:02 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
10-09-2020 23:50:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
10-10-2020 23:50:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
10-11-2020 23:50:02 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
10-12-2020 23:50:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
10-14-2020 13:50:04 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
10-15-2020 13:50:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
10-16-2020 13:50:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
10-17-2020 13:50:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
10-18-2020 13:50:02 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
10-19-2020 13:50:02 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
10-20-2020 13:50:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
10-21-2020 13:50:02 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
10-22-2020 13:50:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
10-23-2020 13:50:02 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
10-24-2020 13:50:02 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
10-25-2020 13:50:02 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
10-26-2020 13:50:02 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
10-27-2020 13:50:02 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
10-28-2020 13:50:02 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
10-29-2020 13:50:02 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
10-30-2020 13:50:02 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
10-31-2020 13:50:02 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
11-01-2020 13:50:02 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
11-02-2020 13:50:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
11-03-2020 13:50:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
11-04-2020 13:50:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
11-05-2020 13:50:02 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
11-06-2020 13:50:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
11-07-2020 13:50:02 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
11-08-2020 13:50:02 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
11-08-2020 22:20:02 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
11-09-2020 22:20:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
11-10-2020 22:20:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
11-11-2020 22:20:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
11-12-2020 23:20:02 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
11-13-2020 23:20:02 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
11-14-2020 23:20:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
11-15-2020 23:20:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
11-17-2020 17:59:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
11-18-2020 17:59:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
11-19-2020 17:59:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
11-20-2020 17:59:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
11-21-2020 17:59:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
11-22-2020 17:59:02 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
11-23-2020 17:59:02 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
11-24-2020 17:59:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
11-25-2020 17:59:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
11-26-2020 17:59:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
11-27-2020 17:59:02 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
11-28-2020 17:59:02 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
11-29-2020 17:59:02 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
11-30-2020 17:59:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
12-01-2020 17:59:02 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
12-02-2020 17:59:02 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
12-03-2020 17:59:02 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
12-04-2020 17:59:02 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
12-05-2020 17:59:02 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
12-06-2020 17:59:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
12-07-2020 18:05:02 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
12-08-2020 18:05:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
12-09-2020 18:05:02 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
12-10-2020 18:05:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
12-11-2020 18:05:02 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
12-12-2020 18:05:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
12-13-2020 18:05:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
12-14-2020 18:05:02 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
12-15-2020 18:05:02 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
12-16-2020 18:05:02 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
12-17-2020 18:05:02 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
12-18-2020 18:05:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
12-19-2020 18:05:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
12-20-2020 02:05:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
12-21-2020 02:05:02 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
12-22-2020 02:05:02 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
12-23-2020 02:05:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
12-24-2020 02:05:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
12-25-2020 02:05:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
12-26-2020 02:05:02 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
12-27-2020 02:05:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
12-28-2020 02:05:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
12-29-2020 02:05:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
12-30-2020 02:05:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
12-31-2020 02:05:02 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
01-01-2021 02:05:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
01-02-2021 02:05:03 ERROR: Scheduled SSH Backup Failed: File was not transferred successfully
01-03-2021 02:05:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
01-04-2021 02:05:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
01-05-2021 02:05:02 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
01-06-2021 02:05:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
01-07-2021 02:05:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
01-08-2021 02:05:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
01-09-2021 02:05:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
01-10-2021 02:05:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
01-11-2021 02:05:02 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
01-12-2021 02:05:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
01-13-2021 02:05:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
01-14-2021 02:05:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
01-15-2021 02:05:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
01-16-2021 02:05:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
01-17-2021 02:05:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
01-18-2021 02:05:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
01-19-2021 02:05:02 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
01-20-2021 02:05:02 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
01-21-2021 02:05:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
01-22-2021 02:05:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
01-23-2021 02:05:02 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
01-24-2021 02:05:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
01-25-2021 02:05:02 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
01-26-2021 02:05:02 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
01-27-2021 02:05:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
01-28-2021 02:05:02 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
01-29-2021 02:05:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
01-30-2021 02:05:02 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
01-31-2021 02:05:02 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
02-01-2021 02:05:02 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
02-02-2021 02:05:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
02-03-2021 02:05:02 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
02-04-2021 02:05:02 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
02-05-2021 02:05:02 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
02-06-2021 02:05:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
02-07-2021 02:05:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
02-08-2021 02:05:02 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
02-09-2021 02:05:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
02-10-2021 02:05:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
02-11-2021 02:05:02 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
02-12-2021 02:05:02 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
02-13-2021 02:05:02 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
02-14-2021 02:05:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
02-15-2021 02:05:02 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
02-16-2021 02:05:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
02-17-2021 02:05:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
02-18-2021 02:05:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
02-19-2021 02:05:02 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
02-20-2021 02:05:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
02-21-2021 02:05:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
02-22-2021 02:05:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
02-23-2021 02:05:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
02-24-2021 02:05:02 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
02-25-2021 02:05:02 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
02-26-2021 02:05:02 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
02-27-2021 02:05:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
02-28-2021 02:05:02 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
03-01-2021 02:05:02 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
03-02-2021 02:05:02 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
03-03-2021 02:05:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
03-04-2021 02:05:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
03-05-2021 02:05:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
03-06-2021 02:05:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
03-07-2021 02:05:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
03-08-2021 02:05:02 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
03-09-2021 02:05:02 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
03-10-2021 02:05:02 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
03-11-2021 02:05:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
03-12-2021 02:05:02 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
03-13-2021 02:05:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
03-14-2021 02:05:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
03-15-2021 02:05:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
03-16-2021 02:05:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
03-17-2021 02:05:02 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
03-18-2021 02:05:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
03-19-2021 02:05:02 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
03-20-2021 02:05:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
03-21-2021 02:05:02 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
03-22-2021 02:05:02 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
03-23-2021 02:05:02 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
03-24-2021 02:05:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
03-25-2021 02:05:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
03-26-2021 02:05:02 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
03-27-2021 02:05:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
03-28-2021 02:05:02 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
03-29-2021 02:05:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
03-30-2021 02:05:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
03-31-2021 02:05:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
04-01-2021 02:05:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
04-02-2021 02:05:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
04-03-2021 02:05:02 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
04-04-2021 02:05:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
04-05-2021 02:05:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
04-06-2021 02:05:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
04-07-2021 02:05:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
04-08-2021 02:05:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
04-09-2021 02:05:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
04-10-2021 02:05:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
04-11-2021 02:05:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
04-12-2021 02:05:02 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
04-13-2021 02:05:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
04-14-2021 02:05:02 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
04-15-2021 02:05:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
04-16-2021 02:05:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
04-17-2021 02:05:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
04-18-2021 02:05:02 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
04-19-2021 02:05:02 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
04-20-2021 02:05:02 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
04-21-2021 02:05:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
04-22-2021 02:05:02 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
04-23-2021 02:05:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
04-24-2021 02:05:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
04-25-2021 02:05:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
04-26-2021 02:05:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
04-27-2021 02:05:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
04-28-2021 02:05:02 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
04-29-2021 02:05:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
04-30-2021 02:05:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
05-01-2021 02:05:02 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
05-02-2021 02:05:02 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
05-03-2021 02:05:02 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
05-04-2021 02:05:02 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
05-05-2021 02:05:02 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
05-06-2021 02:05:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
05-07-2021 02:05:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
05-08-2021 02:05:02 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
05-09-2021 02:05:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
05-10-2021 02:05:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
05-11-2021 02:05:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
05-12-2021 02:05:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
05-13-2021 02:05:02 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
05-14-2021 02:05:02 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
05-15-2021 02:05:02 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
05-16-2021 02:05:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
05-17-2021 02:05:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
05-18-2021 02:05:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
05-19-2021 02:05:02 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
05-20-2021 02:05:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
05-21-2021 02:05:02 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
05-22-2021 02:05:02 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
05-23-2021 02:05:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
05-24-2021 02:05:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
05-25-2021 02:05:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
05-26-2021 02:05:02 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
05-27-2021 02:05:02 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
05-28-2021 02:05:02 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
05-29-2021 02:05:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
05-30-2021 02:05:02 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
05-31-2021 02:05:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
06-01-2021 02:05:02 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
06-02-2021 02:05:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
06-03-2021 02:05:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
06-03-2021 14:25:02 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
06-03-2021 16:40:02 ERROR: Scheduled FTP Backup Failed: Local file to transfer does not exist
06-04-2021 16:40:03 ERROR: Scheduled FTP Backup Failed: Local file to transfer does not exist
06-05-2021 16:40:02 ERROR: Scheduled FTP Backup Failed: Local file to transfer does not exist
06-06-2021 16:40:03 ERROR: Scheduled FTP Backup Failed: Local file to transfer does not exist
06-07-2021 16:40:03 ERROR: Scheduled FTP Backup Failed: Local file to transfer does not exist
06-08-2021 16:40:02 ERROR: Scheduled FTP Backup Failed: Local file to transfer does not exist
06-09-2021 16:40:02 ERROR: Scheduled FTP Backup Failed: Local file to transfer does not exist
06-10-2021 16:40:03 ERROR: Scheduled FTP Backup Failed: Local file to transfer does not exist
06-11-2021 16:40:03 ERROR: Scheduled FTP Backup Failed: Local file to transfer does not exist
06-12-2021 16:40:03 ERROR: Scheduled FTP Backup Failed: Local file to transfer does not exist
06-13-2021 16:40:03 ERROR: Scheduled FTP Backup Failed: Local file to transfer does not exist
06-14-2021 16:40:03 ERROR: Scheduled FTP Backup Failed: Local file to transfer does not exist
06-15-2021 16:40:03 ERROR: Scheduled FTP Backup Failed: Local file to transfer does not exist
06-16-2021 16:40:03 ERROR: Scheduled FTP Backup Failed: Local file to transfer does not exist
06-17-2021 16:40:02 ERROR: Scheduled FTP Backup Failed: Local file to transfer does not exist
06-18-2021 16:40:03 ERROR: Scheduled FTP Backup Failed: Local file to transfer does not exist
06-19-2021 16:40:04 ERROR: Scheduled FTP Backup Failed: Local file to transfer does not exist
06-20-2021 16:40:02 ERROR: Scheduled FTP Backup Failed: Local file to transfer does not exist
06-21-2021 16:40:02 ERROR: Scheduled FTP Backup Failed: Local file to transfer does not exist
06-22-2021 16:40:03 ERROR: Scheduled FTP Backup Failed: Local file to transfer does not exist
06-23-2021 16:40:02 ERROR: Scheduled FTP Backup Failed: Local file to transfer does not exist


Thanks,
JLu
gsmith
Posts: 1253
Joined: Tue Mar 02, 2021 11:15 am

Re: Scheduled FTP/SCP Backups Not Working

Post by gsmith »

Hi,

The /usr/local/nagiosxi/scripts/backup_xi.sh should be storing the backups in /store/backups/nagiosxi.

But your cron entries show you are looking to delete old files from:
find /logs/store/backups/ -type f -mtime +60 -exec rm {} \;

Did you modify the /usr/local/nagiosxi/scripts/backup_xi.sh script to store the backups in /logs/store/backups/ ?

please do:

Code: Select all

ls -l /store/backups/nagiosxi
ls -l /logs/store/backups
and let me know where the files are. If both of those directories are empty then run:

Code: Select all

/usr/local/nagiosxi/scripts/backup_xi.sh
followed by:

Code: Select all

ls -l /store/backups/nagiosxi
ls -l /logs/store/backups
Let me know what you find out please.

Thanks
luczynj
Posts: 88
Joined: Wed Dec 03, 2014 6:47 pm

Re: Scheduled FTP/SCP Backups Not Working

Post by luczynj »

Hello.

As requested:

We didn't modify the provided nagios backup script. However, we have added symbolic links to the the backup directory.

0 lrwxrwxrwx 1 root root 12 May 22 2020 /store -> /logs/store/

[root@nagios-p nagiosxi]# ls -l /store/backups/nagiosxi
total 181576580
-rw-r--r-- 1 nagios nagios 3042997255 May 25 03:21 1621909801.tar.gz
-rw-r--r-- 1 nagios nagios 3055181496 May 26 03:24 1621996201.tar.gz
-rw-r--r-- 1 nagios nagios 3062975774 May 27 03:21 1622082601.tar.gz
-rw-r--r-- 1 nagios nagios 3064792115 May 28 03:20 1622169001.tar.gz
-rw-r--r-- 1 nagios nagios 3070526264 May 29 03:19 1622255401.tar.gz
-rw-r--r-- 1 nagios nagios 3066011566 May 30 03:20 1622341801.tar.gz
-rw-r--r-- 1 nagios nagios 3055934578 May 31 03:27 1622428201.tar.gz
-rw-r--r-- 1 nagios nagios 3061543538 Jun 1 03:27 1622514601.tar.gz
-rw-r--r-- 1 nagios nagios 3073629511 Jun 2 03:27 1622601001.tar.gz
-rw-r--r-- 1 nagios nagios 3081405283 Jun 3 03:26 1622687401.tar.gz
-rw-r--r-- 1 nagios nagios 3083056148 Jun 4 03:24 1622773802.tar.gz
-rw-r--r-- 1 nagios nagios 3084390737 Jun 5 03:21 1622860201.tar.gz
-rw-r--r-- 1 nagios nagios 3080030421 Jun 6 03:23 1622946601.tar.gz
-rw-r--r-- 1 nagios nagios 3070738536 Jun 7 03:22 1623033001.tar.gz
-rw-r--r-- 1 nagios nagios 3076659074 Jun 8 03:19 1623119401.tar.gz
-rw-r--r-- 1 nagios nagios 3087520478 Jun 9 03:17 1623205801.tar.gz
-rw-r--r-- 1 nagios nagios 2727060716 Jun 10 03:18 1623292201.tar.gz
-rw-r--r-- 1 nagios nagios 2731295508 Jun 11 03:16 1623378601.tar.gz
-rw-r--r-- 1 nagios nagios 2735060202 Jun 12 03:16 1623465001.tar.gz
-rw-r--r-- 1 nagios nagios 2729158852 Jun 13 03:25 1623551402.tar.gz
-rw-r--r-- 1 nagios nagios 2718446408 Jun 14 03:17 1623637801.tar.gz
-rw-r--r-- 1 nagios nagios 2725705964 Jun 15 03:17 1623724201.tar.gz
-rw-r--r-- 1 nagios nagios 2737368218 Jun 16 03:18 1623810601.tar.gz
-rw-r--r-- 1 nagios nagios 2745225627 Jun 17 03:15 1623897001.tar.gz
-rw-r--r-- 1 nagios nagios 2747749495 Jun 18 03:17 1623983401.tar.gz
-rw-r--r-- 1 nagios nagios 2751114232 Jun 19 03:17 1624069801.tar.gz
-rw-r--r-- 1 nagios nagios 2743213697 Jun 20 03:18 1624156201.tar.gz
-rw-r--r-- 1 nagios nagios 2733615073 Jun 21 03:17 1624242601.tar.gz
-rw-r--r-- 1 nagios nagios 2739676900 Jun 22 03:18 1624329001.tar.gz
-rw-r--r-- 1 nagios nagios 2751409550 Jun 23 03:17 1624415401.tar.gz
-rw-r--r-- 1 nagios nagios 2759239555 Jun 24 03:18 1624501801.tar.gz
-rw-r--r-- 1 nagios nagios 2762397617 Jun 25 03:21 1624588201.tar.gz
-rw-r--r-- 1 nagios nagios 3055965470 May 25 23:25 nagiosxi.1621981801.tar.gz
-rw-r--r-- 1 nagios nagios 3062939316 May 26 23:29 nagiosxi.1622068201.tar.gz
-rw-r--r-- 1 nagios nagios 3065722732 May 27 23:19 nagiosxi.1622154602.tar.gz
-rw-r--r-- 1 nagios nagios 3070007938 May 28 23:21 nagiosxi.1622241001.tar.gz
-rw-r--r-- 1 nagios nagios 3066407933 May 29 23:25 nagiosxi.1622327401.tar.gz
-rw-r--r-- 1 nagios nagios 3056388164 May 30 23:28 nagiosxi.1622413801.tar.gz
-rw-r--r-- 1 nagios nagios 3059875997 May 31 23:28 nagiosxi.1622500201.tar.gz
-rw-r--r-- 1 nagios nagios 3072056941 Jun 1 23:26 nagiosxi.1622586601.tar.gz
-rw-r--r-- 1 nagios nagios 3080422058 Jun 2 23:27 nagiosxi.1622673001.tar.gz
-rw-r--r-- 1 nagios nagios 3083027715 Jun 3 15:01 nagiosxi.1622729401.tar.gz
-rw-r--r-- 1 nagios nagios 3083092219 Jun 3 17:14 nagiosxi.1622737201.tar.gz
-rw-r--r-- 1 nagios nagios 3086570699 Jun 4 17:12 nagiosxi.1622823602.tar.gz
-rw-r--r-- 1 nagios nagios 3081639528 Jun 5 17:12 nagiosxi.1622910001.tar.gz
-rw-r--r-- 1 nagios nagios 3071202047 Jun 6 17:13 nagiosxi.1622996401.tar.gz
-rw-r--r-- 1 nagios nagios 3073805237 Jun 7 17:12 nagiosxi.1623082801.tar.gz
-rw-r--r-- 1 nagios nagios 3084718513 Jun 8 17:12 nagiosxi.1623169201.tar.gz
-rw-r--r-- 1 nagios nagios 2725235945 Jun 9 17:12 nagiosxi.1623255601.tar.gz
-rw-r--r-- 1 nagios nagios 2729678920 Jun 10 17:08 nagiosxi.1623342002.tar.gz
-rw-r--r-- 1 nagios nagios 2734537736 Jun 11 17:13 nagiosxi.1623428402.tar.gz
-rw-r--r-- 1 nagios nagios 2730340379 Jun 12 17:12 nagiosxi.1623514801.tar.gz
-rw-r--r-- 1 nagios nagios 2720300344 Jun 13 17:11 nagiosxi.1623601202.tar.gz
-rw-r--r-- 1 nagios nagios 2723490176 Jun 14 17:11 nagiosxi.1623687602.tar.gz
-rw-r--r-- 1 nagios nagios 2734513336 Jun 15 17:12 nagiosxi.1623774002.tar.gz
-rw-r--r-- 1 nagios nagios 2743776265 Jun 16 17:09 nagiosxi.1623860402.tar.gz
-rw-r--r-- 1 nagios nagios 2746882281 Jun 17 17:11 nagiosxi.1623946801.tar.gz
-rw-r--r-- 1 nagios nagios 2750204683 Jun 18 17:13 nagiosxi.1624033201.tar.gz
-rw-r--r-- 1 nagios nagios 2744690288 Jun 19 17:11 nagiosxi.1624119602.tar.gz
-rw-r--r-- 1 nagios nagios 2735611992 Jun 20 17:11 nagiosxi.1624206001.tar.gz
-rw-r--r-- 1 nagios nagios 2737677602 Jun 21 17:14 nagiosxi.1624292402.tar.gz
-rw-r--r-- 1 nagios nagios 2748087923 Jun 22 17:13 nagiosxi.1624378801.tar.gz
-rw-r--r-- 1 nagios nagios 2757968691 Jun 23 17:13 nagiosxi.1624465201.tar.gz
-rw-r--r-- 1 nagios nagios 2762045214 Jun 24 17:12 nagiosxi.1624551602.tar.gz

[root@nagios-p nagiosxi]# ls -l /logs/store/backups
total 16
drwxr-xr-x. 5 root root 4096 Jun 25 07:00 mysql
drwxr-xr-x. 2 nagios nagios 4096 Jun 25 03:21 nagiosxi
drwxr-xr-x 2 root root 4096 Jan 22 2020 nagvis
drwxrwxrwx 94 root root 4096 Jan 29 20:24 SBC
gsmith
Posts: 1253
Joined: Tue Mar 02, 2021 11:15 am

Re: Scheduled FTP/SCP Backups Not Working

Post by gsmith »

Hi

Please run these and let me know the results:

Code: Select all

time /usr/local/nagiosxi/scripts/backup_xi.sh
df -h /store/backups/nagiosxi
Thanks
luczynj
Posts: 88
Joined: Wed Dec 03, 2014 6:47 pm

Re: Scheduled FTP/SCP Backups Not Working

Post by luczynj »

Hello,

Here's the output:

[root@nagios-p ~]# time /usr/local/nagiosxi/scripts/backup_xi.sh
Stopping nagios: .done.
Starting nagios: done.
Backing up Nagios Core...
tar: Removing leading `/' from member names
tar: /usr/local/nagios/share/perfdata/GSIP-MBI-SBC1: file changed as we read it
tar: /usr/local/nagios/share/perfdata/GSIP-MEX-SBC2: file changed as we read it

tar: /usr/local/nagios/share/perfdata/GSIP-HKHH-SBC4: file changed as we read it
tar: /usr/local/nagios/share/perfdata/GSIP-NUT-SBC1: file changed as we read it
tar: /usr/local/nagios/share/perfdata/NOAS-IC-AMH-EU-RTR02: file changed as we read it
tar: /usr/local/nagios/share/perfdata/GSIP-CHC-SBC9: file changed as we read it
tar: /usr/local/nagios/share/perfdata/GMV_TES_LGS/SWZUAMI-SWZUAMO_ERLANG.rrd: file changed as we read it
tar: /usr/local/nagios/share/perfdata/GMV_TES_LGS: file changed as we read it
tar: /usr/local/nagios/share/perfdata/GSIP-SYT-SBC1: file changed as we read it
tar: /usr/local/nagios/share/perfdata/GSIP-DUB-SBC1: file changed as we read it
tar: /usr/local/nagios/share/perfdata/NOAS-CSG-AMH-EU-SMP01: file changed as we read it
tar: /usr/local/nagios/share/perfdata/GSIP-FFT-SBC6: file changed as we read it
tar: /usr/local/nagios/share/perfdata/GSIP-SGP-SBC3: file changed as we read it
tar: /usr/local/nagios/share/perfdata/GSIP-MEX-SBC1/SBC1-MEX-AM_App2.oscs-hp1.mbi-am-redirect_1.rrd: file changed as we read it
tar: /usr/local/nagios/share/perfdata/GSIP-MEX-SBC1/SBC1-MEX-AM_App1.oscs-hp1.mbi-am-redirect_0.rrd: file changed as we read it
tar: /usr/local/nagios/share/perfdata/GSIP-MEX-SBC1: file changed as we read it
tar: /usr/local/nagios/share/perfdata/GSIP-ROT-SBC4: file changed as we read it
tar: /usr/local/nagios/share/perfdata/NOAS-IC-AMHUFE02: file changed as we read it
tar: /usr/local/nagios/share/perfdata/GSIP-NUT-SBC2: file changed as we read it
tar: /usr/local/nagios/var/rw/nagios.qh: socket ignored
tar: /usr/local/nagios/var: file changed as we read it
Copying ramdisk configuration...
Backing up Nagios XI...
tar: Removing leading `/' from member names
tar: /usr/local/nagiosxi/var/sysstat.log: file changed as we read it
Backing up MRTG...
tar: Removing leading `/' from member names
Backing up the SNMP directories
tar: Removing leading `/' from member names
tar: Removing leading `/' from member names
Backing up NRDP...
tar: Removing leading `/' from member names
Backing up Nagvis...
tar: Removing leading `/' from member names
Backing up nagios user home dir...
tar: Removing leading `/' from member names
Backing up MySQL databases...

Backing up cronjobs for Apache...
Backing up logrotate config files...
Backing up Apache config files...
Compressing backup...

===============
BACKUP COMPLETE
===============
Backup stored in /store/backups/nagiosxi/1624635106.tar.gz

real 58m44.278s
user 13m53.323s
sys 1m22.978s


[root@nagios-p ~]# df -h /store/backups/nagiosxi
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg_nagiosp2-lv_logs
289G 202G 73G 74% /logs
luczynj
Posts: 88
Joined: Wed Dec 03, 2014 6:47 pm

Re: Scheduled FTP/SCP Backups Not Working

Post by luczynj »

Followup question: These backups have grown to 3GB! Is there a way to trim it down?
gsmith
Posts: 1253
Joined: Tue Mar 02, 2021 11:15 am

Re: Scheduled FTP/SCP Backups Not Working

Post by gsmith »

Hi,

It took 58 minutes for the backup process to run so we will need to tweak your php
settings for better performance. Please follow this document:
https://support.nagios.com/kb/article/n ... e-611.html

There are only four changes you need to make, all to the same file.

After you make the changes and a backup runs please let me know if that solved the ftp issue.

As far as the size of the backup file there is no way to reduce the size of it. It is great that you are
keeping an eye on your diskspace as mentioned in this short read:
https://support.nagios.com/kb/print-26.html

Thanks
luczynj
Posts: 88
Joined: Wed Dec 03, 2014 6:47 pm

Re: Scheduled FTP/SCP Backups Not Working

Post by luczynj »

Hello,

Our php.ini file has been updated over the years. I'm not sure which parameter(s) I need to change for the backups.

I'm not seeing errors in the http logs.

Here's our /etc/php.ini with all commented lines removed:

Could it be the line: upload_max_filesize = 20M


[root@nagios-p perfdata]# grep -v ^\; /etc/php.ini
[PHP]

engine = On
short_open_tag = Off
asp_tags = Off
precision = 14
y2k_compliance = On
output_buffering = 4096
zlib.output_compression = Off
implicit_flush = Off
unserialize_callback_func =
serialize_precision = 100

allow_call_time_pass_reference = Off

safe_mode = Off

safe_mode_gid = Off

safe_mode_include_dir =

safe_mode_exec_dir =

safe_mode_allowed_env_vars = PHP_

safe_mode_protected_env_vars = LD_LIBRARY_PATH
disable_functions =
disable_classes =
expose_php = On
max_execution_time = 300

max_input_time = 180
memory_limit = 256M
max_input_vars = 5000
error_reporting = E_ALL & ~E_DEPRECATED
display_errors = Off
display_startup_errors = Off

log_errors = On

log_errors_max_len = 1024

ignore_repeated_errors = Off
ignore_repeated_source = Off
report_memleaks = On
track_errors = Off
html_errors = Off
variables_order = "GPCS"

request_order = "GP"

register_globals = Off

register_long_arrays = Off

register_argc_argv = Off

auto_globals_jit = On

post_max_size = 21M

magic_quotes_gpc = Off

magic_quotes_runtime = Off

magic_quotes_sybase = Off

auto_prepend_file =

auto_append_file =

default_mimetype = "text/html"

doc_root =
user_dir =
enable_dl = Off
file_uploads = On
upload_max_filesize = 20M
allow_url_fopen = On
allow_url_include = Off
default_socket_timeout = 60
[Date]
date.timezone = Etc/UTC
[filter]


[iconv]

[intl]

[sqlite]

[sqlite3]

[Pcre]


[Pdo]

[Phar]



[Syslog]
define_syslog_variables = Off

[mail function]
SMTP = localhost
smtp_port = 25


sendmail_path = /usr/sbin/sendmail -t -i


mail.add_x_header = On


[SQL]
sql.safe_mode = Off

[ODBC]



odbc.allow_persistent = On

odbc.check_persistent = On

odbc.max_persistent = -1

odbc.max_links = -1

odbc.defaultlrl = 4096

odbc.defaultbinmode = 1


[MySQL]
mysql.allow_persistent = On

mysql.max_persistent = -1

mysql.max_links = -1

mysql.default_port =

mysql.default_socket =

mysql.default_host =

mysql.default_user =

mysql.default_password =

mysql.connect_timeout = 60

mysql.trace_mode = Off

[MySQLi]

mysqli.max_links = -1

mysqli.default_port = 3306

mysqli.default_socket =

mysqli.default_host =

mysqli.default_user =

mysqli.default_pw =

mysqli.reconnect = Off

[PostgresSQL]
pgsql.allow_persistent = On

pgsql.auto_reset_persistent = Off

pgsql.max_persistent = -1

pgsql.max_links = -1

pgsql.ignore_notice = 0

pgsql.log_notice = 0

[Sybase-CT]
sybct.allow_persistent = On

sybct.max_persistent = -1

sybct.max_links = -1

sybct.min_server_severity = 10

sybct.min_client_severity = 10



[bcmath]
bcmath.scale = 0

[browscap]

[Session]
session.save_handler = files

session.save_path = "/var/lib/php/session"

session.use_cookies = 1


session.use_only_cookies = 1

session.name = PHPSESSID

session.auto_start = 0

session.cookie_lifetime = 0

session.cookie_path = /

session.cookie_domain =

session.cookie_httponly =

session.serialize_handler = php

session.gc_probability = 1

session.gc_divisor = 1000

session.gc_maxlifetime = 1440


session.bug_compat_42 = Off

session.bug_compat_warn = Off

session.referer_check =

session.entropy_length = 0

session.entropy_file =


session.cache_limiter = nocache

session.cache_expire = 180

session.use_trans_sid = 0

session.hash_function = 0

session.hash_bits_per_character = 5

url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=fakeentry"

[MSSQL]
mssql.allow_persistent = On

mssql.max_persistent = -1

mssql.max_links = -1

mssql.min_error_severity = 10

mssql.min_message_severity = 10

mssql.compatability_mode = Off







mssql.secure_connection = Off



[Assertion]





[COM]





[mbstring]










[gd]

[exif]






[Tidy]
tidy.clean_output = Off

[soap]
soap.wsdl_cache_enabled=1
soap.wsdl_cache_dir="/tmp"
soap.wsdl_cache_ttl=86400
[sysvshm]

#########################


Regards,
JLu
Locked