#Install and configure NRPE #Enable Epel yum install -y epel-release #Install packages yum install -y nagios-plugins-load nagios-plugins-swap nagios-plugins-disk nagios-plugins-dns nagios-plugins-tcp nagios-plugins nagios-common nrpe wget #Download NRPE Config wget -4 http://mirror.beyondhosting.net/provisioning/cpanel-automated-provisioning/nrpe/bhnrpe.cfg -O /etc/nrpe.d/bhnrpe.cfg #Allow BH NOC IP sed -i 's/allowed_hosts=127.0.0.1/allowed_hosts=8.29.138.28/g' -- /etc/nagios/nrpe.cfg #Configure systemd auto updates wget -4 http://mirror.beyondhosting.net/provisioning/cpanel-automated-provisioning/nrpe/bh-update-nrpe.service -O /etc/systemd/system/bh-update-nrpe.service wget -4 http://mirror.beyondhosting.net/provisioning/cpanel-automated-provisioning/nrpe/bh-update-nrpe.timer -O /etc/systemd/system/bh-update-nrpe.timer wget -4 http://mirror.beyondhosting.net/provisioning/cpanel-automated-provisioning/nrpe/nrpe.service -O /etc/systemd/system/nrpe.service #Reload and enable systemd services systemctl daemon-reload systemctl enable nrpe bh-update-nrpe.service bh-update-nrpe.timer systemctl restart nrpe bh-update-nrpe.timer