Ubuntu OS connectivity issue with port 5666 in Nagios

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
tssnagiosadmin
Posts: 24
Joined: Wed Oct 23, 2019 9:39 am

Re: Ubuntu OS connectivity issue with port 5666 in Nagios

Post by tssnagiosadmin »

scottwilkerson,

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

Post by scottwilkerson »

tssnagiosadmin wrote:scottwilkerson,

Thank you. Let me check again with our network team.
Sounds good
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
tssnagiosadmin
Posts: 24
Joined: Wed Oct 23, 2019 9:39 am

Re: Ubuntu OS connectivity issue with port 5666 in Nagios

Post by tssnagiosadmin »

Just a quick question,

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

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
tssnagiosadmin
Posts: 24
Joined: Wed Oct 23, 2019 9:39 am

Re: Ubuntu OS connectivity issue with port 5666 in Nagios

Post 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
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

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
tssnagiosadmin
Posts: 24
Joined: Wed Oct 23, 2019 9:39 am

Re: Ubuntu OS connectivity issue with port 5666 in Nagios

Post 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:
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

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
tssnagiosadmin
Posts: 24
Joined: Wed Oct 23, 2019 9:39 am

Re: Ubuntu OS connectivity issue with port 5666 in Nagios

Post 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?
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

Post by scottwilkerson »

If you have the NCPA Agent installed you would use the NCPA Wizard, not the Linux wizard.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked