Not able to view remote host after installand configure nrpe

An open discussion forum for obtaining help with Nagios Core. Nagios Core users of all experience levels are welcome here. Subforum have been created for the discussion of Nagios Core and Nagios Plugin development.

NOTE: The SourceForge.net mailing lists have been deprecated in favor of this forum in order to expedite support and provide additional features not available on the old mailing list.

Not able to view remote host after installand configure nrpe

Postby sachinambardekar » Tue Jan 10, 2017 6:59 pm

I am not able to see the remote hosts after installation and configuration of nagios nrpe. Attached is the document followed to install nrpe.

Please advise.

Thank you,
Sachin A
Attachments
NRPE.pdf
NRPE Doc
(206.34 KiB) Downloaded 4 times
sachinambardekar
 
Posts: 23
Joined: Sat Jan 07, 2017 7:21 pm

Re: Not able to view remote host after installand configure

Postby tmcdonald » Wed Jan 11, 2017 10:18 am

Have you also created host and service configs on the Nagios server for each of the machines you wish to monitor via NRPE? This will need to be done as NRPE is an active agent, meaning Nagios needs to perform the checks instead of NRPE sending results back to Nagios on its own.
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
tmcdonald
Support Manager
 
Posts: 7869
Joined: Mon Sep 23, 2013 8:40 am

Re: Not able to view remote host after installand configure

Postby sachinambardekar » Wed Jan 11, 2017 3:13 pm

I see that that there are 2 nagios.cfg file and one hosts.cfg file on the server. Which one I need to configure.

./etc/nagios/nagios.cfg
./usr/local/nagios/etc/nagios.cfg


./etc/nagios/objects/CTR/hosts.cfg

Please advise.

Thank you,
Sachin A
sachinambardekar
 
Posts: 23
Joined: Sat Jan 07, 2017 7:21 pm

Re: Not able to view remote host after installand configure

Postby dwhitfield » Wed Jan 11, 2017 3:50 pm

With Core it's difficult to know for sure. What version of Core are you using? Was it compiled from source or installed from distro repos? On what OS/version is nagios running? cat /etc/*-release may be of use.

If you mix and match repos and source, you will run into trouble.

That said, it's probably /usr/local/nagios/etc/nagios.cfg
User avatar
dwhitfield
Support Tech
 
Posts: 1465
Joined: Wed Sep 21, 2016 10:29 am
Location: Nagios Enterprises, LLC

Re: Not able to view remote host after installand configure

Postby sachinambardekar » Wed Jan 11, 2017 4:59 pm

I am installing nagios-4.2.4.
A. Download Nagios Core and Plugins
B. Required Nagios pre-installation packages/rpms
C. create nagios OS user and nagcmd group
D. Untar the software to the server under /root/repos directory
E. ./configure --with-command-group=nagcmd
sachinambardekar
 
Posts: 23
Joined: Sat Jan 07, 2017 7:21 pm

Re: Not able to view remote host after installand configure

Postby dwhitfield » Wed Jan 11, 2017 5:12 pm

That looks like a paraphrase of your steps, but in case that is step-by-step, you are missing some make steps listed at https://support.nagios.com/kb/article.php?id=96

That ./etc/nagios/nagios.cfg still looks worrisome to me.

What's the output of rpm -qa nagios*? You didn't give us the output of cat /etc/*-release, so not sure if you are running a rpm-based distro, so you may need to modify that for your package manager.
Last edited by dwhitfield on Mon Jan 16, 2017 3:39 pm, edited 1 time in total.
Reason: cp fail
User avatar
dwhitfield
Support Tech
 
Posts: 1465
Joined: Wed Sep 21, 2016 10:29 am
Location: Nagios Enterprises, LLC

Re: Not able to view remote host after installand configure

Postby sachinambardekar » Sat Jan 14, 2017 1:53 pm

Is it mandatory to install NRPE on Nagios Core server as well? What is the compatible NRPE version with Nagios Core?

Please advise.

Thank you,
Sachin A
sachinambardekar
 
Posts: 23
Joined: Sat Jan 07, 2017 7:21 pm

Re: Not able to view remote host after installand configure

Postby rkennedy » Mon Jan 16, 2017 12:51 pm

sachinambardekar wrote:Is it mandatory to install NRPE on Nagios Core server as well? What is the compatible NRPE version with Nagios Core?

Please advise.

Thank you,
Sachin A


You need to compile the NRPE plugin in order to check via NRPE through the systems. Core will work with NRPE v2.15 or v3 - see the articles here - https://support.nagios.com/kb/category.php?id=22
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
rkennedy
Support Tech
 
Posts: 5916
Joined: Mon Oct 05, 2015 11:45 am
Location: Nagios Enterprises

Re: Not able to view remote host after installand configure

Postby sachinambardekar » Mon Jan 16, 2017 1:53 pm

Sorry, not following what you mentioned in your previous post. Do I have to install NRPE along with Nagios core on the server where Nagios Core is installed in order to monitor Nagios Core server?

Please advise.

Thank you,
Sachin A
sachinambardekar
 
Posts: 23
Joined: Sat Jan 07, 2017 7:21 pm

Re: Not able to view remote host after installand configure

Postby dwhitfield » Mon Jan 16, 2017 3:48 pm

sachinambardekar wrote:. Do I have to install NRPE along with Nagios core on the server where Nagios Core is installed in order to monitor Nagios Core server?


Maybe it would be helpful if we took a step back to see what you are actually trying to do. Your subject talks about remote hosts. Now you're talking about monitoring the Nagios Core server itself. Could you describe a bit more about what you are trying to do? Maybe NRPE is not the best method for what you are trying to do.

Could you please post your nagios.cfg?
Also, could you post any /usr/local/nagios/etc/nrpe.cfg you have set up and tell us where you have them set up.
User avatar
dwhitfield
Support Tech
 
Posts: 1465
Joined: Wed Sep 21, 2016 10:29 am
Location: Nagios Enterprises, LLC

Next

Return to Nagios Core

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 18 guests