Setting up NRPE daemon

From Alpine Linux
Revision as of 22:32, 10 November 2009 by Jbilyk (talk | contribs)
Jump to: navigation, search

Note: This was tested using Alpine 1.9.1, running under VMware Workstation 5.5.1 build-19175. Host O/S for VMware Windows XP Home SP3. CPU: Intel Atom N270. Mostly due to laziness, didn't find openssl-dev, since apk wasn't available, so SSL support isn't compiled in when following he below steps.

Source code:

Steps for compilation:

  1. Downloaded nrpe-2.12
  2. apk add alpine-sdk
  3. apk add net-snmp # Wanted for some nrpe plugins
  4. apk add linux-grsec-dev
  5. ./configure --disable-ssl
  6. make all
  7. make install-plugin
  8. make install-daemon
  9. Since sample config didn't compile using above steps, configured the following config for testing:

Ran the following command to test:

root#/usr/local/nagios/libexec/check_nrpe -n -H
NRPE v2.12

For expanding NRPE's capabilities, consider scripts included with the nagios-plugins source code, also from the above site. To compile and run on Alpine, the alpine-sdk and net-snmp packages will be required (some plugins appear to have to issues with the version of net-snmp included with Alpine 1.9.1, but this will most likely be resolved with future nagios-plugins updates).

To compile nagios-plugins successfully, compile with the --with-openssl=no (since the openssl-dev package is not present). All other defaults appear to function correctly.

NOW: Compile both NRPE and nagios-plugins with SSL support, once the proper version of openssl-dev is acquired and installed.