Page 1 of 5

bin folder missing from /usr/local/nagios

Posted: Sun Nov 06, 2016 10:26 am
by katya
Hi Nagios team,

I have installed nagios-plugins 2.0.2 and nrpe2.15 on my production system under /usr/local/nagios

But from some reason bin folder is missing with the nrpe file:

root@ssbpmutu:/usr/local/nagios# pwd
/usr/local/nagios
root@ssbpmutu:/usr/local/nagios# ls -la
total 23
drwxr-xr-x 7 nagios app 7 May 27 2015 .
drwxrwxrwx 16 root root 18 Jun 22 2015 ..
drwxr-xr-x 2 nagios app 3 Nov 6 10:17 etc
drwxr-xr-x 2 nagios app 2 May 27 2015 include
drwxr-xr-x 2 nagios app 3 May 27 2015 lib
drwxr-xr-x 2 nagios app 64 May 27 2015 libexec
drwxr-xr-x 3 nagios app 3 May 27 2015 share

Can you please let me know what i did wrong?

Re: bin folder missing from /usr/local/nagios

Posted: Mon Nov 07, 2016 11:16 am
by dwhitfield
Can you post the output of history, scrubbing out any passwords that might be in your history. Also, can you give the output of echo $0? Thanks!

Re: bin folder missing from /usr/local/nagios

Posted: Mon Nov 07, 2016 1:46 pm
by katya
475 su - nagios
476 cd /apps/nagios/src/nagios-plugins-2.0.2
477 ./configure --prefix=/application/nagios --with-nagios-user=nagios --with-nagios-group=nagios --with-trusted-path=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin --with-cgiurl=/nagios/cgi-bin --with-openssl=/usr/local/ssl --with-perl=/usr/local/bin --enable-perl-modules --without-dbi --without-radius --without-ldap --with-gnu-ld
478 su - nagios
479 /usr/sfw/bin/gmake install-root
480 cd /usr/local/nagios/libexec/
481 ./check_disk -w 10 -c 5 -p /
482 su - nagios
483 gmake install
484 su - nagios
485 vi /etc/services
486 su - nagios
487 /usr/local/nagios/bin/nrpe -c /usr/local/nagios/etc/nrpe.cfg .d
488 cd /apps/nagios//src/nrpe-2.15/
489 gmake install
490 cd /usr/local/nagios/libexec/
491 ls -la
492 ./check_nrpe -H 127.0.0.1
493 netstat -an | grep 5666
494 telnet 10.146.1.100 5666
495 uname
496 /usr/ucb/whoami
497 su - etmutu
498 su - et1
499 uname
500 /usr/ucb/whoami
501 cd /usr/local/nagios/
502 history

root@ssbpmutu:/usr/local/nagios# echo $0
bash

Re: bin folder missing from /usr/local/nagios

Posted: Mon Nov 07, 2016 1:55 pm
by dwhitfield
So, I notice several differences from our NRPE 2.15 instructions. Can you try installing using https://support.nagios.com/kb/article.php?id=8 ? Thanks!

Re: bin folder missing from /usr/local/nagios

Posted: Tue Nov 08, 2016 3:51 am
by katya
Hi,

My machines are Unix-Solaris machines.

So i use this procedure https://lucamerello.wordpress.com/2014/ ... -and-nrpe/

I didnt find in your site installation for Solaris.

Re: bin folder missing from /usr/local/nagios

Posted: Tue Nov 08, 2016 10:26 am
by rkennedy
We have documentation available for installing NRPE on Solaris here - https://assets.nagios.com/downloads/nag ... 1444063497

Just to clarify - what files are you looking for in the bin directory? Everything that plugins depend on should be in libexec with the exception of a few components -

Code: Select all

[root@localhost bin]# ls
file2sock  log2ndo  nagios  nagiostats  ndo2db  ndomod.o  npcd  npcdmod.o  nrpe  nsca  sockdebug

Re: bin folder missing from /usr/local/nagios

Posted: Wed Nov 09, 2016 3:13 am
by katya
You send me installation of Nagiox XI but it is nagios core (nrpe 2,15)

Re: bin folder missing from /usr/local/nagios

Posted: Wed Nov 09, 2016 9:31 am
by katya
Hi,

Good day!

i just re-install nrpe and now it seems correct i have under /usr/local/nagios all 4 folders:

root@ssbpmutu:/usr/local/nagios# ls -la
total 26
drwxr-xr-x 8 nagios app 8 Nov 9 06:57 .
drwxrwxrwx 16 root root 18 Jun 22 2015 ..
drwxrwxr-x 2 nagios nagios 3 Nov 9 06:57 bin
drwxrwxr-x 2 nagios nagios 3 Nov 9 06:57 etc
drwxr-xr-x 2 nagios app 2 May 27 2015 include
drwxr-xr-x 2 nagios app 3 May 27 2015 lib
drwxrwxr-x 2 nagios nagios 64 Nov 9 07:54 libexec
drwxr-xr-x 3 nagios app 3 May 27 2015 share
root@ssbpmutu:/usr/local/nagios#

now i'm facing CHECK_NRPE: Error - Could not complete SSL handshake issue when running root@ssbpmutu:/usr/local/nagios/libexec# ./check_nrpe -H 127.0.0.1
Just to clarify: Im using Ngaio core, nrpe-2.15, nagios-plugins-2.0.2, my machine is Solaris 10.
i used nagios troubleshot doc but again i have this issue. can you please let me know what should i do?

Re: bin folder missing from /usr/local/nagios

Posted: Wed Nov 09, 2016 1:51 pm
by avandemore
It says XI but is largely applicable to Nagios Core.

Can you attach your nrpe.cfg?

Re: bin folder missing from /usr/local/nagios

Posted: Thu Nov 10, 2016 3:39 am
by katya
Hi,

please see the attached nrpe.cfg file.

Thank you!