Page 1 of 1

Remote scheduled backup publickey/privatekey?!

Posted: Tue Oct 01, 2019 5:52 am
by xpertech
When setting the remote AWS scheduled backup, how to type the publickey/privatekey? is there a sample config document?

Re: Remote scheduled backup publickey/privatekey?!

Posted: Tue Oct 01, 2019 1:28 pm
by mbellerue
We have a document for backups here,
https://assets.nagios.com/downloads/nag ... ios-XI.pdf

This covers SSH backups, and talks about configuring SSH keys starting on page 5. Does this help with your issue?

Re: Remote scheduled backup publickey/privatekey?!

Posted: Wed Oct 02, 2019 10:44 am
by xpertech
since the remote site is on AWS, don't know how to upload key(pem/ppk)?

Re: Remote scheduled backup publickey/privatekey?!

Posted: Wed Oct 02, 2019 1:32 pm
by mbellerue
We don't have an AWS account to test with, but SSH on AWS should work the same as SSH anywhere else. Are you able to SSH in to the AWS system at all?

Re: Remote scheduled backup publickey/privatekey?!

Posted: Mon Oct 07, 2019 10:24 am
by xpertech
Since NagiosXI support AWS EC2 ..., suppose should have AWS account in order to design the plugin?! is it possible that Nagios talk to Amazon to apply a testing account for supporting purpose?

Re: Remote scheduled backup publickey/privatekey?!

Posted: Mon Oct 07, 2019 2:48 pm
by mbellerue
We can definitely walk through the process. I just won't have anything specific for Amazon EC2, which shouldn't be a problem if the server is just a regular virtual machine in Amazon's cloud.

This assumes that the Amazon EC2 server is the destination server for the backups, and that there is a service account called nagios on the destination server.

In the SSH Backup configuration screen of Nagios XI, hit the Generate Public / Private Key button. This will generate public and private keys with the naming convention of ssh.xi.unixtime
Then from the command line of the Nagios XI server, run the following commands,

Code: Select all

cd /usr/local/nagiosxi/var/keys/
ssh-copy-id -i ./ssh.xi.unixtime.pub nagios@amazon-vm-address
It will ask you to verify the host key, and then provide a password for the nagios user on the Amazon VM.

Once this is done, you can finish filling out the fields in the Nagios XI SSH backup interface.