Multiple Client Install / Operating Issues

Having issues? Post them here, and help other users.
Post Reply
User avatar
propellerhead333
Junior Member
Posts: 12
Joined: Sat Apr 25, 2020 8:22 pm
Location: Ontario, Canada
Contact:

Multiple Client Install / Operating Issues

Post by propellerhead333 »

====== ISSUE SUMMARY ======
* The wget NRPE install script seems to be broken for me


===== NEMS SERVER INFORMATION =====
NEMS Server Alias: NEMS
Running As: bob
NEMS Platform: Raspberry Pi 4
NEMS Version Running: 1.5.1
NEMS Version Available for Raspberry Pi 4: 1.5.1
piWatcher Present: No
NEMS Network Interface: eth0
Number of Hosts: 2
Number of Services: 19
Authorized for Cloud: No
Speedtest Server: 17396 Bell Canada (Ottawa, ON, Canada)


===== Issue Description: NRPE CLIENT INSTALL (install script failure) =====

Hostname: taz
Platform: Linux taz 4.15.0-54-generic #58-Ubuntu SMP Mon Jun 24 10:55:24 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Notes: apt update / upgrade current before running the install script

== Install documentation followed: ==
https://docs.nemslinux.com/usage/nrpe_on_linux

== Install script used: ==

Code: Select all

wget -O - https://raw.githubusercontent.com/Cat5TV/nems-admin/master/build/047-nrpe | bash
== Output of script: ==

Code: Select all

root@taz:~# wget -O - https://raw.githubusercontent.com/Cat5TV/nems-admin/master/build/047-nrpe | bash
--2020-04-25 20:22:58--  https://raw.githubusercontent.com/Cat5TV/nems-admin/master/build/047-nrpe
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.112.133
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.112.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1856 (1.8K) [text/plain]
Saving to: ‘STDOUT’

-                   100%[===================>]   1.81K  --.-KB/s    in 0s      

2020-04-25 20:22:59 (4.14 MB/s) - written to stdout [1856/1856]

bash: line 8: /var/www/html/userfiles/nems-build.cur: No such file or directory
Failed to stop nrpe.service: Unit nrpe.service not loaded.
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package 'nagios-nrpe-plugin' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package 'nagios-nrpe-server' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.
Ign:1 http://packages.linuxmint.com tina InRelease
Hit:2 http://packages.linuxmint.com tina Release                               
Hit:3 http://security.ubuntu.com/ubuntu bionic-security InRelease              
Hit:4 http://archive.canonical.com/ubuntu bionic InRelease                     
Hit:5 http://archive.ubuntu.com/ubuntu bionic InRelease                  
Hit:7 http://archive.ubuntu.com/ubuntu bionic-updates InRelease
Hit:8 http://archive.ubuntu.com/ubuntu bionic-backports InRelease
Reading package lists... Done
Building dependency tree       
Reading state information... Done
5 packages can be upgraded. Run 'apt list --upgradable' to see them.
Reading package lists... Done
Building dependency tree       
Reading state information... Done
autotools-dev is already the newest version (20180224.1).
build-essential is already the newest version (12.4ubuntu1).
libwrap0-dev is already the newest version (7.6.q-27).
dpatch is already the newest version (2.0.38+nmu1).
debhelper is already the newest version (11.1.6ubuntu2).
libssl-dev is already the newest version (1.1.1-1ubuntu2.1~18.04.5).
0 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.
apt
Usage: apt command [options]
       apt help command [options]

Commands:
  add-repository   - Add entries to apt sources.list
  autoclean        - Erase old downloaded archive files
  autoremove       - Remove automatically all unused packages
  build            - Build binary or source packages from sources
  build-dep        - Configure build-dependencies for source packages
  changelog        - View a package's changelog
  check            - Verify that there are no broken dependencies
  clean            - Erase downloaded archive files
  contains         - List packages containing a file
  content          - List files contained in a package
  deb              - Install a .deb package
  depends          - Show raw dependency information for a package
  dist-upgrade     - Upgrade the system by removing/installing/upgrading packages
  download         - Download the .deb file for a package
  edit-sources     - Edit /etc/apt/sources.list with your preferred text editor
  dselect-upgrade  - Follow dselect selections
  full-upgrade     - Same as 'dist-upgrade'
  held             - List all held packages
  help             - Show help for a command
  hold             - Hold a package
  install          - Install/upgrade packages
  list             - List packages based on package names
  policy           - Show policy settings
  purge            - Remove packages and their configuration files
  recommends       - List missing recommended packages for a particular package
  rdepends         - Show reverse dependency information for a package
  reinstall        - Download and (possibly) reinstall a currently installed package
  remove           - Remove packages
  search           - Search for a package by name and/or expression
  show             - Display detailed information about a package
  showhold         - Same as 'held'
  showsrc          - Display all the source package records that match the given package name
  source           - Download source archives
  sources          - Same as 'edit-sources'
  unhold           - Unhold a package
  update           - Download lists of new/upgradable packages
  upgrade          - Perform a safe upgrade
  version          - Show the installed version of a package

apt
Usage: apt command [options]
       apt help command [options]

Commands:
  add-repository   - Add entries to apt sources.list
  autoclean        - Erase old downloaded archive files
  autoremove       - Remove automatically all unused packages
  build            - Build binary or source packages from sources
  build-dep        - Configure build-dependencies for source packages
  changelog        - View a package's changelog
  check            - Verify that there are no broken dependencies
  clean            - Erase downloaded archive files
  contains         - List packages containing a file
  content          - List files contained in a package
  deb              - Install a .deb package
  depends          - Show raw dependency information for a package
  dist-upgrade     - Upgrade the system by removing/installing/upgrading packages
  download         - Download the .deb file for a package
  edit-sources     - Edit /etc/apt/sources.list with your preferred text editor
  dselect-upgrade  - Follow dselect selections
  full-upgrade     - Same as 'dist-upgrade'
  held             - List all held packages
  help             - Show help for a command
  hold             - Hold a package
  install          - Install/upgrade packages
  list             - List packages based on package names
  policy           - Show policy settings
  purge            - Remove packages and their configuration files
  recommends       - List missing recommended packages for a particular package
  rdepends         - Show reverse dependency information for a package
  reinstall        - Download and (possibly) reinstall a currently installed package
  remove           - Remove packages
  search           - Search for a package by name and/or expression
  show             - Display detailed information about a package
  showhold         - Same as 'held'
  showsrc          - Display all the source package records that match the given package name
  source           - Download source archives
  sources          - Same as 'edit-sources'
  unhold           - Unhold a package
  update           - Download lists of new/upgradable packages
  upgrade          - Perform a safe upgrade
  version          - Show the installed version of a package

apt
Usage: apt command [options]
       apt help command [options]

Commands:
  add-repository   - Add entries to apt sources.list
  autoclean        - Erase old downloaded archive files
  autoremove       - Remove automatically all unused packages
  build            - Build binary or source packages from sources
  build-dep        - Configure build-dependencies for source packages
  changelog        - View a package's changelog
  check            - Verify that there are no broken dependencies
  clean            - Erase downloaded archive files
  contains         - List packages containing a file
  content          - List files contained in a package
  deb              - Install a .deb package
  depends          - Show raw dependency information for a package
  dist-upgrade     - Upgrade the system by removing/installing/upgrading packages
  download         - Download the .deb file for a package
  edit-sources     - Edit /etc/apt/sources.list with your preferred text editor
  dselect-upgrade  - Follow dselect selections
  full-upgrade     - Same as 'dist-upgrade'
  held             - List all held packages
  help             - Show help for a command
  hold             - Hold a package
  install          - Install/upgrade packages
  list             - List packages based on package names
  policy           - Show policy settings
  purge            - Remove packages and their configuration files
  recommends       - List missing recommended packages for a particular package
  rdepends         - Show reverse dependency information for a package
  reinstall        - Download and (possibly) reinstall a currently installed package
  remove           - Remove packages
  search           - Search for a package by name and/or expression
  show             - Display detailed information about a package
  showhold         - Same as 'held'
  showsrc          - Display all the source package records that match the given package name
  source           - Download source archives
  sources          - Same as 'edit-sources'
  unhold           - Unhold a package
  update           - Download lists of new/upgradable packages
  upgrade          - Perform a safe upgrade
  version          - Show the installed version of a package

--2020-04-25 20:23:11--  https://github.com/NagiosEnterprises/nrpe/archive/nrpe-3.2.1.tar.gz
Resolving github.com (github.com)... 140.82.118.4
Connecting to github.com (github.com)|140.82.118.4|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://codeload.github.com/NagiosEnterprises/nrpe/tar.gz/nrpe-3.2.1 [following]
--2020-04-25 20:23:12--  https://codeload.github.com/NagiosEnterprises/nrpe/tar.gz/nrpe-3.2.1
Resolving codeload.github.com (codeload.github.com)... 140.82.112.10
Connecting to codeload.github.com (codeload.github.com)|140.82.112.10|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/x-gzip]
Saving to: ‘/usr/src/tmp.SRbH8fDL3I/nrpe.tar.gz’

/usr/src/tmp.SRbH8f     [ <=>                ] 505.89K  2.60MB/s    in 0.2s    

2020-04-25 20:23:13 (2.60 MB/s) - ‘/usr/src/tmp.SRbH8fDL3I/nrpe.tar.gz’ saved [518035]

nrpe-nrpe-3.2.1/
nrpe-nrpe-3.2.1/.gitignore
nrpe-nrpe-3.2.1/.travis.yml
nrpe-nrpe-3.2.1/CHANGELOG.md
nrpe-nrpe-3.2.1/LEGAL
nrpe-nrpe-3.2.1/LICENSE.md
nrpe-nrpe-3.2.1/Makefile.in
nrpe-nrpe-3.2.1/README.SSL.md
nrpe-nrpe-3.2.1/README.md
nrpe-nrpe-3.2.1/SECURITY.md
nrpe-nrpe-3.2.1/THANKS
nrpe-nrpe-3.2.1/aclocal.m4
nrpe-nrpe-3.2.1/build-aux/
nrpe-nrpe-3.2.1/build-aux/config.guess
nrpe-nrpe-3.2.1/build-aux/config.sub
nrpe-nrpe-3.2.1/build-aux/custom_help.m4
nrpe-nrpe-3.2.1/build-aux/install-sh
nrpe-nrpe-3.2.1/configure
nrpe-nrpe-3.2.1/configure.ac
nrpe-nrpe-3.2.1/contrib/
nrpe-nrpe-3.2.1/contrib/README.nrpe_check_control
nrpe-nrpe-3.2.1/contrib/nrpe_check_control.c
nrpe-nrpe-3.2.1/docs/
nrpe-nrpe-3.2.1/docs/NRPE.odt
nrpe-nrpe-3.2.1/docs/NRPE.pdf
nrpe-nrpe-3.2.1/include/
nrpe-nrpe-3.2.1/include/acl.h
nrpe-nrpe-3.2.1/include/common.h.in
nrpe-nrpe-3.2.1/include/config.h.in
nrpe-nrpe-3.2.1/include/nrpe.h
nrpe-nrpe-3.2.1/include/utils.h
nrpe-nrpe-3.2.1/macros/
nrpe-nrpe-3.2.1/macros/.gitignore
nrpe-nrpe-3.2.1/macros/CHANGELOG.md
nrpe-nrpe-3.2.1/macros/LICENSE
nrpe-nrpe-3.2.1/macros/LICENSE.md
nrpe-nrpe-3.2.1/macros/README.md
nrpe-nrpe-3.2.1/macros/add_group_user
nrpe-nrpe-3.2.1/macros/ax_nagios_get_distrib
nrpe-nrpe-3.2.1/macros/ax_nagios_get_files
nrpe-nrpe-3.2.1/macros/ax_nagios_get_inetd
nrpe-nrpe-3.2.1/macros/ax_nagios_get_init
nrpe-nrpe-3.2.1/macros/ax_nagios_get_os
nrpe-nrpe-3.2.1/macros/ax_nagios_get_paths
nrpe-nrpe-3.2.1/macros/ax_nagios_get_ssl
nrpe-nrpe-3.2.1/nrpe.spec.in
nrpe-nrpe-3.2.1/paths.in
nrpe-nrpe-3.2.1/sample-config/
nrpe-nrpe-3.2.1/sample-config/nrpe.cfg.in
nrpe-nrpe-3.2.1/src/
nrpe-nrpe-3.2.1/src/Makefile.in
nrpe-nrpe-3.2.1/src/acl.c
nrpe-nrpe-3.2.1/src/check_nrpe.c
nrpe-nrpe-3.2.1/src/nrpe.c
nrpe-nrpe-3.2.1/src/snprintf.c
nrpe-nrpe-3.2.1/src/utils.c
nrpe-nrpe-3.2.1/startup/
nrpe-nrpe-3.2.1/startup/bsd-init.in
nrpe-nrpe-3.2.1/startup/debian-init.in
nrpe-nrpe-3.2.1/startup/default-inetd.in
nrpe-nrpe-3.2.1/startup/default-init.in
nrpe-nrpe-3.2.1/startup/default-service.in
nrpe-nrpe-3.2.1/startup/default-socket-svc.in
nrpe-nrpe-3.2.1/startup/default-socket.in
nrpe-nrpe-3.2.1/startup/default-xinetd.in
nrpe-nrpe-3.2.1/startup/gentoo-init.in
nrpe-nrpe-3.2.1/startup/mac-inetd.plist.in
nrpe-nrpe-3.2.1/startup/mac-init.plist.in
nrpe-nrpe-3.2.1/startup/newbsd-init.in
nrpe-nrpe-3.2.1/startup/openbsd-init.in
nrpe-nrpe-3.2.1/startup/openrc-conf.in
nrpe-nrpe-3.2.1/startup/openrc-init.in
nrpe-nrpe-3.2.1/startup/rh-upstart-init.in
nrpe-nrpe-3.2.1/startup/solaris-inetd.xml.in
nrpe-nrpe-3.2.1/startup/solaris-init.xml.in
nrpe-nrpe-3.2.1/startup/tmpfile.conf.in
nrpe-nrpe-3.2.1/startup/upstart-init.in
nrpe-nrpe-3.2.1/test-wrapper
nrpe-nrpe-3.2.1/travis-test-1
nrpe-nrpe-3.2.1/uninstall.in
nrpe-nrpe-3.2.1/update-cfg.pl
nrpe-nrpe-3.2.1/update-version
checking for a BSD-compatible install... /usr/bin/install -c
checking what the operating system is ... linux
checking what the distribution type is ... ubuntu
checking what init system is being used ... systemd
checking what inetd is being used ... systemd
checking for which paths to use ... default
checking for which init file to use ... default-service
checking for which inetd files to use ... default-socket
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... yes
checking tcpd.h presence... yes
checking for tcpd.h... yes
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... 8
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... yes
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 Kerberos include files... configure: WARNING: could not find include files
checking for pkg-config... pkg-config
checking whether compiling and linking against SSL works... yes
checking for openssl... /usr/bin/openssl

*** Generating DH Parameters for SSL/TLS ***
Generating DH parameters, 2048 bit long safe prime, generator 2
This is going to take a long time
..............+*++*++*++*
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.

cd ./src/; make
make[1]: Entering directory '/usr/src/tmp.SRbH8fDL3I/nrpe-nrpe-3.2.1/src'
gcc -g -O2  -DHAVE_CONFIG_H -I ../include -I ./../include -o nrpe ./nrpe.c ./utils.c ./acl.c -lssl -lcrypto -lnsl -lwrap  
./nrpe.c: In function ‘read_config_dir’:
./nrpe.c:1064:54: warning: ‘%s’ directive output may be truncated writing up to 255 bytes into a region of size 254 [-Wformat-truncation=]
   snprintf(config_file, sizeof(config_file) - 1, "%s/%s", dirname, dirfile->d_name);
                                                      ^~
In file included from /usr/include/stdio.h:862:0,
                 from ../include/config.h:31,
                 from ./nrpe.c:37:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:64:10: note: ‘__builtin___snprintf_chk’ output 2 or more bytes (assuming 257) into a destination of size 255
   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        __bos (__s), __fmt, __va_arg_pack ());
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gcc -g -O2  -DHAVE_CONFIG_H -I ../include -I ./../include -o check_nrpe ./check_nrpe.c ./utils.c -lssl -lcrypto -lnsl  
make[1]: Leaving directory '/usr/src/tmp.SRbH8fDL3I/nrpe-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.

Group nagios already exists
User nagios already exists
cd ./src/; make install-plugin
make[1]: Entering directory '/usr/src/tmp.SRbH8fDL3I/nrpe-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[1]: Leaving directory '/usr/src/tmp.SRbH8fDL3I/nrpe-nrpe-3.2.1/src'
cd ./src/; make install-daemon
make[1]: Entering directory '/usr/src/tmp.SRbH8fDL3I/nrpe-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[1]: Leaving directory '/usr/src/tmp.SRbH8fDL3I/nrpe-nrpe-3.2.1/src'
/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
/usr/bin/install -c -m 644 startup/default-service /usr/lib/systemd/system/nrpe.service
/usr/bin/install: cannot create regular file '/usr/lib/systemd/system/nrpe.service': No such file or directory
Makefile:92: recipe for target 'install-init' failed
make: *** [install-init] Error 1
Failed to stop nrpe.service: Unit nrpe.service not loaded.
--2020-04-25 20:24:55--  https://raw.githubusercontent.com/Cat5TV/nems-migrator/master/data/1.5/nagios/misc/nrpe.cfg
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.12.133
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.12.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 12486 (12K) [text/plain]
Saving to: ‘/usr/local/nagios/etc/nrpe.cfg’

/usr/local/nagios/e 100%[===================>]  12.19K  --.-KB/s    in 0.001s  

2020-04-25 20:24:56 (8.89 MB/s) - ‘/usr/local/nagios/etc/nrpe.cfg’ saved [12486/12486]

Reading package lists... Done
Building dependency tree       
Reading state information... Done
bc is already the newest version (1.07.1-2).
0 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.
Reading package lists... Done
Building dependency tree       
Reading state information... Done
dc is already the newest version (1.07.1-2).
0 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.
/usr/lib/nagios/plugins/custom_check_mem: No such file or directory
chmod: cannot access '/usr/lib/nagios/plugins/custom_check_mem': No such file or directory
Failed to start nrpe.service: Unit nrpe.service not found.
Failed to enable unit: Unit file nrpe.service does not exist.
Unit nrpe.service could not be found.
grep: /var/log/nems/patches.log: No such file or directory
bash: line 53: /var/log/nems/patches.log: No such file or directory
Done.
root@taz:~# apt update
Ign:1 http://packages.linuxmint.com tina InRelease
Hit:2 http://packages.linuxmint.com tina Release                               
Hit:3 http://archive.canonical.com/ubuntu bionic InRelease                     
Hit:4 http://archive.ubuntu.com/ubuntu bionic InRelease                        
Get:5 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Get:6 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]      
Get:8 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
Get:9 http://security.ubuntu.com/ubuntu bionic-security/main amd64 DEP-11 Metadata [38.8 kB]
Get:10 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 DEP-11 Metadata [301 kB]
Get:11 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 DEP-11 Metadata [42.0 kB]
Get:12 http://security.ubuntu.com/ubuntu bionic-security/multiverse amd64 DEP-11 Metadata [2,464 B]
Get:13 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 DEP-11 Metadata [273 kB]
Get:14 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64 DEP-11 Metadata [2,468 B]
Get:15 http://archive.ubuntu.com/ubuntu bionic-backports/universe amd64 DEP-11 Metadata [7,968 B]
Fetched 920 kB in 4s (215 kB/s)                                         
Reading package lists... Done
Building dependency tree       
Reading state information... Done
5 packages can be upgraded. Run 'apt list --upgradable' to see them.
root@taz:~# apt install upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package upgrade
root@taz:~# apt upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
  apturl apturl-common distro-info-data openjdk-11-jre openjdk-11-jre-headless
5 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 37.7 MB of archives.
After this operation, 32.8 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://packages.linuxmint.com tina/upstream amd64 apturl all 0.5.2+linuxmint8 [13.8 kB]
Get:2 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 distro-info-data all 0.37ubuntu0.7 [4,676 B]
Get:3 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 openjdk-11-jre amd64 11.0.7+10-2ubuntu2~18.04 [34.5 kB]
Get:4 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 openjdk-11-jre-headless amd64 11.0.7+10-2ubuntu2~18.04 [37.5 MB]
Get:5 http://packages.linuxmint.com tina/upstream amd64 apturl-common all 0.5.2+linuxmint8 [76.7 kB]
Fetched 37.7 MB in 8s (4,641 kB/s)                                             
(Reading database ... 252948 files and directories currently installed.)
Preparing to unpack .../distro-info-data_0.37ubuntu0.7_all.deb ...
Unpacking distro-info-data (0.37ubuntu0.7) over (0.37ubuntu0.6) ...
Setting up distro-info-data (0.37ubuntu0.7) ...
(Reading database ... 252948 files and directories currently installed.)
Preparing to unpack .../apturl_0.5.2+linuxmint8_all.deb ...
Unpacking apturl (0.5.2+linuxmint8) over (0.5.2+linuxmint7) ...
Preparing to unpack .../apturl-common_0.5.2+linuxmint8_all.deb ...
Unpacking apturl-common (0.5.2+linuxmint8) over (0.5.2+linuxmint7) ...
Preparing to unpack .../openjdk-11-jre_11.0.7+10-2ubuntu2~18.04_amd64.deb ...
Unpacking openjdk-11-jre:amd64 (11.0.7+10-2ubuntu2~18.04) over (11.0.6+10-1ubuntu1~18.04.1) ...
Preparing to unpack .../openjdk-11-jre-headless_11.0.7+10-2ubuntu2~18.04_amd64.deb ...
Unpacking openjdk-11-jre-headless:amd64 (11.0.7+10-2ubuntu2~18.04) over (11.0.6+10-1ubuntu1~18.04.1) ...
Setting up openjdk-11-jre-headless:amd64 (11.0.7+10-2ubuntu2~18.04) ...
Installing new version of config file /etc/java-11-openjdk/security/default.policy ...
Installing new version of config file /etc/java-11-openjdk/security/public_suffix_list.dat ...
Setting up apturl-common (0.5.2+linuxmint8) ...
Setting up openjdk-11-jre:amd64 (11.0.7+10-2ubuntu2~18.04) ...
Setting up apturl (0.5.2+linuxmint8) ...
Processing triggers for gnome-menus (3.13.3-11ubuntu1.1) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for mime-support (3.60ubuntu1) ...
Processing triggers for desktop-file-utils (0.23+linuxmint6) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
root@taz:~# wget -O - https://raw.githubusercontent.com/Cat5TV/nems-admin/master/build/047-nrpe | bash
--2020-04-25 21:11:54--  https://raw.githubusercontent.com/Cat5TV/nems-admin/master/build/047-nrpe
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.112.133
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.112.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1856 (1.8K) [text/plain]
Saving to: ‘STDOUT’

-                   100%[===================>]   1.81K  --.-KB/s    in 0s      

2020-04-25 21:11:55 (19.8 MB/s) - written to stdout [1856/1856]

bash: line 8: /var/www/html/userfiles/nems-build.cur: No such file or directory
Failed to stop nrpe.service: Unit nrpe.service not loaded.
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package 'nagios-nrpe-plugin' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package 'nagios-nrpe-server' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Ign:1 http://packages.linuxmint.com tina InRelease
Hit:2 http://packages.linuxmint.com tina Release                               
Hit:3 http://security.ubuntu.com/ubuntu bionic-security InRelease              
Hit:4 http://archive.ubuntu.com/ubuntu bionic InRelease                        
Hit:5 http://archive.canonical.com/ubuntu bionic InRelease               
Hit:6 http://archive.ubuntu.com/ubuntu bionic-updates InRelease
Hit:7 http://archive.ubuntu.com/ubuntu bionic-backports InRelease
Reading package lists... Done
Building dependency tree       
Reading state information... Done
All packages are up to date.
Reading package lists... Done
Building dependency tree       
Reading state information... Done
autotools-dev is already the newest version (20180224.1).
build-essential is already the newest version (12.4ubuntu1).
libwrap0-dev is already the newest version (7.6.q-27).
dpatch is already the newest version (2.0.38+nmu1).
debhelper is already the newest version (11.1.6ubuntu2).
libssl-dev is already the newest version (1.1.1-1ubuntu2.1~18.04.5).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
apt
Usage: apt command [options]
       apt help command [options]

Commands:
  add-repository   - Add entries to apt sources.list
  autoclean        - Erase old downloaded archive files
  autoremove       - Remove automatically all unused packages
  build            - Build binary or source packages from sources
  build-dep        - Configure build-dependencies for source packages
  changelog        - View a package's changelog
  check            - Verify that there are no broken dependencies
  clean            - Erase downloaded archive files
  contains         - List packages containing a file
  content          - List files contained in a package
  deb              - Install a .deb package
  depends          - Show raw dependency information for a package
  dist-upgrade     - Upgrade the system by removing/installing/upgrading packages
  download         - Download the .deb file for a package
  edit-sources     - Edit /etc/apt/sources.list with your preferred text editor
  dselect-upgrade  - Follow dselect selections
  full-upgrade     - Same as 'dist-upgrade'
  held             - List all held packages
  help             - Show help for a command
  hold             - Hold a package
  install          - Install/upgrade packages
  list             - List packages based on package names
  policy           - Show policy settings
  purge            - Remove packages and their configuration files
  recommends       - List missing recommended packages for a particular package
  rdepends         - Show reverse dependency information for a package
  reinstall        - Download and (possibly) reinstall a currently installed package
  remove           - Remove packages
  search           - Search for a package by name and/or expression
  show             - Display detailed information about a package
  showhold         - Same as 'held'
  showsrc          - Display all the source package records that match the given package name
  source           - Download source archives
  sources          - Same as 'edit-sources'
  unhold           - Unhold a package
  update           - Download lists of new/upgradable packages
  upgrade          - Perform a safe upgrade
  version          - Show the installed version of a package

apt
Usage: apt command [options]
       apt help command [options]

Commands:
  add-repository   - Add entries to apt sources.list
  autoclean        - Erase old downloaded archive files
  autoremove       - Remove automatically all unused packages
  build            - Build binary or source packages from sources
  build-dep        - Configure build-dependencies for source packages
  changelog        - View a package's changelog
  check            - Verify that there are no broken dependencies
  clean            - Erase downloaded archive files
  contains         - List packages containing a file
  content          - List files contained in a package
  deb              - Install a .deb package
  depends          - Show raw dependency information for a package
  dist-upgrade     - Upgrade the system by removing/installing/upgrading packages
  download         - Download the .deb file for a package
  edit-sources     - Edit /etc/apt/sources.list with your preferred text editor
  dselect-upgrade  - Follow dselect selections
  full-upgrade     - Same as 'dist-upgrade'
  held             - List all held packages
  help             - Show help for a command
  hold             - Hold a package
  install          - Install/upgrade packages
  list             - List packages based on package names
  policy           - Show policy settings
  purge            - Remove packages and their configuration files
  recommends       - List missing recommended packages for a particular package
  rdepends         - Show reverse dependency information for a package
  reinstall        - Download and (possibly) reinstall a currently installed package
  remove           - Remove packages
  search           - Search for a package by name and/or expression
  show             - Display detailed information about a package
  showhold         - Same as 'held'
  showsrc          - Display all the source package records that match the given package name
  source           - Download source archives
  sources          - Same as 'edit-sources'
  unhold           - Unhold a package
  update           - Download lists of new/upgradable packages
  upgrade          - Perform a safe upgrade
  version          - Show the installed version of a package

apt
Usage: apt command [options]
       apt help command [options]

Commands:
  add-repository   - Add entries to apt sources.list
  autoclean        - Erase old downloaded archive files
  autoremove       - Remove automatically all unused packages
  build            - Build binary or source packages from sources
  build-dep        - Configure build-dependencies for source packages
  changelog        - View a package's changelog
  check            - Verify that there are no broken dependencies
  clean            - Erase downloaded archive files
  contains         - List packages containing a file
  content          - List files contained in a package
  deb              - Install a .deb package
  depends          - Show raw dependency information for a package
  dist-upgrade     - Upgrade the system by removing/installing/upgrading packages
  download         - Download the .deb file for a package
  edit-sources     - Edit /etc/apt/sources.list with your preferred text editor
  dselect-upgrade  - Follow dselect selections
  full-upgrade     - Same as 'dist-upgrade'
  held             - List all held packages
  help             - Show help for a command
  hold             - Hold a package
  install          - Install/upgrade packages
  list             - List packages based on package names
  policy           - Show policy settings
  purge            - Remove packages and their configuration files
  recommends       - List missing recommended packages for a particular package
  rdepends         - Show reverse dependency information for a package
  reinstall        - Download and (possibly) reinstall a currently installed package
  remove           - Remove packages
  search           - Search for a package by name and/or expression
  show             - Display detailed information about a package
  showhold         - Same as 'held'
  showsrc          - Display all the source package records that match the given package name
  source           - Download source archives
  sources          - Same as 'edit-sources'
  unhold           - Unhold a package
  update           - Download lists of new/upgradable packages
  upgrade          - Perform a safe upgrade
  version          - Show the installed version of a package

--2020-04-25 21:12:08--  https://github.com/NagiosEnterprises/nrpe/archive/nrpe-3.2.1.tar.gz
Resolving github.com (github.com)... 140.82.118.4
Connecting to github.com (github.com)|140.82.118.4|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://codeload.github.com/NagiosEnterprises/nrpe/tar.gz/nrpe-3.2.1 [following]
--2020-04-25 21:12:09--  https://codeload.github.com/NagiosEnterprises/nrpe/tar.gz/nrpe-3.2.1
Resolving codeload.github.com (codeload.github.com)... 140.82.112.10
Connecting to codeload.github.com (codeload.github.com)|140.82.112.10|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/x-gzip]
Saving to: ‘/usr/src/tmp.lQRRYnOcgX/nrpe.tar.gz’

/usr/src/tmp.lQRRYn     [ <=>                ] 505.89K  2.53MB/s    in 0.2s    

2020-04-25 21:12:09 (2.53 MB/s) - ‘/usr/src/tmp.lQRRYnOcgX/nrpe.tar.gz’ saved [518035]

nrpe-nrpe-3.2.1/
nrpe-nrpe-3.2.1/.gitignore
nrpe-nrpe-3.2.1/.travis.yml
nrpe-nrpe-3.2.1/CHANGELOG.md
nrpe-nrpe-3.2.1/LEGAL
nrpe-nrpe-3.2.1/LICENSE.md
nrpe-nrpe-3.2.1/Makefile.in
nrpe-nrpe-3.2.1/README.SSL.md
nrpe-nrpe-3.2.1/README.md
nrpe-nrpe-3.2.1/SECURITY.md
nrpe-nrpe-3.2.1/THANKS
nrpe-nrpe-3.2.1/aclocal.m4
nrpe-nrpe-3.2.1/build-aux/
nrpe-nrpe-3.2.1/build-aux/config.guess
nrpe-nrpe-3.2.1/build-aux/config.sub
nrpe-nrpe-3.2.1/build-aux/custom_help.m4
nrpe-nrpe-3.2.1/build-aux/install-sh
nrpe-nrpe-3.2.1/configure
nrpe-nrpe-3.2.1/configure.ac
nrpe-nrpe-3.2.1/contrib/
nrpe-nrpe-3.2.1/contrib/README.nrpe_check_control
nrpe-nrpe-3.2.1/contrib/nrpe_check_control.c
nrpe-nrpe-3.2.1/docs/
nrpe-nrpe-3.2.1/docs/NRPE.odt
nrpe-nrpe-3.2.1/docs/NRPE.pdf
nrpe-nrpe-3.2.1/include/
nrpe-nrpe-3.2.1/include/acl.h
nrpe-nrpe-3.2.1/include/common.h.in
nrpe-nrpe-3.2.1/include/config.h.in
nrpe-nrpe-3.2.1/include/nrpe.h
nrpe-nrpe-3.2.1/include/utils.h
nrpe-nrpe-3.2.1/macros/
nrpe-nrpe-3.2.1/macros/.gitignore
nrpe-nrpe-3.2.1/macros/CHANGELOG.md
nrpe-nrpe-3.2.1/macros/LICENSE
nrpe-nrpe-3.2.1/macros/LICENSE.md
nrpe-nrpe-3.2.1/macros/README.md
nrpe-nrpe-3.2.1/macros/add_group_user
nrpe-nrpe-3.2.1/macros/ax_nagios_get_distrib
nrpe-nrpe-3.2.1/macros/ax_nagios_get_files
nrpe-nrpe-3.2.1/macros/ax_nagios_get_inetd
nrpe-nrpe-3.2.1/macros/ax_nagios_get_init
nrpe-nrpe-3.2.1/macros/ax_nagios_get_os
nrpe-nrpe-3.2.1/macros/ax_nagios_get_paths
nrpe-nrpe-3.2.1/macros/ax_nagios_get_ssl
nrpe-nrpe-3.2.1/nrpe.spec.in
nrpe-nrpe-3.2.1/paths.in
nrpe-nrpe-3.2.1/sample-config/
nrpe-nrpe-3.2.1/sample-config/nrpe.cfg.in
nrpe-nrpe-3.2.1/src/
nrpe-nrpe-3.2.1/src/Makefile.in
nrpe-nrpe-3.2.1/src/acl.c
nrpe-nrpe-3.2.1/src/check_nrpe.c
nrpe-nrpe-3.2.1/src/nrpe.c
nrpe-nrpe-3.2.1/src/snprintf.c
nrpe-nrpe-3.2.1/src/utils.c
nrpe-nrpe-3.2.1/startup/
nrpe-nrpe-3.2.1/startup/bsd-init.in
nrpe-nrpe-3.2.1/startup/debian-init.in
nrpe-nrpe-3.2.1/startup/default-inetd.in
nrpe-nrpe-3.2.1/startup/default-init.in
nrpe-nrpe-3.2.1/startup/default-service.in
nrpe-nrpe-3.2.1/startup/default-socket-svc.in
nrpe-nrpe-3.2.1/startup/default-socket.in
nrpe-nrpe-3.2.1/startup/default-xinetd.in
nrpe-nrpe-3.2.1/startup/gentoo-init.in
nrpe-nrpe-3.2.1/startup/mac-inetd.plist.in
nrpe-nrpe-3.2.1/startup/mac-init.plist.in
nrpe-nrpe-3.2.1/startup/newbsd-init.in
nrpe-nrpe-3.2.1/startup/openbsd-init.in
nrpe-nrpe-3.2.1/startup/openrc-conf.in
nrpe-nrpe-3.2.1/startup/openrc-init.in
nrpe-nrpe-3.2.1/startup/rh-upstart-init.in
nrpe-nrpe-3.2.1/startup/solaris-inetd.xml.in
nrpe-nrpe-3.2.1/startup/solaris-init.xml.in
nrpe-nrpe-3.2.1/startup/tmpfile.conf.in
nrpe-nrpe-3.2.1/startup/upstart-init.in
nrpe-nrpe-3.2.1/test-wrapper
nrpe-nrpe-3.2.1/travis-test-1
nrpe-nrpe-3.2.1/uninstall.in
nrpe-nrpe-3.2.1/update-cfg.pl
nrpe-nrpe-3.2.1/update-version
checking for a BSD-compatible install... /usr/bin/install -c
checking what the operating system is ... linux
checking what the distribution type is ... ubuntu
checking what init system is being used ... systemd
checking what inetd is being used ... systemd
checking for which paths to use ... default
checking for which init file to use ... default-service
checking for which inetd files to use ... default-socket
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... yes
checking tcpd.h presence... yes
checking for tcpd.h... yes
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... 8
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... yes
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 Kerberos include files... configure: WARNING: could not find include files
checking for pkg-config... pkg-config
checking whether compiling and linking against SSL works... yes
checking for openssl... /usr/bin/openssl

*** Generating DH Parameters for SSL/TLS ***
Generating DH parameters, 2048 bit long safe prime, generator 2
This is going to take a long time
...............................++*++*++*++*
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.

cd ./src/; make
make[1]: Entering directory '/usr/src/tmp.lQRRYnOcgX/nrpe-nrpe-3.2.1/src'
gcc -g -O2  -DHAVE_CONFIG_H -I ../include -I ./../include -o nrpe ./nrpe.c ./utils.c ./acl.c -lssl -lcrypto -lnsl -lwrap  
./nrpe.c: In function ‘read_config_dir’:
./nrpe.c:1064:54: warning: ‘%s’ directive output may be truncated writing up to 255 bytes into a region of size 254 [-Wformat-truncation=]
   snprintf(config_file, sizeof(config_file) - 1, "%s/%s", dirname, dirfile->d_name);
                                                      ^~
In file included from /usr/include/stdio.h:862:0,
                 from ../include/config.h:31,
                 from ./nrpe.c:37:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:64:10: note: ‘__builtin___snprintf_chk’ output 2 or more bytes (assuming 257) into a destination of size 255
   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        __bos (__s), __fmt, __va_arg_pack ());
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gcc -g -O2  -DHAVE_CONFIG_H -I ../include -I ./../include -o check_nrpe ./check_nrpe.c ./utils.c -lssl -lcrypto -lnsl  
make[1]: Leaving directory '/usr/src/tmp.lQRRYnOcgX/nrpe-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.

Group nagios already exists
User nagios already exists
cd ./src/; make install-plugin
make[1]: Entering directory '/usr/src/tmp.lQRRYnOcgX/nrpe-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[1]: Leaving directory '/usr/src/tmp.lQRRYnOcgX/nrpe-nrpe-3.2.1/src'
cd ./src/; make install-daemon
make[1]: Entering directory '/usr/src/tmp.lQRRYnOcgX/nrpe-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[1]: Leaving directory '/usr/src/tmp.lQRRYnOcgX/nrpe-nrpe-3.2.1/src'
/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
/usr/bin/install -c -m 644 startup/default-service /usr/lib/systemd/system/nrpe.service
/usr/bin/install: cannot create regular file '/usr/lib/systemd/system/nrpe.service': No such file or directory
Makefile:92: recipe for target 'install-init' failed
make: *** [install-init] Error 1
Failed to stop nrpe.service: Unit nrpe.service not loaded.
--2020-04-25 21:13:44--  https://raw.githubusercontent.com/Cat5TV/nems-migrator/master/data/1.5/nagios/misc/nrpe.cfg
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.112.133
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.112.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 12486 (12K) [text/plain]
Saving to: ‘/usr/local/nagios/etc/nrpe.cfg’

/usr/local/nagios/e 100%[===================>]  12.19K  --.-KB/s    in 0.002s  

2020-04-25 21:13:45 (6.14 MB/s) - ‘/usr/local/nagios/etc/nrpe.cfg’ saved [12486/12486]

Reading package lists... Done
Building dependency tree       
Reading state information... Done
bc is already the newest version (1.07.1-2).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree       
Reading state information... Done
dc is already the newest version (1.07.1-2).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
/usr/lib/nagios/plugins/custom_check_mem: No such file or directory
chmod: cannot access '/usr/lib/nagios/plugins/custom_check_mem': No such file or directory
Failed to start nrpe.service: Unit nrpe.service not found.
Failed to enable unit: Unit file nrpe.service does not exist.
Unit nrpe.service could not be found.
grep: /var/log/nems/patches.log: No such file or directory
bash: line 53: /var/log/nems/patches.log: No such file or directory
Done.
root@taz:~# 

== Service Running Check ==

Code: Select all

root@taz:~# ps -aux | grep nrpe
root     20014  0.0  0.0  14428  1088 pts/0    S+   07:44   0:00 grep --color=auto nrpe
root@taz:~# 

Code: Select all

root@taz:~# netstat -plnt
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name    
tcp        0      0 127.0.0.1:26001         0.0.0.0:*               LISTEN      13762/nxnode.bin    
tcp        0      0 127.0.0.1:20947         0.0.0.0:*               LISTEN      938/nxserver.bin    
tcp        0      0 127.0.0.53:53           0.0.0.0:*               LISTEN      809/systemd-resolve 
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      928/sshd            
tcp        0      0 127.0.0.1:631           0.0.0.0:*               LISTEN      2241/cupsd          
tcp        0      0 0.0.0.0:31416           0.0.0.0:*               LISTEN      12401/boinc         
tcp        0      0 127.0.0.1:7001          0.0.0.0:*               LISTEN      13762/nxnode.bin    
tcp        0      0 0.0.0.0:4000            0.0.0.0:*               LISTEN      1050/nxd            
tcp        0      0 127.0.0.1:12001         0.0.0.0:*               LISTEN      13762/nxnode.bin    
tcp6       0      0 :::22                   :::*                    LISTEN      928/sshd            
tcp6       0      0 ::1:631                 :::*                    LISTEN      2241/cupsd          
tcp6       0      0 ::1:7001                :::*                    LISTEN      13762/nxnode.bin    
tcp6       0      0 :::4000                 :::*                    LISTEN      1050/nxd            
root@taz:~# 

Code: Select all

root@taz:/var/log# grep  nagios /var/log/syslog
root@taz:/var/log# 
root@taz:/var/log# grep nrpe /var/log/syslog
root@taz:/var/log# 
root@taz:/var/log# 

Help please.
User avatar
Robbie Ferguson
Posting Freak
Posts: 835
Joined: Wed Mar 07, 2012 3:23 pm
Location: Ontario, Canada
Contact:

Re: Multiple Client Install / Operating Issues

Post by Robbie Ferguson »

Thanks for the detailed info. What version of Ubuntu is the client? There's definitely something interesting (odd) going on with apt.

I'll gladly setup a test system to figure out what's going on and fix the installer for you (and anyone else who may encounter this), so just let me know - thanks.

Robbie
User avatar
propellerhead333
Junior Member
Posts: 12
Joined: Sat Apr 25, 2020 8:22 pm
Location: Ontario, Canada
Contact:

Re: Multiple Client Install / Operating Issues

Post by propellerhead333 »

Wow Robbie, thank you! I've been following your shows (new subscriber) and understand your current challenges so definitely not expecting your help on this anytime soon. Love the show and amazed at all you and your team do for the IT community. I'm obsessing over MicroTik after watching the show today lol. Reminds me a bit of Vyos.

Test system I'm using above:

Code: Select all

root@taz:~# cat /etc/issue
Linux Mint 19.2 Tina \n \l
I am also getting the same results on a Deb 10 container.

Thanks again!
User avatar
propellerhead333
Junior Member
Posts: 12
Joined: Sat Apr 25, 2020 8:22 pm
Location: Ontario, Canada
Contact:

Re: Multiple Client Install / Operating Issues

Post by propellerhead333 »

One thing I noticed in my output when running install script:

Code: Select all

Makefile:92: recipe for target 'install-init' failed
Not sure if that matters.
Post Reply