I've got a bit of a strange problem.
I've have Scheduled Backups set up for local and SSH; local for 12:30AM and SSH for 1:30AM, both daily. I have already tested the connectivity via the Test Connection, which passed with "Connection established. Username/Password OK." Also, tested transfer via the Test SCP Transfer button, which returned "Test file "ssh_test_secure_copy.txt" transferred successfully." and I can see the file in the destination folder of the remote storage.
However, I am not seeing the tar.gz backups in the remote storage. I am seeing twice as many backups in the Local Backup Archives:
2026-06-04 02:40:45 nagiosxi.1780533000.tar.gz 49.13 GB
2026-06-04 01:41:01 nagiosxi.1780529400.tar.gz 49.13 GB
2026-06-03 02:41:13 nagiosxi.1780446600.tar.gz 49.07 GB
2026-06-03 01:41:13 nagiosxi.1780443000.tar.gz 49.07 GB
I suspect that the backups are storing both for SSH and Local locally. Any ideas?
I'm running 2026R1.5 on Ubuntu 24.04 LTS. Thanks!
Scheduled Backups Issue
Re: Scheduled Backups Issue
Hi @stu18,
I'd recommend checking out the scheduledbackups.log file, which should contain any errors for your SSH backups. It's likely located here, at least on an XI system with default configurations:
Hopefully the contents of that log will be enough to highlight the issue, but feel free to post the output here if you'd like help interpreting it.
I'd recommend checking out the scheduledbackups.log file, which should contain any errors for your SSH backups. It's likely located here, at least on an XI system with default configurations:
Code: Select all
/usr/local/nagiosxi/var/components/scheduledbackups.log-
daremeasly
- Posts: 1
- Joined: Tue Jun 09, 2026 3:19 am
- Contact:
Re: Scheduled Backups Issue
You may be correct that both scheduled jobs are creating local backup archives first, which would explain why you're seeing two .tar.gz files per day. The SSH backup process typically generates the archive locally and then transfers it to the remote destination, so if the transfer step is failing, the local file would still be created.stu18 wrote: ↑Thu Jun 04, 2026 3:53 am I've got a bit of a strange problem.
I've have Scheduled Backups set up for local and SSH; local for 12:30AM and SSH for 1:30AM, both daily. I have already tested the connectivity via the Test Connection, which passed with "Connection established. Username/Password OK." Also, tested transfer via the Test SCP Transfer button, which returned "Test file "ssh_test_secure_copy.txt" transferred successfully." and I can see the file in the destination folder of the remote storage.
However, I am not seeing the tar.gz backups in the remote storage. I am seeing twice as many backups in the Local Backup Archives:
2026-06-04 02:40:45 nagiosxi.1780533000.tar.gz 49.13 GB
2026-06-04 01:41:01 nagiosxi.1780529400.tar.gz 49.13 GB
2026-06-03 02:41:13 nagiosxi.1780446600.tar.gz 49.07 GB
2026-06-03 01:41:13 nagiosxi.1780443000.tar.gz 49.07 GB
I suspect that the backups are storing both for SSH and Local locally. Any ideas?
I'm running 2026R1.5 on Ubuntu 24.04 LTS. Thanks!
I'd recommend checking the backup logs around 1:30 AM for any SCP/SFTP transfer errors and verifying that the remote destination has enough free space and write permissions. That should help determine whether the issue is with the transfer step rather than the backup creation itself.
Re: Scheduled Backups Issue
SSH only backups configured. Turned off local backup.
I've had a look at the /usr/local/nagiosxi/var/components/scheduledbackups.log logs after job was completed. There is zero log of any SSH/SCP backup transfer. Just ends with BACKUP COMPLETE - Backup stored in /store/backups/nagiosxi/nagios.xxxxxx.tar.gz
Zero errors. Just thinks it's a local backup. I've opened a case directly to Nagios Support as it will require a deeper dive into the system.
Thanks guys!
I've had a look at the /usr/local/nagiosxi/var/components/scheduledbackups.log logs after job was completed. There is zero log of any SSH/SCP backup transfer. Just ends with BACKUP COMPLETE - Backup stored in /store/backups/nagiosxi/nagios.xxxxxx.tar.gz
Zero errors. Just thinks it's a local backup. I've opened a case directly to Nagios Support as it will require a deeper dive into the system.
Thanks guys!
Re: Scheduled Backups Issue
Just an update on this as the issue has now been resolved now.
There is currently a bug with SSH transfers of Nagios backups, so adding the ssh2 extension into /etc/php/8.3/cli/php.ini resolved the issue for me.
Thanks to Nagios Support for the workaround. Hopefully, this will help anyone who has a similar issue.
There is currently a bug with SSH transfers of Nagios backups, so adding the ssh2 extension into /etc/php/8.3/cli/php.ini resolved the issue for me.
Code: Select all
extension=ssh2.soRe: Scheduled Backups Issue
Did you have to restart any Nagios services or Apache after adding that line to the php.ini to get it to kick in?stu18 wrote: ↑Fri Jun 12, 2026 11:33 am Just an update on this as the issue has now been resolved now.
There is currently a bug with SSH transfers of Nagios backups, so adding the ssh2 extension into /etc/php/8.3/cli/php.ini resolved the issue for me.
sarkari resultCode: Select all
extension=ssh2.so
Thanks to Nagios Support for the workaround. Hopefully, this will help anyone who has a similar issue.
Re: Scheduled Backups Issue
Howdy!
An update from the development team. We have a fix in place for an upcoming release that should release next month that fixes this internally. Adding the extension line to the cli .ini that is. We also are fixing a number of issues with the package we use for scheduled backups, so this issue should be resolved!
Thanks!
Benjamin Rowan
Junior Developer
An update from the development team. We have a fix in place for an upcoming release that should release next month that fixes this internally. Adding the extension line to the cli .ini that is. We also are fixing a number of issues with the package we use for scheduled backups, so this issue should be resolved!
Thanks!
Benjamin Rowan
Junior Developer