Scheduled Backups 'Could not authenticate'

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
thur686
Posts: 66
Joined: Mon Jan 12, 2015 2:33 pm

Scheduled Backups 'Could not authenticate'

Post 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).
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: Scheduled Backups 'Could not authenticate'

Post by jdalrymple »

Any complex characters in your password that might be getting washed out by PHP?

Is your password "Robert'); DROP TABLE Students;"
thur686
Posts: 66
Joined: Mon Jan 12, 2015 2:33 pm

Re: Scheduled Backups 'Could not authenticate'

Post by thur686 »

Good thought. I will simplify the password and give it another try.
thur686
Posts: 66
Joined: Mon Jan 12, 2015 2:33 pm

Re: Scheduled Backups 'Could not authenticate'

Post by thur686 »

Simplifying the password did not work. Perhaps this feature does not work in Trial mode?
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Scheduled Backups 'Could not authenticate'

Post 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).
thur686
Posts: 66
Joined: Mon Jan 12, 2015 2:33 pm

Re: Scheduled Backups 'Could not authenticate'

Post by thur686 »

Nagios XI 2014R2.3
Scheduled Backups - Version: 1.0.7 Date: 12/05/2014
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Scheduled Backups 'Could not authenticate'

Post by tgriep »

Can you check the logs on the remote system for any errors?
Be sure to check out our Knowledgebase for helpful articles and solutions!
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Scheduled Backups 'Could not authenticate'

Post 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
thur686
Posts: 66
Joined: Mon Jan 12, 2015 2:33 pm

Re: Scheduled Backups 'Could not authenticate'

Post 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.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Scheduled Backups 'Could not authenticate'

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked