Install NRPE From Source (NRPE)
The maintainers of Debian have decided that a large proportion of their user base is unable to comprehend the security implications of the dont_blame_nrpe
, and have disabled the functionality during compilation, rendering the dont_blame_nrpe
useless. Ubuntu is based on Debian, therefore decisions made for Debian impact Ubuntu. To be fair to the maintainer of the package, it appears as if uninformed Debian users have been using the dont_blame_nrpe
option and then suffering breaches (see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=756479).
This page is based on the instructions provided at https://support.nagios.com/kb/article.php?id=515
Procedure
The below assumes you are running as root, if not precede the commands with sudo
- Install prerequisite packages to allow compilation of source code
apt-get install autoconf gcc libc6 libmcrypt-dev make libssl-dev wget
- Download the source code
cd /tmp
wget --no-check-certificate https://github.com/NagiosEnterprises/nrpe/archive/3.0.tar.gz
tar xzf 3*
- Compile the source code
cd /tmp/nrpe-3.0/
./configure --enable-command-args
make all
- Create nagios user and group
make install-groups-users
- Install binaries
make install
- Install config files
make install-config
- Update services file
sh -c "echo >> /etc/services"
sh -c "sudo echo '# Nagios services' >> /etc/services"
sh -c "sudo echo 'nrpe 5666/tcp' >> /etc/services"
- Install service daemon
- Ubuntu version 14 and before
make install-init
- Ubuntu version 15 and later
make install-init
systemctl enable nrpe.service
- Ubuntu version 14 and before
- Start the service daemon
- Ubuntu version 14 and before
start nrpe
- Ubuntu version 15 and later
systemctl start nrpe.service
- Ubuntu version 14 and before
{{#seo:
|title=Ubuntu NRPE Installation Instructions, using source
|keywords=nrpe,nagios,monitor,ubuntu,source,dont_blame_nrpe
|description=Instructions on installing the Ubuntu flavour of the NRPE agent from source (rather than from repo)
}}