Beginner questions and Plugins

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Peterbond
Posts: 2
Joined: Tue Jan 26, 2016 6:03 am

Beginner questions and Plugins

Post by Peterbond »

Hello to all,
i'm new to nagios and try to refresh my Linux knowlege, ok my english isn't that good too.

How should i begin?
I'm running nagios 4.11core on Ubuntu 15.10.
(http://www.unixmen.com/how-to-install-n ... ntu-15-10/)

Check host alive is checking all the Server i want to Monitor.
My next step was that i installed nsclient ++ on a Windows Server. (all Server are Windowsserver)

I read that NRPE is not in the plugin package.
so installed it like
$ sudo apt-get install nagios-nrpe-server nagios-plugins
(I think i installed it without ssh.)

I think my Problem ist now that i have 2 plugins Directorys?

/usr/lib/nagios/plugins$ (with check_nrpe)
/usr/local/nagios/libexec$ (without)


my nrpe.cfg ist here /etc/nagios$ but some documentations told me it should be :/usr/local/nagios/etc$
where my nagios.cfg lays.

First question: did i to much installations?
is it possible to deinstall one or is it better to Change some path.
But who tells my nagios to watch in this or this plugin Folder?

./check_nrpe -H 1x.xx.x.x -n
I (0.4.4.15 2015-11-25) seem to be doing fine...

and this is the error i get on nagios
(No output on stdout) stderr: execvp(/usr/local/nagios/libexec/check_nrpe, ...) failed. errno is 2: No such file or directory


I would be very happy, someone takes my Hand and helps me.:)
talk to me like you would with your son.

Thx a lot Peterbond
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Beginner questions and Plugins

Post by hsmith »

Peterbond wrote:Hello to all,
i'm new to nagios and try to refresh my Linux knowlege, ok my english isn't that good too.
Everyone has to start somewhere. We'll do our best to help you out. :)
Peterbond wrote: I think my Problem ist now that i have 2 plugins Directorys?
The package available on apt-get may behave differently.. if you did a source installation of NRPE, it would have installed in the /usr/local/nagios/libexec directory.
Peterbond wrote:my nrpe.cfg ist here /etc/nagios$ but some documentations told me it should be :/usr/local/nagios/etc$
The NRPE cfg won't be used unless you're trying to monitor this server. It looks like you just want to use check_nrpe, so you shouldn't have to worry too much about it.
Peterbond wrote: First question: did i to much installations?
I don't think so.
Peterbond wrote:is it possible to deinstall one or is it better to Change some path.
I would move check_nrpe to /usr/local/nagios/libexec.
Peterbond wrote:But who tells my nagios to watch in this or this plugin Folder?
The commands.cfg file will tell it where to look.
Peterbond wrote:and this is the error i get on nagios
(No output on stdout) stderr: execvp(/usr/local/nagios/libexec/check_nrpe, ...) failed. errno is 2: No such file or directory
This should go away after you move check_nrpe as described above.
Peterbond wrote:I would be very happy, someone takes my Hand and helps me.:)
talk to me like you would with your son.
I don't have kids, but I do have dogs. I won't talk to you like I talk to the dogs though. :P

Let me know if you have anymore questions. Thanks!
Former Nagios Employee.
me.
Peterbond
Posts: 2
Joined: Tue Jan 26, 2016 6:03 am

Re: Beginner questions and Plugins

Post by Peterbond »

Tanks a lot :)
can i use this thread for further queitions about NRPE`?

Do you know a good Website with good examples for NRPE?
nsclient.org and i, we don't get friends?
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Beginner questions and Plugins

Post by rkennedy »

Sure, I don't know of a site that has examples.

What are you trying to do? I'll write up an example based off of that.
Former Nagios Employee
Locked