Page 1 of 2
nrpe not showing in netstat
Posted: Thu May 15, 2014 9:57 am
by prentmee
This server was running Nagios core version 3.2.1.
I uninstalled Nagios and installed Nagios xi client.
I have done this successfully several times before.
I have verified /usr/local/nagios/etc/nrpe.cfg
allowed_hosts=127.0.0.1,10.100.6.186
dont_blame_nrpe=1
I have also verified /etc/xinetd.d/nrpe
only_from = 10.100.6.186
from the command line I am able to run check commands
/usr/local/nagios/libexec/check_load -w 15,10,5 -c 30,25,20
OK - load average: 0.00, 0.02, 0.00|load1=0.000;15.000;30.000;0; load5=0.020;10.000;25.000;0; load15=0.000;5.000;20.000;0;
the above command worked with the firewall started and stopped.
firewall is down right now until I figure this issue out.
I see "Connection refused by host" from the Nagios XI server web interface.
when I check netstat I do not see the nrpe process. I also do not see it from a ps command.
I do see nsca
tcp 0 0 *:nsca *:* LISTEN
I have tried restarting xinetd server and that doesn't help.
Red Hat Enterprise Linux Server release 5.2
32-bit server
please help
thanks
Re: nrpe not showing in netstat
Posted: Thu May 15, 2014 11:33 am
by abrist
Is 10.100.6.186 you nagios XI server, or a remote host?
Re: nrpe not showing in netstat
Posted: Thu May 15, 2014 11:56 am
by prentmee
nagios server is 10.100.6.186
Re: nrpe not showing in netstat
Posted: Thu May 15, 2014 3:31 pm
by sreinhardt
Have you attempted to run the nrpe binary with the -c [config file] options? Otherwise let's verify that port seems to be open from the outside.
Code: Select all
nmap -p 5666-5667 [host\IP of nrpe server]
Re: nrpe not showing in netstat
Posted: Fri May 16, 2014 4:53 am
by prentmee
nmap -p 5666-5667 10.100.6.104
Starting Nmap 5.51 (
http://nmap.org ) at 2014-05-16 04:51 CDT
Nmap scan report for
www.labels-wbmason.com (10.100.6.104)
Host is up (0.0011s latency).
PORT STATE SERVICE
5666/tcp closed nrpe
5667/tcp open unknown
MAC Address: 00:1B:78:D0:3D:98 (Hewlett Packard)
Nmap done: 1 IP address (1 host up) scanned in 0.28 seconds
Re: nrpe not showing in netstat
Posted: Fri May 16, 2014 4:57 am
by prentmee
To help clarify...
the client server having the issue = 10.100.6.104
Nagios server = 10.100.6.186
Re: nrpe not showing in netstat
Posted: Fri May 16, 2014 10:21 am
by slansing
Well, looks like port 5666 is closed, you will need that open to communicate via NRPE.
Re: nrpe not showing in netstat
Posted: Tue May 20, 2014 12:24 pm
by prentmee
how do I open the port?
The firewall is off.
I've restarted xinetd.
I've even rebooted the server.
is there something wrong with nrpe? Should I uninstall and re-install the nagios client?
I'm not aware of a way to open a port. I thought all ports are open based on a service that needs that port.
thoughts?
-pete
Re: nrpe not showing in netstat
Posted: Tue May 20, 2014 12:36 pm
by lmiltchev
How did you install the linux agent? Did you follow
this document? You can try reinstalling the agent, following our official documentation.
Re: nrpe not showing in netstat
Posted: Wed May 21, 2014 5:19 am
by prentmee
Yes I followed all these steps.
Everything except the wget. I have a copy of the install downloaded to a central repository.
I do not see an un-install script. Do I just delete all the files in /usr/local/nagios?
when I run the full install it thinks everything is fine.
Do you want to continue? [Y/n] y
Proceeding with installation...
Running './0-yum'...
Yum already configured - exiting.
RESULT=0
Running './1-prereqs'...
Prereqs already installed - skipping...
Note: If you want to update the RPMs installed on this system, run 'yum update'
RESULT=0
Running './2-usersgroups'...
Users/groups already configured - skipping.
RESULT=0
Running './3-services'...
/etc/services already updated - skipping.
RESULT=0
Running './4-firewall'...
Firewall rules already configured - skipping.
RESULT=0
Running './A-subcomponents'...
Subcomponents already configured - skipping.
RESULT=0
##########################################################
### ###
### Nagios XI Linux Agent Installation Complete! ###
### ###
##########################################################
If you experience any problems, please attach the file install.log that was just created to any support requests.