Setting up NRPE daemon
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: http://nagios.org/
Steps for compilation:
- Downloaded nrpe-2.12
- apk add alpine-sdk
- apk add net-snmp # Wanted for some nrpe plugins
- apk add linux-grsec-dev
- ./configure --disable-ssl
- make all
- make install-plugin
- make install-daemon
- Since sample config didn't compile using above steps, configured the following config for testing:
pid_file=/var/run/nrpe.pid server_port=5666 server_address=192.168.48.128 allowed_hosts=192.168.48.128
Ran the following command to test:
root#/usr/local/nagios/libexec/check_nrpe -n -H 192.168.48.128 NRPE v2.12 root#
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.