LinuxQuestions.org
Register a domain and help support LQ
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 05-17-2011, 05:51 AM   #1
aocferreira
Member
 
Registered: Feb 2011
Posts: 110

Rep: Reputation: 0
nagios configuration with NRPE


Hello,

I've followed all the instructions in nagios documentation to install the nrpe agent in a remote host, but the daemon nrpe is not listening on port.. that means I can't even test it localhost!

netstat -at | grep nrpe
returns nothing.

You added the nrpe entry to your /etc/services file - done
The only_from directive in the /etc/xinetd.d/nrpe file contains an entry for "127.0.0.1" - done
xinetd is installed and started - done
Check the system log files for references about xinetd or nrpe and fix any problems that are reported - syslog empty..

Installed lsof and lsof +M -i4:

xinetd 25680 root 5u IPv4 75987 TCP *:nrpe (LISTEN)

Is there anything else I can do to correct this? I configured this yesterday and it was working ok.. but today when got into computer it stopped working :|

Last edited by aocferreira; 05-17-2011 at 05:54 AM.
 
Old 05-17-2011, 10:24 AM   #2
MensaWater
Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,028
Blog Entries: 5

Rep: Reputation: 791Reputation: 791Reputation: 791Reputation: 791Reputation: 791Reputation: 791Reputation: 791
Is xinetd running? (ps -ef |grep xinetd).

What exactly is in your nrpe file under the xinetd directory?

What does "grep nrpe /etc/services" show?

When you run "lsof -i:nrpe" does it show anything?

If you run "lsof -i:####" where #### is the port from /etc/services does it show the same thing as above command?

If you run "kill -SIGHUP <PID>" where PID is the process ID shown for xinetd above then redo the other commands is there any change?

FYI: If you put localhost (127.0.0.1) in only_from it means your Nagios master won't be able to talk to this host - the value for only_from should be the IP of the Nagios master.
 
Old 05-24-2011, 09:45 AM   #3
brownie_cookie
Member
 
Registered: Mar 2011
Location: Belgium
Distribution: CentOS release 5.5 (Final), Red Hat Enterprise Linux ES release 4 (Nahant Update 8)
Posts: 416
Blog Entries: 2

Rep: Reputation: 12
it's like MensaWater says, if there is only an entry (only_from) which is your localhost (127.0.0.1) than the monitoring host won't be able to communicate with your remote host.
 
0 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
nagios + nrpe configuration aeby Linux - Server 6 05-29-2012 12:52 PM
Installing Nagios agent nrpe, problems following nrpe install steps rfreiberger Linux - Newbie 3 04-19-2010 09:43 AM
Nagios--- NRPE lazylark Linux - Software 1 04-11-2007 02:57 PM
Nagios - nrpe plugin configuration nitin-saxena Linux - Software 1 10-27-2006 02:50 PM
Nagios NRPE twantrd Linux - Software 1 10-20-2004 09:24 AM


All times are GMT -5. The time now is 07:36 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration