NagiosCore-Received disconnect from UNKNOWN port 65535:2

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Venky4u
Posts: 3
Joined: Tue Oct 26, 2021 4:42 am

NagiosCore-Received disconnect from UNKNOWN port 65535:2

Post by Venky4u »

Hello Team,

I'm using NagiosCore 4.4.6 with Nagios-plugins version 2.2.1
I haven't faced any issue while working on the RHEL-7 box where NagiosCore was installed. The moment I migrated to RHEL-8, I'm facing the issue. Where I'm getting desired output while executing the scripts from Nagios command line but the Nagios web interface is throwing the below error.

Error from Web UI: "UNKNOWN Remote command execution failed: Received disconnect from UNKNOWN port 65535:2: Too many authentication failures"

Command line: [devops@cvlappxd21871 libexec]$ ./check_by_ssh -H host -l devops -C '/home/devops/nagiosScripts/check_tomcat.sh'
/opt/jboss/jws-5.3/servers/tomcat_1 is running

I have checked the permissions and everything looks fine.

User:devops
[devops@cvlappxd21871 .ssh]$ ls -la
total 8
drwx------. 2 devops devops 38 Oct 6 11:06 .
drwxr-x---. 3 devops devops 125 Oct 25 10:47 ..
-rw-------. 1 devops devops 2622 Oct 6 11:06 id_rsa
-rw-r--r--. 1 devops devops 585 Oct 6 11:06 id_rsa.pub

Please do the needful.

Regards,
Venkatesh Y
Last edited by Venky4u on Wed Oct 27, 2021 12:55 am, edited 1 time in total.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: NagiosCore-Received disconnect from UNKNOWN port 65535:2

Post by benjaminsmith »

Hi Venkatesh,

Based on that error message, it's probably not an issue directly related to Nagiso but a configuration issue with SSH. Try following the steps in the article below to resolve and let us know how that goes.

How to Fix “SSH Too Many Authentication Failures” Error

--Benjmain
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Venky4u
Posts: 3
Joined: Tue Oct 26, 2021 4:42 am

Re: NagiosCore-Received disconnect from UNKNOWN port 65535:2

Post by Venky4u »

Hi,

Before trying the steps that you have provided in the article, I did and ssh -vvv to the target host with devops ID and attached the verbose output.

I have tried the above steps but no luck. I still see the same error "UNKNOWN Remote command execution failed: Received disconnect from UNKNOWN port 65535:2: Too many authentication failures"

[devops@Nagios-server .ssh]$ cat config
Host hostname
IdentitiesOnly=yes
PreferredAuthentications=publickey
LogLevel INFO

Regards,
Venkatesh Y
Attachments
SSH connection.txt
(13.96 KiB) Downloaded 122 times
Venky4u
Posts: 3
Joined: Tue Oct 26, 2021 4:42 am

Re: NagiosCore-Received disconnect from UNKNOWN port 65535:2

Post by Venky4u »

Can someone help me on this issue ?

Regards,
Venkatesh Y
Locked