Setting up NRPE daemon: Difference between revisions

From Alpine Linux
No edit summary
No edit summary
Line 4: Line 4:
Steps for compilation:
Steps for compilation:


1) Downloaded nrpe-2.12
# Downloaded nrpe-2.12
2) apk add alpine-sdk
# apk add alpine-sdk
3) apk add net-snmp # Wanted for some nrpe plugins
# apk add net-snmp # Wanted for some nrpe plugins
4) apk add linux-grsec-dev
# apk add linux-grsec-dev
5) ./configure --disable-ssl
# ./configure --disable-ssl
6) make all
# make all
7) make install-plugin
# make install-plugin
8) make install-daemon
# make install-daemon
9) Since sample config didn't compile using above steps, configured the following config for testing:
# Since sample config didn't compile using above steps, configured the following config for testing:
   pid_file=/var/run/nrpe.pid
   pid_file=/var/run/nrpe.pid
   server_port=5666
   server_port=5666
   server_address=192.168.48.128
   server_address=192.168.48.128
   allowed_hosts=192.168.48.128
   allowed_hosts=192.168.48.128
10) /usr/local/nagios/libexec/check_nrpe -n -H 192.168.48.128
* /usr/local/nagios/libexec/check_nrpe -n -H 192.168.48.128
   Response from server: "NRPE v2.12"
   "NRPE v2.12"


NOW: Compile with SSL support.
NOW: Compile with SSL support.

Revision as of 02:54, 6 November 2009

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. Note: 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.

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:
  pid_file=/var/run/nrpe.pid
  server_port=5666
  server_address=192.168.48.128
  allowed_hosts=192.168.48.128
  • /usr/local/nagios/libexec/check_nrpe -n -H 192.168.48.128
  "NRPE v2.12"

NOW: Compile with SSL support.