Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 05-17-2011, 04:51 AM   #1
Registered: Feb 2011
Posts: 116

Rep: Reputation: 0
nagios configuration with NRPE


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 "" - 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 04:54 AM.
Old 05-17-2011, 09:24 AM   #2
LQ Guru
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,986
Blog Entries: 14

Rep: Reputation: 1187Reputation: 1187Reputation: 1187Reputation: 1187Reputation: 1187Reputation: 1187Reputation: 1187Reputation: 1187Reputation: 1187
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 ( 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, 08:45 AM   #3
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 ( than the monitoring host won't be able to communicate with your remote host.
0 members found this post helpful.


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 11:52 AM
Installing Nagios agent nrpe, problems following nrpe install steps rfreiberger Linux - Newbie 3 04-19-2010 08:43 AM
Nagios--- NRPE lazylark Linux - Software 1 04-11-2007 01:57 PM
Nagios - nrpe plugin configuration nitin-saxena Linux - Software 1 10-27-2006 01:50 PM
Nagios NRPE twantrd Linux - Software 1 10-20-2004 08:24 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:14 AM.

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