LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 03-29-2010, 02:01 AM   #1
rfreiberger
Member
 
Registered: Jul 2009
Location: Union City, CA, USA
Distribution: FreeBSD, Mint, CentOS
Posts: 35

Rep: Reputation: 16
Installing Nagios agent nrpe, problems following nrpe install steps


I'm building a test network for monitoring, so far I have a Ubuntu 9.10 server running Nagios 3.2.1, I followed the install documents from the Nagios site, they worked 100% for Ubuntu but had problems installing the agent on another Ubuntu server.

Below is the steps how I'm doing the install.

1) sudo -s

2) /usr/sbin/useradd nagios

3) passwd nagios

4) enter in standard password

5) tar xzf nagios-plugins-1.4.14.tar.gz

6) cd nagios-plugins-1.4.14

7) ./configure

8) make

9) make install

10) chown nagios.nagios /usr/local/nagios

11) chown -R nagios.nagios /usr/local/nagios/libexec

12) apt-get install xinetd

13) tar xzf nrpe-2.12.tar.gz

14) cd nrpe-2.14

15) ./configure (had some problems were it would only work if I added --disable-ssl)

16) make all

17) make install-plugin

18) make install-daemon

19) make install-daemon-config

20) make install-xinetd

21) vi /etc/xinetd.d/nrpe

22) edit "only_from = xxx.xxx.xxx.xxx (Nagios server)"

23) vi /etc/services

24) add "nrpe 5666/tcp # NRPE

25) service xinetd restart

26) netstat -at | grep nrpe

27) result - tcp 0 0 *:nrpe *:* LISTEN

28) /usr/local/nagios/libexec/check_nrpe -H localhost

29) result - "CHECK_NRPE: Received 0 bytes from daemon. Check the remote server logs for an error message."

I searched the files and Nagios docs but think the problem is something do due with SSL. I'm not sure where to find this or is it possible to disable SSL? Should I just start over on the Nagios server and compile as non-SSL?

Thanks so much!
 
Old 03-29-2010, 02:14 AM   #2
kirukan
Senior Member
 
Registered: Jun 2008
Location: Eelam
Distribution: Redhat, Solaris, Suse
Posts: 1,219

Rep: Reputation: 131Reputation: 131
FYI- NRPE is not necessary for localhost monitoring.
 
Old 03-29-2010, 02:17 AM   #3
rfreiberger
Member
 
Registered: Jul 2009
Location: Union City, CA, USA
Distribution: FreeBSD, Mint, CentOS
Posts: 35

Original Poster
Rep: Reputation: 16
I might have it incorrect. I have two servers, both running Ubuntu. Server 1 is running Nagios, as the reporting, while Server 2 is just running the agents. The problem is if the steps I did on Server 2 will work connecting to Server 1, or did I make a mistake on something else.

I'm really green so I'm sure I overlooked something.
 
Old 04-19-2010, 08:43 AM   #4
srinureddy52
LQ Newbie
 
Registered: Apr 2010
Posts: 1

Rep: Reputation: 0
nrpe.conf file

I think you have missed the configration of nrpe.cfg file.
This file is located under /usr/local/nagios/etc/nrpe.cfg , in that
file you have to write the command checks , and the hosts to allow ,
then you have to check it with
ex : /usr/local/nagios/libexec/check_nrpe -H localhost -c current_users
// if you have the commnad to check the users currently logged already
then reply will come with no.of users logged in either with ok are warning stage , by the values mentioned in nrpe.cfg.
 
  


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 11:52 AM
Nagios and NRPE install and36y Linux - Newbie 2 11-12-2009 10:47 AM
Nagios, NRPE, cmd permissions problems Rush_898 Linux - Server 2 03-17-2008 07:18 AM
Nagios--- NRPE lazylark Linux - Software 1 04-11-2007 01:57 PM
Nagios NRPE twantrd Linux - Software 1 10-20-2004 08:24 AM


All times are GMT -5. The time now is 05:17 PM.

Main Menu
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