I am using the Nagios Core 4.4.3.
Suddenly check_ssh is giving the error for 2 servers as , connection refused.
But we are able to login to the server using the Putty/SSH.
Why the alert got triggered, if we are able to login to the server.
check_ssh is giving connection Refused
Re: check_ssh is giving connection Refused
Are you logging into the server from the XI machine or from another machine?
Check the firewalls to make sure tcp port 22 traffic is being allowed from the XI machine to the remote machine.
Also run "nmap -p 22 remote_server_ip" on the XI server's command line and check to see if it is filtered.
Check the firewalls to make sure tcp port 22 traffic is being allowed from the XI machine to the remote machine.
Also run "nmap -p 22 remote_server_ip" on the XI server's command line and check to see if it is filtered.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
-
amitgupta19
- Posts: 286
- Joined: Fri Sep 08, 2017 5:53 am
Re: check_ssh is giving connection Refused
Are you logging into the server from the XI machine or from another machine?
Yes i am logging into the remote server using the Nagios Core Machine.
Check the firewalls to make sure tcp port 22 traffic is being allowed from the XI machine to the remote machine.
There are no firewalls between the 2 systems.
Also run "nmap -p 22 remote_server_ip" on the XI server's command line and check to see if it is filtered.
From the Nagios Server to the remote host, nmap is giving the following result
[XXXXXXX@cblXXgios01 ~]$ nmap -p 22 XXX.XXX.XXX.XXX(Remote Host IP)
Starting Nmap 6.40 ( http://nmap.org ) at 2019-05-06 05:24 PDT
Nmap scan report for labmwcp6.xxx.ad.giacloud (xxx.xxx.xxx.xxx)
Host is up (0.00038s latency).
PORT STATE SERVICE
22/tcp closed ssh
Nmap done: 1 IP address (1 host up) scanned in 0.17 seconds
Does this mean the port 22 is closed? But we are still able to login to the server using the Putty.
How's it is possible?
Yes i am logging into the remote server using the Nagios Core Machine.
Check the firewalls to make sure tcp port 22 traffic is being allowed from the XI machine to the remote machine.
There are no firewalls between the 2 systems.
Also run "nmap -p 22 remote_server_ip" on the XI server's command line and check to see if it is filtered.
From the Nagios Server to the remote host, nmap is giving the following result
[XXXXXXX@cblXXgios01 ~]$ nmap -p 22 XXX.XXX.XXX.XXX(Remote Host IP)
Starting Nmap 6.40 ( http://nmap.org ) at 2019-05-06 05:24 PDT
Nmap scan report for labmwcp6.xxx.ad.giacloud (xxx.xxx.xxx.xxx)
Host is up (0.00038s latency).
PORT STATE SERVICE
22/tcp closed ssh
Nmap done: 1 IP address (1 host up) scanned in 0.17 seconds
Does this mean the port 22 is closed? But we are still able to login to the server using the Putty.
How's it is possible?
Re: check_ssh is giving connection Refused
It would appear to be down from the Core machine's perspective. What putty command are you running on the core machine to test it? Is the port something other than 22? Are you able to connect from the core machine using "ssh labmwcp6.xxx.ad.giacloud" ?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
-
amitgupta19
- Posts: 286
- Joined: Fri Sep 08, 2017 5:53 am
Re: check_ssh is giving connection Refused
It would appear to be down from the Core machine's perspective. What putty command are you running on the core machine to test it? Is the port something other than 22? Are you able to connect from the core machine using "ssh labmwcp6.xxx.ad.giacloud" ?
I am using the Putty Application to connect to the server and the default port 22.
when i do the ssh <IP Address> it is giving me the following error:
ssh: connect to host xxx.xxx.xxx.xxx port 22: Connection refused
Kindly suggest.
I am using the Putty Application to connect to the server and the default port 22.
when i do the ssh <IP Address> it is giving me the following error:
ssh: connect to host xxx.xxx.xxx.xxx port 22: Connection refused
Kindly suggest.
Re: check_ssh is giving connection Refused
There could be a firewall between the Core machine and remote server. I would also check the iptables on the Core machine:
iptables -L
iptables -L
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
-
amitgupta19
- Posts: 286
- Joined: Fri Sep 08, 2017 5:53 am
Re: check_ssh is giving connection Refused
ok i am checking in the remote host.
Re: check_ssh is giving connection Refused
Sounds good. Keep us posted.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.