Page 2 of 2

Re: Schedule SSH backup failing via GUI

Posted: Tue Nov 12, 2019 2:45 pm
by tgriep
Thanks for the output. It helps to know what OS and release the server is running.

Edit the /usr/local/nagiosxi/html/includes/constants.inc.php file and change the SB_LOGLEVEL to 0 like the following example.

Code: Select all

define('SB_LOGLEVEL', 0);
That should enable debugging in the scheduledbackups.log file.

Run this on the nagios server and post the output so I can get the list and versions of the packages on the server. Post it here.

Code: Select all

yum list installed |grep php
yum list installed |grep ssh
I found one possibility for the invalid format issue is a corrupted SSH public key.
Can you delete the public key on the nagios server and the entry in the authorized_keys on the Gentoo server to rule that out as the issue?

Re: Schedule SSH backup failing via GUI

Posted: Tue Nov 12, 2019 5:00 pm
by absarcompass
have changed logging level to debug now and have changed public private keys it didn't help though, remote server ssh log still showing invalid format

yum list installed |grep php
php.x86_64 5.3.3-49.el6
php-cli.x86_64 5.3.3-49.el6
php-common.x86_64 5.3.3-49.el6
php-gd.x86_64 5.3.3-49.el6
php-imap.x86_64 5.3.3-49.el6
php-ldap.x86_64 5.3.3-49.el6
php-mbstring.x86_64 5.3.3-49.el6
php-mcrypt.x86_64 5.3.3-3.el6
php-mssql.x86_64 5.3.3-3.el6
php-mysql.x86_64 5.3.3-49.el6
php-pdo.x86_64 5.3.3-49.el6
php-pear.noarch 1:1.9.4-4.el6
php-pear-HTML-Template-IT.noarch 1.3.0-2.el5
php-pecl-ssh2.x86_64 0.11.0-7.el6
php-pgsql.x86_64 5.3.3-49.el6
php-snmp.x86_64 5.3.3-49.el6
php-xml.x86_64 5.3.3-49.el6

yum list installed |grep ssh
libssh2.x86_64 1.4.2-1.el6
openssh.x86_64 5.3p1-94.el6
openssh-clients.x86_64 5.3p1-94.el6
openssh-server.x86_64 5.3p1-94.el6
php-pecl-ssh2.x86_64 0.11.0-7.el6
Cheers

Re: Schedule SSH backup failing via GUI

Posted: Tue Nov 12, 2019 5:40 pm
by tgriep
The packages look OK for the versions except for the openssh packages, they are older than the test server that I am using.

Lets enable debugging on the Gentoo server.

Edit the /etc/ssh/sshd_config file and add or edit the following entries inder the Logging section.

Code: Select all

SyslogFacility AUTHPRIV
LogLevel DEBUG
Save the file and restart the sshd daemon

Test a SCP Transfer and check the /var/log/secure log on the Gentoo server to see more details on what is failing.

Have you tried to use the Auth Type of Password in XI to see if that works?