:::: MENU ::::

NRPE – Enable command args (Jessie, …)

  • Nov 24 / 2016
  • 0
Linux

NRPE – Enable command args (Jessie, …)

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:

and in logs:

!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:

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

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

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

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).

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

Comments are closed.

Question ? Contact