Page 4 of 12
Re: Where to start!?
Posted: Fri Feb 12, 2016 2:26 pm
by trafalgargirl
No this is from the clients machine to the nagios server
Re: Where to start!?
Posted: Fri Feb 12, 2016 2:39 pm
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.
Re: Where to start!?
Posted: Fri Feb 12, 2016 2:48 pm
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
Re: Where to start!?
Posted: Fri Feb 12, 2016 2:50 pm
by hsmith
Did you create the nagios user already?
Re: Where to start!?
Posted: Fri Feb 12, 2016 2:51 pm
by trafalgargirl
I thought I had - but will go back and double check.
Re: Where to start!?
Posted: Fri Feb 12, 2016 2:53 pm
by hsmith
Re: Where to start!?
Posted: Fri Feb 12, 2016 2:55 pm
by trafalgargirl
root@ip-:/tmp/nrpe-2.15# grep nag /etc/passwd
list

38:38:Mailing List Manager:/var/list:/bin/sh
Re: Where to start!?
Posted: Fri Feb 12, 2016 3:01 pm
by hsmith
You need to make the 'nagios' user.
Re: Where to start!?
Posted: Fri Feb 12, 2016 3:03 pm
by trafalgargirl
I'm not sure where I missed that... can you point me in the right direction? Did I miss a step?
Re: Where to start!?
Posted: Fri Feb 12, 2016 3:10 pm
by hsmith