Nogios xi linux client

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
jcamillo
Posts: 29
Joined: Wed Jan 04, 2012 8:52 am

Nogios xi linux client

Post 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?
User avatar
lmiltchev
Former Nagios Staff
Posts: 13587
Joined: Mon May 23, 2011 12:15 pm

Re: Nogios xi linux client

Post by lmiltchev »

You need port 5666 opened. You can temporarily stop your firewall for troubleshooting purposes:

Code: Select all

# service iptables stop
Check your the nagios server IP address is added in "/etc/xinetd.d/nrpe".

Code: Select all

# vi /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:

Code: Select all

# service xinetd restart
Note: Don't use a coma between the two IP addresses; use a space only.

Check if everything is OK on the target machine:

Code: Select all

# netstat -at | grep nrpe
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
Be sure to check out our Knowledgebase for helpful articles and solutions!
jcamillo
Posts: 29
Joined: Wed Jan 04, 2012 8:52 am

Re: Nogios xi linux client

Post by jcamillo »

I can not find this file:
# vi /etc/xinetd.d/nrpe
jcamillo
Posts: 29
Joined: Wed Jan 04, 2012 8:52 am

Re: Nogios xi linux client

Post by jcamillo »

I am actually getting - Connection refused by host
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nogios xi linux client

Post 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.
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
jcamillo
Posts: 29
Joined: Wed Jan 04, 2012 8:52 am

Re: Nogios xi linux client

Post by jcamillo »

remote machine
jcamillo
Posts: 29
Joined: Wed Jan 04, 2012 8:52 am

Re: Nogios xi linux client

Post by jcamillo »

This is the install i used - linux-nrpe-agent-el4.tar.gz

./fullinstall
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nogios xi linux client

Post by scottwilkerson »

What OS and version are you running on the remote machine?
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
jcamillo
Posts: 29
Joined: Wed Jan 04, 2012 8:52 am

Re: Nogios xi linux client

Post by jcamillo »

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]#
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nogios xi linux client

Post 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
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked