Last active
February 23, 2018 16:54
-
-
Save filipepgoes/1c3e802532eafed797436b39fc2cff66 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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