Page 1 of 1

NRPE - Request contained command arguments

Posted: Thu Nov 14, 2019 2:23 pm
by awilson
Hi. Does the following mean that nrpe was compiled without the --enable-command-args configure script option?

I've been scouring the nrpe.cfg file for a check configured without arguments, but it has them.

If it was, is it safe to copy an executable from a similar host or should I reinstall with the correct option?

The nrpe version seems odd with the "vnrpe."

Code: Select all

NRPE vnrpe-3.0
Thanks!

Code: Select all

Nov 14 13:05:11 remotehost nrpe[26426]: Error: Request contained command arguments!
Nov 14 13:05:11 remotehost nrpe[26426]: Client request from  was invalid, bailing out...
Nov 14 13:05:11 remotehost xinetd[26217]: EXIT: nrpe status=0 pid=26426 duration=0(sec)

Re: NRPE - Request contained command arguments

Posted: Thu Nov 14, 2019 2:46 pm
by benjaminsmith
Hello @awilson,

You'll need to re-compile with the correct option. Please see the instructions below.

NRPE - How To Install NRPE v3 From Source

There is also a configuration option that enables command arguments, make sure that is enabled in the configuration file.

Check that this option is set to 1 to allow arguments to be received.

Code: Select all

vi /usr/local/nagios/etc/nrpe.cfg
dont_blame_nrpe=1

Re: NRPE - Request contained command arguments

Posted: Fri Nov 15, 2019 12:08 pm
by awilson
Thank you. You can close this.

Re: NRPE - Request contained command arguments

Posted: Fri Nov 15, 2019 12:34 pm
by benjaminsmith
Hi @awilson,
Thank you. You can close this.
Sounds good. We'll lock this up.

Have a great weekend!