Hello,
I'm trying to use the Nagios XI Administration > Scheduled Backups feature over SSH. The target SSH server, username, password, and remote directory are all correct. When I try to use the 'Test Connection' or 'Test SCP' buttons the status message always displays 'Could not authenticate'. I can SSH from the Nagios XI server, to the backup server using the same credentials without any problems. I can even add, delete and write files in the remote directory over SSH.
Here is the format I'm using in the Nagios XI web console:
SSH Server - ip address
SSH Port - 22
SSH Username - user-name
SSH Password - agoodpasswd
Remote Directory - /media/example-path/backups/nagiosxi-dev/
The 'scheduledbackups.log' file reads; ERROR: Scheduled SSH Backup Failed: Could not authenticate on SSH server
FYI, this is happening to our DEV 'POC' Nagios XI instance which is still a Trial Copy (for now).
Scheduled Backups 'Could not authenticate'
-
jdalrymple
- Skynet Drone
- Posts: 2620
- Joined: Wed Feb 11, 2015 1:56 pm
Re: Scheduled Backups 'Could not authenticate'
Any complex characters in your password that might be getting washed out by PHP?
Is your password "Robert'); DROP TABLE Students;"
Is your password "Robert'); DROP TABLE Students;"
Re: Scheduled Backups 'Could not authenticate'
Good thought. I will simplify the password and give it another try.
Re: Scheduled Backups 'Could not authenticate'
Simplifying the password did not work. Perhaps this feature does not work in Trial mode?
Re: Scheduled Backups 'Could not authenticate'
It works for me in trial mode, what version of XI are you running? You can grab it from the bottom left hand corner of the web interface.
Also, what is the version of scheduled backups component? You can find it by going to Admin > Manage Components and finding scheduled backups (at the bottom).
Also, what is the version of scheduled backups component? You can find it by going to Admin > Manage Components and finding scheduled backups (at the bottom).
Re: Scheduled Backups 'Could not authenticate'
Nagios XI 2014R2.3
Scheduled Backups - Version: 1.0.7 Date: 12/05/2014
Scheduled Backups - Version: 1.0.7 Date: 12/05/2014
Re: Scheduled Backups 'Could not authenticate'
Can you check the logs on the remote system for any errors?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Scheduled Backups 'Could not authenticate'
On the remote server that you are SSHing to, if run the command below and then try your connection test, what does it output?
Code: Select all
tail -fn0 /var/log/secureRe: Scheduled Backups 'Could not authenticate'
The backup server is on OpenSuSE, so I could not find a file named /var/log/secure. I can validate that no files in /var/log/ are written to when trying to use the Scheduled Backup feature.
Re: Scheduled Backups 'Could not authenticate'
Could you run following on the Nagios XI server to see if this package is installed?
Code: Select all
yum list installed |grep php-pecl-ssh2Be sure to check out our Knowledgebase for helpful articles and solutions!