Page 1 of 1

NagiosCore-Received disconnect from UNKNOWN port 65535:2

Posted: Tue Oct 26, 2021 5:37 am
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

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

Posted: Tue Oct 26, 2021 4:11 pm
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

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

Posted: Wed Oct 27, 2021 10:42 am
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

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

Posted: Tue Nov 09, 2021 9:22 am
by Venky4u
Can someone help me on this issue ?

Regards,
Venkatesh Y