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
nrpe not showing in netstat
Re: nrpe not showing in netstat
Is 10.100.6.186 you nagios XI server, or a remote host?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Re: nrpe not showing in netstat
nagios server is 10.100.6.186
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: nrpe not showing in netstat
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]Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Re: nrpe not showing in netstat
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
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
To help clarify...
the client server having the issue = 10.100.6.104
Nagios server = 10.100.6.186
the client server having the issue = 10.100.6.104
Nagios server = 10.100.6.186
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: nrpe not showing in netstat
Well, looks like port 5666 is closed, you will need that open to communicate via NRPE.
Re: nrpe not showing in netstat
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
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
How did you install the linux agent? Did you follow this document? You can try reinstalling the agent, following our official documentation.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: nrpe not showing in netstat
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.
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.