Page 1 of 1
Periodic FTP Backup is Not Working
Posted: Thu Mar 04, 2021 8:52 pm
by axvaster
Hi,
We set all backup method (FTP, SSH, Local) on Nagios XI (5.6.2); and periodic FTP backup works fine until last month.
I checked the permissions, FTP server disk usage; there seems no permission or disk issue on the FTP server.
Also tested functions by clicking buttons (test upload... etc) all works fine, no error messages.
The only problem is that it just "can not automatically" do FTP backup job.
Is there any options that I can check to find out this root cause?
P.S. I would PM profile when any replies available.
Thanks!
Re: Periodic FTP Backup is Not Working
Posted: Fri Mar 05, 2021 4:08 pm
by benjaminsmith
Hi,
Let's take a closer look at the log files and to see what's happening. You mentioned that it was working fine until last month. Did you make any recent changes to the server?
Run the following tail command:
Code: Select all
tail -F /var/log/httpd/error_log /var/log/httpd/ssl_error_log /usr/local/nagiosxi/var/cmdsubsys.log /usr/local/nagiosxi/var/components/scheduledbackups.l
Then force a FTP scheduled backup to run and after it's completed or failed, post the full output from that command.
Also, please send us the system profile to review the other logs.
To send us your system profile.
Login to the Nagios XI GUI using a web browser.
Click the "Admin" > "System Profile" Menu
Click the "Download Profile" button
Thanks!
Benjamin
Re: Periodic FTP Backup is Not Working
Posted: Wed Mar 10, 2021 12:43 am
by axvaster
1.the "following tail command"
Code: Select all
# tail -F /var/log/httpd/error_log /var/log/httpd/ssl_error_log /usr/local/nagiosxi/var/cmdsubsys.log
/usr/local/nagiosxi/var/components/scheduledbackups.log
==> /var/log/httpd/error_log <==
[Sun Mar 07 03:07:02.979195 2021] [lbmethod_heartbeat:notice] [pid 36656:tid 140458486376640] AH02282: No slotmem from mod_heartmonitor
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/ixed.7.2.lin' (tried: /usr/lib64/php/modules/ixed.7.2.lin (/usr/lib64/php/modules/ixed.7.2.lin: undefined symbol: executor_globals), /usr/lib64/php-zts/modules//usr/lib64/php/modules/ixed.7.2.lin.so (/usr/lib64/php-zts/modules//usr/lib64/php/modules/ixed.7.2.lin.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
[Sun Mar 07 03:07:03.212894 2021] [mpm_event:notice] [pid 36656:tid 140458486376640] AH00489: Apache/2.4.46 (codeit) OpenSSL/1.1.1h configured -- resuming normal operations
[Sun Mar 07 03:07:03.212926 2021] [core:notice] [pid 36656:tid 140458486376640] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
==> /var/log/httpd/ssl_error_log <==
[Sun Mar 07 03:07:02.979008 2021] [ssl:warn] [pid 36656:tid 140458486376640] AH01909: fe80::250:56ff:febc:6336%ens33:443:0 server certificate does NOT include an ID which matches the server name
==> /usr/local/nagiosxi/var/cmdsubsys.log <==
PHP Warning: Module 'SourceGuardian' already loaded in Unknown on line 0
PROCESSED 0 COMMANDS
Could not resolve host: api.nagios.com; Name or service not known
............................................................PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php-zts/modules/ixed.7.2ts.lin' (tried: /usr/lib64/php-zts/modules/ixed.7.2ts.lin (/usr/lib64/php-zts/modules/ixed.7.2ts.lin: undefined symbol: core_globals_id), /usr/lib64/php/modules//usr/lib64/php-zts/modules/ixed.7.2ts.lin.so (/usr/lib64/php/modules//usr/lib64/php-zts/modules/ixed.7.2ts.lin.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning: Module 'SourceGuardian' already loaded in Unknown on line 0
PROCESSED 0 COMMANDS
Could not resolve host: api.nagios.com; Name or service not known
...........................
==> /usr/local/nagiosxi/var/components/scheduledbackups.log <==
03-06-2021 02:40:04 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
03-06-2021 04:40:03 ERROR: Scheduled FTP Backup Failed: Local file to transfer does not exist
03-07-2021 02:40:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
03-07-2021 04:40:03 ERROR: Scheduled FTP Backup Failed: Local file to transfer does not exist
03-08-2021 02:40:04 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
03-08-2021 04:40:04 ERROR: Scheduled FTP Backup Failed: Local file to transfer does not exist
03-09-2021 02:40:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
03-09-2021 04:40:04 ERROR: Scheduled FTP Backup Failed: Local file to transfer does not exist
03-10-2021 02:40:03 ERROR: Scheduled SSH Backup Failed: Local file to transfer does not exist
03-10-2021 04:40:04 ERROR: Scheduled FTP Backup Failed: Local file to transfer does not exist
==> /usr/local/nagiosxi/var/cmdsubsys.log <==
..........^C
2. how to force a FTP "scheduled" backup? I didn't find the button to execute; but the test uploads.
3. Going to PM you profile.zip
Re: Periodic FTP Backup is Not Working
Posted: Wed Mar 10, 2021 3:17 pm
by benjaminsmith
HI
@axvaster,
Got the profile. There isn't a button in the user interface to force a scheduled backup, I normally set it a few minutes in advance and wait to test this.
This is a large system, and it may be timing out or it's not able to complete the backup archive. Please post the output of the following command to check the permissions.
Then run the following commands to generate a backup from the command line and the time required.
Code: Select all
cd /usr/local/nagiosxi/scripts
time ./backup_xi.sh
If you haven't done so already, I would recommend optimizing the PHP settings on this system. After making those changes, please try testing it again.
Nagios XI - Optimizing The PHP Settings File
Thanks,
Benjamin