Schedule SSH backup failing via GUI

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: Schedule SSH backup failing via GUI

Post 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?
Be sure to check out our Knowledgebase for helpful articles and solutions!
absarcompass
Posts: 182
Joined: Thu May 14, 2015 9:57 pm

Re: Schedule SSH backup failing via GUI

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

Re: Schedule SSH backup failing via GUI

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