root@nagios-vz:/usr/local/nagios/libexec#
cd /tmp/
root@nagios-vz:/tmp#
wget http://downloads.sourceforge.net/projec ... 2.1.tar.gz
--2018-04-26 10:45:02--
http://downloads.sourceforge.net/projec ... 2.1.tar.gz
Résolution de downloads.sourceforge.net (downloads.sourceforge.net)… 216.105.38.13
Connexion à downloads.sourceforge.net (downloads.sourceforge.net)|216.105.38.13|:80… connecté.
requête HTTP transmise, en attente de la réponse… 302 Found
Emplacement :
https://netix.dl.sourceforge.net/projec ... 2.1.tar.gz [suivant]
--2018-04-26 10:45:02--
https://netix.dl.sourceforge.net/projec ... 2.1.tar.gz
Résolution de netix.dl.sourceforge.net (netix.dl.sourceforge.net)… 87.121.121.2
Connexion à netix.dl.sourceforge.net (netix.dl.sourceforge.net)|87.121.121.2|:443… connecté.
requête HTTP transmise, en attente de la réponse… 200 OK
Taille : 518015 (506K) [application/x-gzip]
Sauvegarde en : « nrpe-3.2.1.tar.gz »
nrpe-3.2.1.tar.gz 100%[===================>] 505,87K 1,46MB/s in 0,3s
2018-04-26 10:45:03 (1,46 MB/s) — « nrpe-3.2.1.tar.gz » sauvegardé [518015/518015]
root@nagios-vz:/tmp#
tar -zxvf nrpe-3.2.1.tar.gz
nrpe-3.2.1/
nrpe-3.2.1/.gitignore
nrpe-3.2.1/.travis.yml
nrpe-3.2.1/CHANGELOG.md
nrpe-3.2.1/LEGAL
nrpe-3.2.1/LICENSE.md
nrpe-3.2.1/Makefile.in
nrpe-3.2.1/README.SSL.md
nrpe-3.2.1/README.md
nrpe-3.2.1/SECURITY.md
nrpe-3.2.1/THANKS
nrpe-3.2.1/aclocal.m4
nrpe-3.2.1/build-aux/
nrpe-3.2.1/build-aux/config.guess
nrpe-3.2.1/build-aux/config.sub
nrpe-3.2.1/build-aux/custom_help.m4
nrpe-3.2.1/build-aux/install-sh
nrpe-3.2.1/configure
nrpe-3.2.1/configure.ac
nrpe-3.2.1/contrib/
nrpe-3.2.1/contrib/README.nrpe_check_control
nrpe-3.2.1/contrib/nrpe_check_control.c
nrpe-3.2.1/docs/
nrpe-3.2.1/docs/NRPE.odt
nrpe-3.2.1/docs/NRPE.pdf
nrpe-3.2.1/include/
nrpe-3.2.1/include/acl.h
nrpe-3.2.1/include/common.h.in
nrpe-3.2.1/include/config.h.in
nrpe-3.2.1/include/nrpe.h
nrpe-3.2.1/include/utils.h
nrpe-3.2.1/macros/
nrpe-3.2.1/macros/.gitignore
nrpe-3.2.1/macros/CHANGELOG.md
nrpe-3.2.1/macros/LICENSE
nrpe-3.2.1/macros/LICENSE.md
nrpe-3.2.1/macros/README.md
nrpe-3.2.1/macros/add_group_user
nrpe-3.2.1/macros/ax_nagios_get_distrib
nrpe-3.2.1/macros/ax_nagios_get_files
nrpe-3.2.1/macros/ax_nagios_get_inetd
nrpe-3.2.1/macros/ax_nagios_get_init
nrpe-3.2.1/macros/ax_nagios_get_os
nrpe-3.2.1/macros/ax_nagios_get_paths
nrpe-3.2.1/macros/ax_nagios_get_ssl
nrpe-3.2.1/nrpe.spec.in
nrpe-3.2.1/paths.in
nrpe-3.2.1/sample-config/
nrpe-3.2.1/sample-config/nrpe.cfg.in
nrpe-3.2.1/src/
nrpe-3.2.1/src/Makefile.in
nrpe-3.2.1/src/acl.c
nrpe-3.2.1/src/check_nrpe.c
nrpe-3.2.1/src/nrpe.c
nrpe-3.2.1/src/snprintf.c
nrpe-3.2.1/src/utils.c
nrpe-3.2.1/startup/
nrpe-3.2.1/startup/bsd-init.in
nrpe-3.2.1/startup/debian-init.in
nrpe-3.2.1/startup/default-inetd.in
nrpe-3.2.1/startup/default-init.in
nrpe-3.2.1/startup/default-service.in
nrpe-3.2.1/startup/default-socket-svc.in
nrpe-3.2.1/startup/default-socket.in
nrpe-3.2.1/startup/default-xinetd.in
nrpe-3.2.1/startup/gentoo-init.in
nrpe-3.2.1/startup/mac-inetd.plist.in
nrpe-3.2.1/startup/mac-init.plist.in
nrpe-3.2.1/startup/newbsd-init.in
nrpe-3.2.1/startup/openbsd-init.in
nrpe-3.2.1/startup/openrc-conf.in
nrpe-3.2.1/startup/openrc-init.in
nrpe-3.2.1/startup/rh-upstart-init.in
nrpe-3.2.1/startup/solaris-inetd.xml.in
nrpe-3.2.1/startup/solaris-init.xml.in
nrpe-3.2.1/startup/tmpfile.conf.in
nrpe-3.2.1/startup/upstart-init.in
nrpe-3.2.1/test-wrapper
nrpe-3.2.1/travis-test-1
nrpe-3.2.1/uninstall.in
nrpe-3.2.1/update-cfg.pl
nrpe-3.2.1/update-version
root@nagios-vz:/tmp#
cd nrpe-3.2.1
root@nagios-vz:/tmp/nrpe-3.2.1#
./configure --enable-command-args --disable-ssl
checking for a BSD-compatible install... /usr/bin/install -c
checking what the operating system is ... linux
checking what the distribution type is ... debian
checking what init system is being used ... systemd
checking what inetd is being used ... xinetd
checking for which paths to use ... default
checking for which init file to use ... default-service
checking for which inetd files to use ... default-xinetd
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether make sets $(MAKE)... yes
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking whether time.h and sys/time.h may both be included... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking ctype.h usability... yes
checking ctype.h presence... yes
checking for ctype.h... yes
checking dirent.h usability... yes
checking dirent.h presence... yes
checking for dirent.h... yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking getopt.h usability... yes
checking getopt.h presence... yes
checking for getopt.h... yes
checking grp.h usability... yes
checking grp.h presence... yes
checking for grp.h... yes
checking for inttypes.h... (cached) yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking pwd.h usability... yes
checking pwd.h presence... yes
checking for pwd.h... yes
checking signal.h usability... yes
checking signal.h presence... yes
checking for signal.h... yes
checking for stdint.h... (cached) yes
checking for strings.h... (cached) yes
checking for string.h... (cached) yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking tcpd.h usability... no
checking tcpd.h presence... no
checking for tcpd.h... no
checking for unistd.h... (cached) yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking socket.h usability... no
checking socket.h presence... no
checking for socket.h... no
checking for sys/types.h... (cached) yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking sys/resource.h usability... yes
checking sys/resource.h presence... yes
checking for sys/resource.h... yes
checking for sys/wait.h... (cached) yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking for sys/stat.h... (cached) yes
checking paths.h usability... yes
checking paths.h presence... yes
checking for paths.h... yes
checking for an ANSI C-conforming const... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for mode_t... yes
checking for pid_t... yes
checking for size_t... yes
checking return type of signal handlers... void
checking for uid_t in sys/types.h... yes
checking type of array argument to getgroups... gid_t
checking size of int... 4
checking size of short... 2
checking size of long... 4
checking for uint32_t... yes
checking for u_int32_t... yes
checking for int32_t... yes
checking for struct sockaddr_storage... yes
checking for seteuid... yes
checking for va_copy... yes
checking for vsnprintf... yes
checking for snprintf... yes
checking for asprintf... yes
checking for vasprintf... yes
checking for C99 vsnprintf... yes
checking for getopt_long... yes
checking for main in -lnsl... yes
checking for socket in -lsocket... no
checking for main in -lwrap... no
checking for strdup... yes
checking for strstr... yes
checking for strtoul... yes
checking for strtok_r... yes
checking for initgroups... yes
checking for closesocket... no
checking for sigaction... yes
checking for scandir... yes
checking for socklen_t... yes
checking for type of socket size... size_t
checking for perl... /usr/bin/perl
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating nrpe.spec
config.status: creating uninstall
config.status: creating sample-config/nrpe.cfg
config.status: creating startup/bsd-init
config.status: creating startup/debian-init
config.status: creating startup/default-init
config.status: creating startup/default-inetd
config.status: creating startup/default-service
config.status: creating startup/default-socket
config.status: creating startup/default-socket-svc
config.status: creating startup/default-xinetd
config.status: creating startup/mac-init.plist
config.status: creating startup/mac-inetd.plist
config.status: creating startup/newbsd-init
config.status: creating startup/openbsd-init
config.status: creating startup/openrc-conf
config.status: creating startup/openrc-init
config.status: creating startup/solaris-init.xml
config.status: creating startup/solaris-inetd.xml
config.status: creating startup/tmpfile.conf
config.status: creating startup/upstart-init
config.status: creating startup/rh-upstart-init
config.status: creating include/common.h
config.status: creating include/config.h
*** Configuration summary for nrpe 3.2.1 2017-09-01 ***:
General Options:
-------------------------
NRPE port: 5666
NRPE user: nagios
NRPE group: nagios
Nagios user: nagios
Nagios group: nagios
Review the options above for accuracy. If they look okay,
type 'make all' to compile the NRPE daemon and client
or type 'make' to get a list of make options.
root@nagios-vz:/tmp/nrpe-3.2.1#
make all
cd ./src/; make
make[1] : on entre dans le répertoire « /tmp/nrpe-3.2.1/src »
gcc -g -O2 -DHAVE_CONFIG_H -I ../include -I ./../include -o nrpe ./nrpe.c ./utils.c ./acl.c -lnsl
gcc -g -O2 -DHAVE_CONFIG_H -I ../include -I ./../include -o check_nrpe ./check_nrpe.c ./utils.c -lnsl
make[1] : on quitte le répertoire « /tmp/nrpe-3.2.1/src »
*** Compile finished ***
You can now continue with the installation or upgrade process.
Read the PDF documentation (docs/NRPE.pdf) for information on the next
steps you should take to complete the installation or upgrade.
root@nagios-vz:/tmp/nrpe-3.2.1#
make install
cd ./src/; make install
make[1] : on entre dans le répertoire « /tmp/nrpe-3.2.1/src »
make install-plugin
make[2] : on entre dans le répertoire « /tmp/nrpe-3.2.1/src »
/usr/bin/install -c -m 755 -d /usr/local/nagios/bin
/usr/bin/install -c -m 755 ../uninstall /usr/local/nagios/bin/nrpe-uninstall
/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/libexec
/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/libexec
/usr/bin/install -c -m 775 -o nagios -g nagios check_nrpe /usr/local/nagios/libexec
make[2] : on quitte le répertoire « /tmp/nrpe-3.2.1/src »
make install-daemon
make[2] : on entre dans le répertoire « /tmp/nrpe-3.2.1/src »
/usr/bin/install -c -m 755 -d /usr/local/nagios/bin
/usr/bin/install -c -m 755 ../uninstall /usr/local/nagios/bin/nrpe-uninstall
/usr/bin/install -c -m 755 nrpe /usr/local/nagios/bin
/usr/bin/install -c -m 755 -d /usr/lib/tmpfiles.d
/usr/bin/install -c -m 644 ../startup/tmpfile.conf /usr/lib/tmpfiles.d/nrpe.conf
make[2] : on quitte le répertoire « /tmp/nrpe-3.2.1/src »
make[1] : on quitte le répertoire « /tmp/nrpe-3.2.1/src »
root@nagios-vz:/tmp/nrpe-3.2.1#
make install-config
/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/etc
/usr/bin/install -c -m 644 -o nagios -g nagios sample-config/nrpe.cfg /usr/local/nagios/etc
root@nagios-vz:/tmp/nrpe-3.2.1#
make install-init
/usr/bin/install -c -m 644 startup/default-service /lib/systemd/system/nrpe.service
root@nagios-vz:/tmp/nrpe-3.2.1#
systemctl enable nrpe.service
root@nagios-vz:/tmp/nrpe-3.2.1#
vi /usr/local/nagios/etc/nrpe.cfg
Modif allowed host and don't blame ...
root@nagios-vz:/tmp/nrpe-3.2.1#
service nrpe start
root@nagios-vz:/tmp/nrpe-3.2.1#
cd /usr/local/nagios/libexec/
root@nagios-vz:/usr/local/nagios/libexec#
./check_nrpe -H 10.30.2.38
CHECK_NRPE: Receive header underflow - only 0 bytes received (4 expected).
root@nagios-vz:/usr/local/nagios/libexec#