Last active
November 7, 2023 13:24
-
-
Save gardart/c5140bb8cee4f7012c8f1af3b59b69ce to your computer and use it in GitHub Desktop.
This file contains 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
# Install Nagios NRPE client with okconfig/adagios support | |
sudo rpm -ihv http://opensource.is/repo/ok-release.rpm | |
sudo yum update -y ok-release | |
sudo yum install -y nrpe nagios-plugins-load nagios-plugins-procs nagios-plugins-swap | |
sudo yum --enablerepo=ok-testing install -y nagios-plugins-check_cpu nagios-okconfig-nrpe | |
sudo yum enable nrpe | |
# Fix allowed hosts and dont blame nrpe in nrpe settings | |
export NAGIOS_SERVER='192.168.1.100' | |
sed -i "/^allowed_hosts=/ s/$/,$NAGIOS_SERVER/" /etc/nagios/nrpe.cfg | |
sed -i '/^dont_blame_nrpe=/c\dont_blame_nrpe=1' /etc/nagios/nrpe.cfg | |
sudo restart nrpe |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment