Page 1 of 2
Nogios xi linux client
Posted: Wed Jan 25, 2012 12:30 pm
by jcamillo
I have installed the nogios linux client. From the monitoring server it give the error message Timeout while attempting connection. I have checked the linux firewall and actually tried to disable it with no luck.
I opened 5666 and 5667. Is this the ports the nogios xi client listen on?
what else can i check?
Re: Nogios xi linux client
Posted: Wed Jan 25, 2012 12:55 pm
by lmiltchev
You need port 5666 opened. You can temporarily stop your firewall for troubleshooting purposes:
Check your the nagios server IP address is added in "/etc/xinetd.d/nrpe".
You should see a line that says:
only_from = 127.0.0.1
Add your nagios server IP, so it is going to look like this:
only_from = 127.0.0.1 192.168.X.XXX
Restart the daemon:
Note: Don't use a coma between the two IP addresses; use a space only.
Check if everything is OK on the target machine:
You should see something like this:
tcp 0 0 *:nrpe *:* LISTEN
Code: Select all
# /usr/local/nagios/libexec/check_nrpe -H localhost
You should see:
NRPE v2.12
If everything is good, try running this from your nagios server:
Code: Select all
# /usr/local/nagios/libexec/check_nrpe -H <your_target_machine_IP_address>
You should see the NRPE version as an output.
If you haven't use our documentation for installing the linux agent, you can try to reinstall the agent following this document:
http://assets.nagios.com/downloads/nagi ... _Agent.pdf
Re: Nogios xi linux client
Posted: Wed Jan 25, 2012 1:23 pm
by jcamillo
I can not find this file:
# vi /etc/xinetd.d/nrpe
Re: Nogios xi linux client
Posted: Wed Jan 25, 2012 1:25 pm
by jcamillo
I am actually getting - Connection refused by host
Re: Nogios xi linux client
Posted: Wed Jan 25, 2012 1:34 pm
by scottwilkerson
jcamillo wrote:I can not find this file:
# vi /etc/xinetd.d/nrpe
Are you looking on the Nagios XI server or the remote machine?
Should be remote machine.
Re: Nogios xi linux client
Posted: Wed Jan 25, 2012 1:48 pm
by jcamillo
remote machine
Re: Nogios xi linux client
Posted: Wed Jan 25, 2012 1:51 pm
by jcamillo
This is the install i used - linux-nrpe-agent-el4.tar.gz
./fullinstall
Re: Nogios xi linux client
Posted: Wed Jan 25, 2012 2:18 pm
by scottwilkerson
What OS and version are you running on the remote machine?
Re: Nogios xi linux client
Posted: Wed Jan 25, 2012 2:20 pm
by jcamillo
Linux version 2.6.32-131.0.15.el6.x86_64 (
[email protected]) (gcc version 4.4.4 20100726 (Red Hat 4.4.4-13) (GCC) ) #1 SMP Tue May 10 15:42:40 EDT 2011
[root@app-dev xinetd.d]#
Re: Nogios xi linux client
Posted: Wed Jan 25, 2012 2:23 pm
by scottwilkerson
For RHEL/CentOS 5-6 (el5 & el6) the install file should be:
Code: Select all
# wget http://assets.nagios.com/downloads/nagiosxi/agents/linux-nrpe-agent.tar.gz
Detailed install instructions may be found here
Installing_The_XI_Linux_Agent