SSH Scheduled Backups
SSH Scheduled Backups
I tried setup SSH backups. the overall backup complete successfully. however the file is stored in XI Server instead of the SSH remote server. I performed the SSH test connection as well as the test scp prior running the backup
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: SSH Scheduled Backups
When the backup occurs, it creates the backup locally first and then copies it across to the SSH server.
Do the files ever make it to the SSH server?
What version of XI are you using?
Can you run this command in an SSH session on your XI server:
Now go into scheduled backups and schedule one for a couple of minutes in the future.
Watch the SSH session and please report back what is output on the screen.
Do the files ever make it to the SSH server?
What version of XI are you using?
Can you run this command in an SSH session on your XI server:
Code: Select all
tail -f /usr/local/nagiosxi/var/cmdsubsys.logWatch the SSH session and please report back what is output on the screen.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: SSH Scheduled Backups
Backups take hours to complete. I have a big environment. I can't seat all night and watch it
is there an easier way to troubleshoot this
is there an easier way to troubleshoot this
-
jdalrymple
- Skynet Drone
- Posts: 2620
- Joined: Wed Feb 11, 2015 1:56 pm
Re: SSH Scheduled Backups
Hi bosecorp,
Did you modify the scheduled backup component at all? I think the way it works is as follows:
Kick off a backup...
Wait awhile (25 minutes by default) looking for the completed backup tar.gz every few minutes
If it fails ... give up
There is a lot more logic to it than that, but that simplified version makes me wonder if the process isn't just silently crapping out before the tar.gz is available and thus never making it to the scp stage.
Did you modify the scheduled backup component at all? I think the way it works is as follows:
Kick off a backup...
Wait awhile (25 minutes by default) looking for the completed backup tar.gz every few minutes
If it fails ... give up
There is a lot more logic to it than that, but that simplified version makes me wonder if the process isn't just silently crapping out before the tar.gz is available and thus never making it to the scp stage.
Re: SSH Scheduled Backups
the actual backup works, but instead of getting moved to the remote server, the file stays on the XI server
-
jdalrymple
- Skynet Drone
- Posts: 2620
- Joined: Wed Feb 11, 2015 1:56 pm
Re: SSH Scheduled Backups
Sorry, I didn't highlight my question but rather buried it in long winded drivel... 
Have you modified the component at all, or rather have we modified it for you?
If not I think we will have to. Furthermore it's protected code so I'll have to talk to the developers to see:
a) am I right
b) how do we get you the modified component
Have you modified the component at all, or rather have we modified it for you?
If not I think we will have to. Furthermore it's protected code so I'll have to talk to the developers to see:
a) am I right
b) how do we get you the modified component
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: SSH Scheduled Backups
This command will continue to log the output to a file and you can check it later:bosecorp wrote:Backups take hours to complete. I have a big environment. I can't seat all night and watch it
is there an easier way to troubleshoot this
Code: Select all
tail -f /usr/local/nagiosxi/var/cmdsubsys.log > /tmp/cmdsubsys_watching.logAs of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: SSH Scheduled Backups
here you go. I have PM you the file
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: SSH Scheduled Backups
Great, this file has some good information, specifically right at the end of the backup:
What is the output of on your XI server?:
Does the SSH destination have enough free space?
This could indicate a limit issue in the transfer perhaps?
What happens if you try and copy one of the backups files via SSH at the Nagios XI command line? Does it bomb out?
Code: Select all
gzip: stdout: No space left on device
tar: nagiosxi.1445796003.tar.gz: Wrote only 8192 of 10240 bytes
tar: Error is not recoverable: exiting nowCode: Select all
df -hThis could indicate a limit issue in the transfer perhaps?
What happens if you try and copy one of the backups files via SSH at the Nagios XI command line? Does it bomb out?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.