Trick: compile latest Nagios NRPE agent and plugins for MacOS with SSL

Steps to build the latest Nagios NRPE agent and nagios-plugins package for MacOS with SSL support:

    1. Download openssl-0.9.8zh.tar.gz
    2. Unpack and compile openssl-0.9.8gz (but do not “make install”):
      tar xzf openssl-0.9.8zh.tar.gz -C /tmp
      cd /tmp/openssl-0.9.8zh
      ./config
      make
    3. Download nagios-plugins-2.1.2.tar.gz.
    4. Unpack and compile nagios-plugins:
      cd -
      tar xzf nagios-plugins-2.1.2.tar.gz -C /tmp/
      cd /tmp/nagios-plugins-2.1.2
      ./configure --with-openssl=/tmp/openssl-0.9.8zh --enable-perl-modules
      make
      sudo make install
    5. Download nrpe 3.0.tar.gz.
    6. Unpack and compile nrpe 3.0:
      cd -
      tar xzf nrpe-3.0.tar.gz -C /tmp/
      cd /tmp/nrpe-3.0
      ./configure --with-openssl=/tmp/openssl-0.9.8zh
      make
      sudo make install