Page 1 of 3

Scheduled Backups 'Could not authenticate'

Posted: Tue Jun 09, 2015 9:18 am
by thur686
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).

Re: Scheduled Backups 'Could not authenticate'

Posted: Tue Jun 09, 2015 11:00 am
by jdalrymple
Any complex characters in your password that might be getting washed out by PHP?

Is your password "Robert'); DROP TABLE Students;"

Re: Scheduled Backups 'Could not authenticate'

Posted: Tue Jun 09, 2015 12:10 pm
by thur686
Good thought. I will simplify the password and give it another try.

Re: Scheduled Backups 'Could not authenticate'

Posted: Tue Jun 09, 2015 12:18 pm
by thur686
Simplifying the password did not work. Perhaps this feature does not work in Trial mode?

Re: Scheduled Backups 'Could not authenticate'

Posted: Tue Jun 09, 2015 12:28 pm
by ssax
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).

Re: Scheduled Backups 'Could not authenticate'

Posted: Tue Jun 09, 2015 1:07 pm
by thur686
Nagios XI 2014R2.3
Scheduled Backups - Version: 1.0.7 Date: 12/05/2014

Re: Scheduled Backups 'Could not authenticate'

Posted: Tue Jun 09, 2015 1:44 pm
by tgriep
Can you check the logs on the remote system for any errors?

Re: Scheduled Backups 'Could not authenticate'

Posted: Tue Jun 09, 2015 1:47 pm
by ssax
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/secure

Re: Scheduled Backups 'Could not authenticate'

Posted: Tue Jun 09, 2015 3:36 pm
by thur686
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'

Posted: Tue Jun 09, 2015 3:59 pm
by tgriep
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-ssh2