Where to start!?

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.
trafalgargirl
Posts: 80
Joined: Tue Feb 09, 2016 12:17 pm
Location: Montreal, Quebec, Canada

Re: Where to start!?

Post by trafalgargirl »

No this is from the clients machine to the nagios server
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Where to start!?

Post by hsmith »

You're trying to check_nrpe FROM the client machine TO the Nagios server? This is likely going to fail because the Nagios server isn't configured to handle that check. Let me know if I'm not understanding this correctly.
Former Nagios Employee.
me.
trafalgargirl
Posts: 80
Joined: Tue Feb 09, 2016 12:17 pm
Location: Montreal, Quebec, Canada

Re: Where to start!?

Post by trafalgargirl »

No you are right I was being an idiot and had too many windows open. So I went back to my client server and did the following:

Now I get this:

./configure --with-ssl-lib=/usr/lib/x86_64-linux-gnu/

*** Configuration summary for nrpe 2.15 09-06-2013 ***:

General Options:
-------------------------
NRPE port: 5666
NRPE user: nagios
NRPE group: nagios
Nagios user: nagios
Nagios group: nagios

make
cd ./src/; make ; cd ..
make[1]: Entering directory `/tmp/nrpe-2.15/src'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/tmp/nrpe-2.15/src'

*** Compile finished ***

If the NRPE daemon and client compiled without any errors, you
can continue with the installation or upgrade process.

Read the PDF documentation (NRPE.pdf) for information on the next
steps you should take to complete the installation or upgrade.

make install

root@ip-:/tmp/nrpe-2.15# make install
cd ./src/ && make install
make[1]: Entering directory `/tmp/nrpe-2.15/src'
make install-plugin
make[2]: Entering directory `/tmp/nrpe-2.15/src'
/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/libexec
/usr/bin/install: invalid user `nagios'
make[2]: *** [install-plugin] Error 1
make[2]: Leaving directory `/tmp/nrpe-2.15/src'
make[1]: *** [install] Error 2
make[1]: Leaving directory `/tmp/nrpe-2.15/src'
make: *** [install] Error 2
Last edited by trafalgargirl on Fri Feb 12, 2016 2:58 pm, edited 1 time in total.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Where to start!?

Post by hsmith »

Did you create the nagios user already?
Former Nagios Employee.
me.
trafalgargirl
Posts: 80
Joined: Tue Feb 09, 2016 12:17 pm
Location: Montreal, Quebec, Canada

Re: Where to start!?

Post by trafalgargirl »

I thought I had - but will go back and double check.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Where to start!?

Post by hsmith »

All right.

Code: Select all

grep nag /etc/passwd


should do it.
Former Nagios Employee.
me.
trafalgargirl
Posts: 80
Joined: Tue Feb 09, 2016 12:17 pm
Location: Montreal, Quebec, Canada

Re: Where to start!?

Post by trafalgargirl »

root@ip-:/tmp/nrpe-2.15# grep nag /etc/passwd
list:x:38:38:Mailing List Manager:/var/list:/bin/sh
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Where to start!?

Post by hsmith »

You need to make the 'nagios' user.
Former Nagios Employee.
me.
trafalgargirl
Posts: 80
Joined: Tue Feb 09, 2016 12:17 pm
Location: Montreal, Quebec, Canada

Re: Where to start!?

Post by trafalgargirl »

I'm not sure where I missed that... can you point me in the right direction? Did I miss a step?
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Where to start!?

Post by hsmith »

http://www.box293.com/guides/nrpe/insta ... unix-linux is a good thing to read. Check it out!
Former Nagios Employee.
me.
Locked