Skip to content

Instantly share code, notes, and snippets.

@gardart
Last active November 7, 2023 13:24
Show Gist options
  • Save gardart/c5140bb8cee4f7012c8f1af3b59b69ce to your computer and use it in GitHub Desktop.
Save gardart/c5140bb8cee4f7012c8f1af3b59b69ce to your computer and use it in GitHub Desktop.
# 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