check_disk: Warning threshold must be integer or percentage!

i have a problem with nrpe.cfg .
i want to use check_disk command,
my nagios works well with this definition in nrpe.cfg file :

command[check_disk]=/usr/local/nagios/libexec/check_disk -w 40% -c 10% -p /dev/hda1

but when i comment this line and use line below instead of it i get error in nagios interface .

command[check_disk]=/usr/local/nagios/libexec/check_disk -w $ARG1$ -c $ARG2$ -p $ARG3$

the error is this :

check_disk: Warning threshold must be integer or percentage!

in the services file on nagios server i 've used command like this :

check_command check_nrpe!check_disk!40%!10%!/dev/hda1

what 's wrong ?
i’am ready confused :shock:
help me :cry:

just a shot in the dark…
try using 40%


Well, if you’re looking for a quick fix, go back and use the first config and edit out the arguments in your service definition.

As far as why this is happening, I’m not really sure. I know you can’t use arguments by default in your service definitions when working with NRPE, but I don’t think that’s the error you get when you use the plugins in an “illegal” fashion.

thanks friends,
i’m not sure but i think i had to compile the nrpe with support for arguments by using --enable-command-args .
i am tesing it ,i will put the answer .

oh yes i just found these lines in SECURITY file in nrpe directory on my system :


NRPE 2.0 includes the ability for clients to supply arguments to
commands which should be run. Please note that this feature
should be considered a security risk, and you should only use
it if you know what you’re doing!


To enable support for command argument in the daemon, you must
do two things:

  1. Run the configure script with the --enable-command-args

  2. Set the ‘dont_blame_nrpe’ directive in the NRPE config
    file to 1.