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?
Nogios xi linux client
-
- Former Nagios Staff
- Posts: 13589
- Joined: Mon May 23, 2011 12:15 pm
Re: Nogios xi linux client
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:
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:
You should see:
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
Code: Select all
# service iptables stop
Code: Select all
# vi /etc/xinetd.d/nrpe
Add your nagios server IP, so it is going to look like this:only_from = 127.0.0.1
Restart the daemon:only_from = 127.0.0.1 192.168.X.XXX
Code: Select all
# service xinetd restart
Check if everything is OK on the target machine:
Code: Select all
# netstat -at | grep nrpe
tcp 0 0 *:nrpe *:* LISTEN
Code: Select all
# /usr/local/nagios/libexec/check_nrpe -H localhost
If everything is good, try running this from your nagios server:NRPE v2.12
Code: Select all
# /usr/local/nagios/libexec/check_nrpe -H <your_target_machine_IP_address>
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
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
- Posts: 29
- Joined: Wed Jan 04, 2012 8:52 am
Re: Nogios xi linux client
I can not find this file:
# vi /etc/xinetd.d/nrpe
# vi /etc/xinetd.d/nrpe
-
- Posts: 29
- Joined: Wed Jan 04, 2012 8:52 am
Re: Nogios xi linux client
I am actually getting - Connection refused by host
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
Re: Nogios xi linux client
Are you looking on the Nagios xi server or the remote machine?jcamillo wrote:I can not find this file:
# vi /etc/xinetd.d/nrpe
Should be remote machine.
-
- Posts: 29
- Joined: Wed Jan 04, 2012 8:52 am
Re: Nogios xi linux client
This is the install i used - linux-nrpe-agent-el4.tar.gz
./fullinstall
./fullinstall
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
Re: Nogios xi linux client
What OS and version are you running on the remote machine?
-
- Posts: 29
- Joined: Wed Jan 04, 2012 8:52 am
Re: Nogios xi linux client
Linux version 2.6.32-131.0.15.el6.x86_64 (mockbuild@x86-007.build.bos.redhat.com) (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]#
[root@app-dev xinetd.d]#
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
Re: Nogios xi linux client
For RHEL/CentOS 5-6 (el5 & el6) the install file should be:
Detailed install instructions may be found here
Installing_The_xi_Linux_Agent
Code: Select all
# wget http://assets.nagios.com/downloads/nagiosxi/agents/linux-nrpe-agent.tar.gz
Installing_The_xi_Linux_Agent