Page 2 of 3

Re: Ubuntu OS connectivity issue with port 5666 in Nagios

Posted: Mon Oct 28, 2019 9:36 am
by tssnagiosadmin
scottwilkerson,

Thank you. Let me check again with our network team.

Re: Ubuntu OS connectivity issue with port 5666 in Nagios

Posted: Mon Oct 28, 2019 9:50 am
by scottwilkerson
tssnagiosadmin wrote:scottwilkerson,

Thank you. Let me check again with our network team.
Sounds good

Re: Ubuntu OS connectivity issue with port 5666 in Nagios

Posted: Mon Oct 28, 2019 10:10 am
by tssnagiosadmin
Just a quick question,

what are ports needed to be open in Firewall?

Re: Ubuntu OS connectivity issue with port 5666 in Nagios

Posted: Mon Oct 28, 2019 10:19 am
by scottwilkerson
tssnagiosadmin wrote:Just a quick question,

what are ports needed to be open in Firewall?
It looks like you were trying to monitor the remote server with NRPE so Nagios needs access to the remote machine on port 5666

Re: Ubuntu OS connectivity issue with port 5666 in Nagios

Posted: Wed Oct 30, 2019 10:52 am
by tssnagiosadmin
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

Re: Ubuntu OS connectivity issue with port 5666 in Nagios

Posted: Wed Oct 30, 2019 11:21 am
by scottwilkerson
lets log into 10.10.20.11 and verify nrpe is running

Code: Select all

ps -ef|grep nrpe
If so, lets run the following to verify it is listening

Code: Select all

netstat -nlp|grep 5666

Re: Ubuntu OS connectivity issue with port 5666 in Nagios

Posted: Thu Oct 31, 2019 9:32 am
by tssnagiosadmin
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

Code: Select all

netstat -nlp | grep 5666
I don't know if the port is listening since I didn't get any result after running the command. :cry:

Re: Ubuntu OS connectivity issue with port 5666 in Nagios

Posted: Thu Oct 31, 2019 9:35 am
by scottwilkerson
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

Re: Ubuntu OS connectivity issue with port 5666 in Nagios

Posted: Sat Nov 02, 2019 8:54 am
by tssnagiosadmin
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?

Re: Ubuntu OS connectivity issue with port 5666 in Nagios

Posted: Mon Nov 04, 2019 7:27 am
by scottwilkerson
If you have the NCPA Agent installed you would use the NCPA Wizard, not the Linux wizard.