Ubuntu OS connectivity issue with port 5666 in Nagios
-
tssnagiosadmin
- Posts: 24
- Joined: Wed Oct 23, 2019 9:39 am
Re: Ubuntu OS connectivity issue with port 5666 in Nagios
scottwilkerson,
Thank you. Let me check again with our network team.
Thank you. Let me check again with our network team.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Ubuntu OS connectivity issue with port 5666 in Nagios
Sounds goodtssnagiosadmin wrote:scottwilkerson,
Thank you. Let me check again with our network team.
-
tssnagiosadmin
- Posts: 24
- Joined: Wed Oct 23, 2019 9:39 am
Re: Ubuntu OS connectivity issue with port 5666 in Nagios
Just a quick question,
what are ports needed to be open in Firewall?
what are ports needed to be open in Firewall?
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Ubuntu OS connectivity issue with port 5666 in Nagios
It looks like you were trying to monitor the remote server with NRPE so Nagios needs access to the remote machine on port 5666tssnagiosadmin wrote:Just a quick question,
what are ports needed to be open in Firewall?
-
tssnagiosadmin
- Posts: 24
- Joined: Wed Oct 23, 2019 9:39 am
Re: Ubuntu OS connectivity issue with port 5666 in Nagios
Our network team confirmed firewall were already disabled. In addition, they also allow port 5666 however, still no luck.
[root@sgisgnagtstrm01 nagios]# /usr/local/nagios/libexec/check_nrpe -H 10.10.20.11
connect to address 10.10.20.11 port 5666: Connection refused
connect to host 10.10.20.11 port 5666: Connection refused
[root@sgisgnagtstrm01 nagios]# /usr/local/nagios/libexec/check_nrpe -H 10.10.20.12
connect to address 10.10.20.12 port 5666: Connection refused
connect to host 10.10.20.12 port 5666: Connection refused
[root@sgisgnagtstrm01 nagios]# telnet 10.10.20.11 5666
Trying 10.10.20.11...
telnet: connect to address 10.10.20.11: Connection refused
[root@sgisgnagtstrm01 nagios]# telnet 10.10.20.12 5666
Trying 10.10.20.12...
telnet: connect to address 10.10.20.12: Connection refused
[root@sgisgnagtstrm01 nagios]# ping 10.10.20.11
PING 10.10.20.11 (10.10.20.11) 56(84) bytes of data.
^C
--- 10.10.20.11 ping statistics ---
1 packets transmitted, 0 received, 100% packet loss, time 0ms
[root@sgisgnagtstrm01 nagios]# ping 10.10.20.12
PING 10.10.20.12 (10.10.20.12) 56(84) bytes of data.
^C
--- 10.10.20.12 ping statistics ---
2 packets transmitted, 0 received, 100% packet loss, time 999ms
[root@sgisgnagtstrm01 nagios]# /usr/local/nagios/libexec/check_nrpe -H 10.10.20.11
connect to address 10.10.20.11 port 5666: Connection refused
connect to host 10.10.20.11 port 5666: Connection refused
[root@sgisgnagtstrm01 nagios]# /usr/local/nagios/libexec/check_nrpe -H 10.10.20.12
connect to address 10.10.20.12 port 5666: Connection refused
connect to host 10.10.20.12 port 5666: Connection refused
[root@sgisgnagtstrm01 nagios]# telnet 10.10.20.11 5666
Trying 10.10.20.11...
telnet: connect to address 10.10.20.11: Connection refused
[root@sgisgnagtstrm01 nagios]# telnet 10.10.20.12 5666
Trying 10.10.20.12...
telnet: connect to address 10.10.20.12: Connection refused
[root@sgisgnagtstrm01 nagios]# ping 10.10.20.11
PING 10.10.20.11 (10.10.20.11) 56(84) bytes of data.
^C
--- 10.10.20.11 ping statistics ---
1 packets transmitted, 0 received, 100% packet loss, time 0ms
[root@sgisgnagtstrm01 nagios]# ping 10.10.20.12
PING 10.10.20.12 (10.10.20.12) 56(84) bytes of data.
^C
--- 10.10.20.12 ping statistics ---
2 packets transmitted, 0 received, 100% packet loss, time 999ms
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Ubuntu OS connectivity issue with port 5666 in Nagios
lets log into 10.10.20.11 and verify nrpe is running
If so, lets run the following to verify it is listening
Code: Select all
ps -ef|grep nrpeCode: Select all
netstat -nlp|grep 5666-
tssnagiosadmin
- Posts: 24
- Joined: Wed Oct 23, 2019 9:39 am
Re: Ubuntu OS connectivity issue with port 5666 in Nagios
I tried to run the command in 10.10.20.11, and these were the results:
root@azisgezrxcpq01:/etc/ufw/applications.d# ps -ef | grep nrpe
root 51026 46311 0 22:27 pts/12 00:00:00 grep --color=auto nrpe
root@azisgezrxcpq01:/etc/ufw/applications.d# netstat -nlp | grep 5666
root@azisgezrxcpq01:
For I don't know if the port is listening since I didn't get any result after running the command. 
root@azisgezrxcpq01:/etc/ufw/applications.d# ps -ef | grep nrpe
root 51026 46311 0 22:27 pts/12 00:00:00 grep --color=auto nrpe
root@azisgezrxcpq01:/etc/ufw/applications.d# netstat -nlp | grep 5666
root@azisgezrxcpq01:
For
Code: Select all
netstat -nlp | grep 5666-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Ubuntu OS connectivity issue with port 5666 in Nagios
It doesn't look like NRPE is running on this system
How did you install NRPE? What directions did you follow?
These?
https://assets.nagios.com/downloads/nag ... _Agent.pdf
How did you install NRPE? What directions did you follow?
These?
https://assets.nagios.com/downloads/nag ... _Agent.pdf
-
tssnagiosadmin
- Posts: 24
- Joined: Wed Oct 23, 2019 9:39 am
Re: Ubuntu OS connectivity issue with port 5666 in Nagios
Actually, we did install the NCPA not the NRPE.
https://assets.nagios.com/downloads/ncp ... g-NCPA.pdf
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
Just a clarity, does NCPA is the one needed because if we use a linux Server for config wizard it will automatically use NRPE? or still we need to install the NRPE?
https://assets.nagios.com/downloads/ncp ... g-NCPA.pdf
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
Just a clarity, does NCPA is the one needed because if we use a linux Server for config wizard it will automatically use NRPE? or still we need to install the NRPE?
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Ubuntu OS connectivity issue with port 5666 in Nagios
If you have the NCPA Agent installed you would use the NCPA Wizard, not the Linux wizard.