LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-28-2011, 06:43 PM   #1
aocferreira
Member
 
Registered: Feb 2011
Posts: 117

Rep: Reputation: 0
Network Monitoring - Communication between Nagios & NRPE


Hello,

The communication between nagios and nrpe agent in the monitored host, can be without SSL? The problem is that I have 2 different versions of debian running on the machines and there are problems related to the libssl-dev package! Thanks
 
Old 02-28-2011, 10:05 PM   #2
quanta
Member
 
Registered: Aug 2007
Location: Vietnam
Distribution: RedHat based, Debian based, Slackware, Gentoo
Posts: 724

Rep: Reputation: 101Reputation: 101
Quote:
Originally Posted by aocferreira View Post
Hello,

The communication between nagios and nrpe agent in the monitored host, can be without SSL?
Yes, it can.
Quote:
Originally Posted by aocferreira View Post
The problem is that I have 2 different versions of debian running on the machines and there are problems related to the libssl-dev package! Thanks
What exactly is your problem?

Last edited by quanta; 02-28-2011 at 10:06 PM.
 
Old 03-01-2011, 07:26 AM   #3
aocferreira
Member
 
Registered: Feb 2011
Posts: 117

Original Poster
Rep: Reputation: 0
I already forgot the idea to use SSL. Now i have installed both nagios and nrpe plugin with the --disable-ssl option. I am following the NRPE official documentation but in this step:

ii. Test communication with the NRPE daemon
Make sure the check_nrpe plugin can talk to the NRPE daemon on the remote host. Replace "192.168.0.1" in the
command below with the IP address of the remote host that has NRPE installed.
/usr/local/nagios/libexec/check_nrpe -H 192.168.0.1
You should get a string back that tells you what version of NRPE is installed on the remote host, like this:
NRPE v2.8

I get an error: CHECK_NRPE: Received 0 bytes from daemon. Check the remote server logs for error messages.

Any idea?
 
Old 03-01-2011, 07:32 AM   #4
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hello,

What error do you get in the remote server logs? That should tell you something. Also, do you have firewall enabled (IPTABLES)?

Kind regards,

Eric
 
Old 03-01-2011, 08:45 AM   #5
aocferreira
Member
 
Registered: Feb 2011
Posts: 117

Original Poster
Rep: Reputation: 0
Remote server logs is /var/log/messages ? There's nothing there about npre..
Yap, firewall was configured:

# iptables -I INPUT -p tcp -m tcp --dport 5666 -j DROP
# iptables -I INPUT -s <IP_SERVIDOR_NAGIOS> -p tcp -m tcp --dport 5666 -j ACCEPT
 
Old 03-01-2011, 09:03 AM   #6
aocferreira
Member
 
Registered: Feb 2011
Posts: 117

Original Poster
Rep: Reputation: 0
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT tcp -- 192.168.100.110 anywhere tcp dpt:nrpe
DROP tcp -- anywhere anywhere tcp dpt:nrpe
ACCEPT tcp -- 192.168.100.110 anywhere tcp dpt:nrpe
DROP tcp -- anywhere anywhere tcp dpt:nrpe

Chain FORWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination
 
Old 03-01-2011, 10:00 AM   #7
aocferreira
Member
 
Registered: Feb 2011
Posts: 117

Original Poster
Rep: Reputation: 0
I think the problem is in the connection between the server and the remote machine.. But i don't know how to solve this!
If i try 'telnet 192.168.100.1 5666' in the Monitoring machine:

Trying 192.168.100.1...
Connected to 192.168.100.1.
Escape character is '^]'.
Connection closed by foreign host.
 
Old 03-01-2011, 08:01 PM   #8
quanta
Member
 
Registered: Aug 2007
Location: Vietnam
Distribution: RedHat based, Debian based, Slackware, Gentoo
Posts: 724

Rep: Reputation: 101Reputation: 101
Which mode did you run NRPE: standalone or under xinetd (inetd)?

Last edited by quanta; 03-02-2011 at 07:31 AM.
 
Old 03-02-2011, 06:59 PM   #9
aocferreira
Member
 
Registered: Feb 2011
Posts: 117

Original Poster
Rep: Reputation: 0
the problem was solved.. i had to add the IP of the server to /etc/hosts.allow otherweise there was no connection!thank u all
 
Old 03-02-2011, 09:01 PM   #10
quanta
Member
 
Registered: Aug 2007
Location: Vietnam
Distribution: RedHat based, Debian based, Slackware, Gentoo
Posts: 724

Rep: Reputation: 101Reputation: 101
Quote:
Originally Posted by aocferreira View Post
the problem was solved.. i had to add the IP of the server to /etc/hosts.allow otherweise there was no connection!thank u all
Surprising! I have never been forced to add the monitoring host's IP to /etc/hosts.allow on remote host. What Nagios and NRPE version did you run?
 
Old 03-03-2011, 01:21 AM   #11
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hi,

Neither did I have to modify those settings. Do you have by any chance SELinux activated?

Kind regards,

Eric
 
Old 03-03-2011, 10:13 AM   #12
aocferreira
Member
 
Registered: Feb 2011
Posts: 117

Original Poster
Rep: Reputation: 0
nagios 3.2.3 & nrpe 2.12
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing Nagios agent nrpe, problems following nrpe install steps rfreiberger Linux - Newbie 3 04-19-2010 08:43 AM
network monitoring:unable to launch nagios network monitoring system oladapo1980 Linux - Newbie 0 07-21-2009 01:45 PM
LXer: Nagios: Monitoring Windows Machines with NRPE LXer Syndicated Linux News 0 03-09-2009 10:40 AM
Nagios...NRPE and SSL communication...Must be a how to somewhere?? helptonewbie Linux - Newbie 4 05-14-2008 10:08 AM
Network monitoring : Nagios vs nmap threelions66 Linux - Software 1 09-07-2006 01:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration