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 :
COMMAND ARGUMENTS
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!
ENABLING ARGUMENTS
To enable support for command argument in the daemon, you must
do two things:
Run the configure script with the --enable-command-args
option
Set the ‘dont_blame_nrpe’ directive in the NRPE config
file to 1.