Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Mar 26 14:16:32 nrpe[19778]: Error: Request contained command arguments!
Mar 26 14:16:32 nrpe[19778]: Client request was invalid, bailing out...
then, I would guess that you didn't enable the command arguments when you were compiling nrpe.
Please, take a look at the nrpe.cfg file:
# COMMAND ARGUMENT PROCESSING
# This option determines whether or not the NRPE daemon will allow clients
# to specify arguments to commands that are executed. This option only works
# if the daemon was configured with the --enable-command-args configure script
# option.
#
# *** ENABLING THIS OPTION IS A SECURITY RISK! ***
# Read the SECURITY file for information on some of the security implications
# of enabling this variable.
#
# Values: 0=do not allow arguments, 1=allow command arguments
dont_blame_nrpe=1
Be sure to check out our Knowledgebase for helpful articles and solutions!
Thanks, but I cannot have a compiler on this server. I had to download a pre-compiled nrpe. Is there a command to see all the enabled options from the build? Do you know if one for RHEL that has this enabled, assuming what I have running has it disabled?
Most of the distribution nrpe packages turn this off to avoid security warnings about their packages. Do you have a build server where we could build the bins and then transfer them over?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
su nagios
check_nrpe -H 1.2.3.4 -c check_disk -a '-w 20% -c 10% -p /var'
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
So sounds like there might be a bit of confusion here, the nrpe.cfg that should be looked at is the remote host's, the nagios server's nrpe.cfg definitions are not being used here.
Thanks. One of the two commands I was trying was already correct in the remote host's nrpe.cfg, but they both look correct now. commands.cfg is in /usr/local/nagios/etc/objects/commands.cfg, but: