> ## Content Index
> Fetch the complete content index at: https://www.bagz.fr/llms.txt
> Use this file to discover other available public pages before exploring further.

# NRPE - Enable command args (Jessie, ...)
- URL: https://www.bagz.fr/nrpe-enable-command-args-jessie/
- Published: 2016-11-24T11:47:18.000Z
- Updated: 2016-11-24T11:47:18.000Z
- Author: bgazui
- Tags: Linux, #Migrated-1790668826633, #wp, #wp-post, #Import 2026-09-29 08:00

With recent versions of NRPE server, the possibility to enable command args has been disabled.

For example, on a Debian Jessie, you can get this kind of error on console:

CHECK\_NRPE: Received 0 bytes from daemon  

and in logs:

Error: Request contained command arguments!   

!WARNING! 

This change can lead to security issue, this is why it has been disabled by default. You have to double check your servers can't be reached from anywhere with NRPE commands (to avoid execution of unwanted or malicious code).

Once you're sure there's no security breach in your infra, you can go on with the installation of source:

cd /tmp  
apt-get update  
apt-get install -y build-essential devscripts debhelper libssl-dev dpatch libwrap0-dev autotools-dev  
ln -s /usr/lib/x86\_64-linux-gnu/libssl.so /usr/lib/libssl.so  
apt-get source nagios-nrpe-server  

Then, you'll have to change the rules defined in the **rules** file:

cd nagios-nrpe-2.15/  
vi debian/rules  

You must add this line **\--enable-command-args** after **\--libdir=/usr/lib/nagios**.  
You should so get something like

override\_dh\_auto\_configure:  
 ./configure   
 \--prefix=/usr   
 \--enable-ssl   
 \--with-ssl-lib=/usr/lib/$(DEB\_HOST\_MULTIARCH)   
 \--sysconfdir=/etc   
 \--localstatedir=/var   
 \--libexecdir=/usr/lib/nagios/plugins   
 \--libdir=/usr/lib/nagios   
 \--enable-comand-args  

Finally, you can compile your new configuration and install it:

./configure  
make all  
cd ..  
dpkg -i nagios-nrpe-server\_2.15-1.1\_amd64.deb  

Ensure you set the value for **dont\_blame\_nrpe** in **/etc/nagios/nrpe.cfg** (this is the default path, it can be different depending on your installation).

dont\_blame\_nrpe=1  

And here you go, you can now restart your NRPE server and send any nrpe commands.