Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#!/bin/sh
set -u
yum -y update
yum -y install git openssl-devel
mkdir ./downloads
cd ./downloads
wget http://nagios-plugins.org/download/nagios-plugins-2.2.1.tar.gz
tar xzf nagios-plugins-2.2.1.tar.gz
cd nagios-plugins-2.2.1
./configure
make
make install
yum -y install xinetd
cd ..
git clone https://github.com/NagiosEnterprises/nrpe.git
cd nrpe
git checkout tags/nrpe-3.0.0
./configure
make all
make install-groups-users
make install
make install-config
make install-init
cd ../..
systemctl restart xinetd
systemctl enable nrpe && systemctl start nrpe
echo "Must show 'LISTENING':"
netstat -at | egrep "5666"
echo "Must show NRPE 3.0:"
/usr/local/nagios/libexec/check_nrpe -H localhost
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.