NRPE++ is a C++ implementation of NRPE.
The software is in pre-alpha version and, thus supporting NRPE protocol version 2, 3 and 4, it currently just return an Hello World message to any received query.
-
Install the dependencies:
sudo apt-get install libasio-dev libboost-system-dev
-
Check-out the source code
git clone https://github.com/ziccardi/nrpe_plus.git cd nrpe_plus
-
Run the compilation
./configure
make
-
Compiled file named
nrpe++
will be created into thesrc
folder.
CentOS 7 is shipped with a very old version of boost that is not supported by NRPE++, so we will have to install boost from the sources.
mkdir boost && cd boost
wget https://dl.bintray.com/boostorg/release/1.72.0/source/boost_1_72_0.tar.gz
tar xvfz boost_1_72_0.tar.gz && cd boost_1_72_0
sudo ./bootstrap.sh --prefix=/usr/local/boost
sudo ./b2 install
- Cross your fingers and wait
- Check-out the source code
git clone https://github.com/ziccardi/nrpe_plus.git cd nrpe_plus
- CPPFLAGS="-std=c++11 -I /usr/local/boost/include/" ./configure
- make
- Compiled file named
nrpe++
will be created into thesrc
folder.
NOTE We need to specify the CPPFLAGS
because CentOS ships with a very old gcc
compiler.
Prerequisites: you need to have brew up and running to follow this instructions.
-
Install
boost
brew install boost
-
Check-out the source code
git clone https://github.com/ziccardi/nrpe_plus.git cd nrpe_plus
-
Run the compilation
./configure
make
-
Compiled file named
nrpe++
will be created into thesrc
folder.
Enjoy!