Page 1 of 1

Open 5666 port in Solaris for NXI monitoring

Posted: Wed Mar 13, 2019 3:59 am
by axvers
Hi support,

We found that the solaris wizard need the solaris client open port 5666 for monitoring.

But no any solutions to open a port except this:

(on solaris client 192.168.255.68)
# vi /etc/services
*add lines like:*
nxi_monitoring 5666/tcp
nxi_monitoring 5666/udp

# svcadm restart inetd

And this doesn't work.

(on centos monitoring server)
# /usr/local/nagios/libexec/check_nrpe -H 192.168.255.68 -t 30 -c check_disk -a '-w 20% -c 10% -p /'

connect to address 192.168.255.68 port 5666: Connection refused
connect to host 192.168.255.68 port 5666: Connection refused

Please help us open a port on solaris.

Re: Open 5666 port in Solaris for NXI monitoring

Posted: Wed Mar 13, 2019 12:56 pm
by cdienger
Verify that port 5666 is up and listening on the Solaris machine with:

netstat -na | grep 5666

Also verify that the monitoring server's IP address is listed as an allowed host in nrpe.cfg(usually /usr/local/nagios/etc/nagios.cfg):

allowed_hosts=127.0.0.1,::1,monitoring_server_ip

Is the firewall running if run:

svcs -a |grep ipf

?

Re: Open 5666 port in Solaris for NXI monitoring

Posted: Wed Mar 13, 2019 9:41 pm
by axvers
Hi Support,

1. [solaris client]
There's no ouptut for this:

Code: Select all

# netstat -na | grep 5666

2. [Centos monitoring server]
I added the ip in nrpe.cfg file, like this:

Code: Select all

allowed_hosts=127.0.0.1,::1,192.168.0.132
And restarted the nagios service.

3. [solaris client]

Code: Select all

# svcs -a |grep ipf
disabled       Oct_08   svc:/network/ipfilter:default
---
What should we do next?

Re: Open 5666 port in Solaris for NXI monitoring

Posted: Thu Mar 14, 2019 10:02 am
by cdienger
The nagios service should open up port 5666. Are you seeing anything in the /var/svc/log/application-nagios-nrpe:default.log or /var/svc/log/network-nagios-nrpe:default.log files? What is the status when you run "svcs | grep nrpe" ?

Re: Open 5666 port in Solaris for NXI monitoring

Posted: Fri Mar 15, 2019 1:21 am
by axvers
There's no output for any nrpe service on the solaris client.

So, do I need to add some plugin or package for solaris client?

I thought I can monitor solaris client through the solaris wizard on the monitoring server, and only thing needs to be done is open 5666 port.

What should I do next?

Re: Open 5666 port in Solaris for NXI monitoring

Posted: Fri Mar 15, 2019 9:38 am
by cdienger
The NRPE agent would need to be installed on the Solaris server. The wizard should have links for it or you can find steps at https://support.nagios.com/kb/article/n ... ml#Solaris.

Re: Open 5666 port in Solaris for NXI monitoring

Posted: Sat Mar 16, 2019 5:04 am
by axvers
Ok, we got it.

please lock this posts.

Thanks for helping!

Re: Open 5666 port in Solaris for NXI monitoring

Posted: Mon Mar 18, 2019 9:19 am
by cdienger
Glad to hear!