Skip to content
Permalink
Browse files

PATCH-000007 - Move nrpe away from repos

  • Loading branch information...
NEMS Linux
NEMS Linux committed Aug 12, 2019
1 parent ce94b1b commit 0cbe3c909c7678c0668c8874e40f4dc91972caa5
Showing with 49 additions and 2 deletions.
  1. +36 −0 build/047-nrpe
  2. +2 −2 build/packages.add
  3. +11 −0 nems-upgrade/patches/000007
@@ -0,0 +1,36 @@
#!/bin/bash

# Set the version (see git releases)
nrpeVer="3.2.1"

APT_LISTCHANGES_FRONTEND=cat
echo $0 > /var/www/html/userfiles/nems-build.cur
systemctl stop nrpe
yes | apt remove --purge nagios-nrpe-plugin
yes | apt remove --purge nagios-nrpe-server
yes | apt autoremove
apt update
yes | apt install libssl-dev dpatch debhelper libwrap0-dev autotools-dev
tmpdir=`mktemp -d -p /tmp/`
file="https://github.com/NagiosEnterprises/nrpe/archive/nrpe-$nrpeVer.tar.gz"
cd $tmpdir
wget -O $tmpdir/nrpe.tar.gz $file
tar xvzf nrpe.tar.gz
cd nrpe-*
./configure --enable-command-args
make all
make install-groups-users
make install-plugin
make install-daemon
make install-config
make install-inetd
make install-init

systemctl stop nrpe

cp -f /root/nems/nems-migrator/data/1.5/nagios/nrpe.cfg /usr/local/nagios/etc/nrpe.cfg

systemctl start nrpe
systemctl enable nrpe
systemctl status nrpe --no-pager

@@ -71,8 +71,8 @@ hddtemp
# For Nagios Core
libgd-dev
# nagios-images -- part of nems-www now
nagios-nrpe-plugin
nagios-nrpe-server
#nagios-nrpe-plugin -- orphaned. Compile from github instead
#nagios-nrpe-server

# *.local Resolution
avahi-daemon
@@ -0,0 +1,11 @@
#!/bin/bash

if ! grep -q "PATCH-000007" /var/log/nems/patches.log; then
/root/nems/nems-admin/build/047-nrpe
echo "PATCH-000007" >> /var/log/nems/patches.log
else
echo "This patch is already applied."
fi



0 comments on commit 0cbe3c9

Please sign in to comment.
You can’t perform that action at this time.