Skip to content

Instantly share code, notes, and snippets.

@ntk148v
Last active June 9, 2016 06:28
Show Gist options
  • Save ntk148v/deaa17002ea71ec3f2e8f8ab88757259 to your computer and use it in GitHub Desktop.
Save ntk148v/deaa17002ea71ec3f2e8f8ab88757259 to your computer and use it in GitHub Desktop.
  1. Install Nagios Core and Nagios Plugins first.
  2. Download NRPE:
  curl -L -O http://downloads.sourceforge.net/project/nagios/nrpe-2.x/nrpe-2.15/nrpe-2.15.tar.gz
  1. Extract the NRPE archive:
  tar xvf nrpe-*.tar.gz
  1. Go to extracted directory then run this commands:
  ./configure --enable-command-args --with-nagios-user=nagios --with-nagios-group=nagios --with-ssl=/usr/bin/openssl --with-ssl-lib=/usr/lib/x86_64-linux-gnu
  make all
  sudo make install 
  sudo make install-xinetd
  sudo make install-daemon-config
  1. Configure NRPE, open /etc/xinetd.d/nrpe file then find only_from line: only_from = 127.0.0.1 <actual_ip_of_nagios_server> Then restart xinetd service.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment