Page 2 of 2

Re: Error when I run through the check_nrpe

Posted: Tue Apr 23, 2019 11:47 am
by fraguillen
Hi,

I did not want to set it up like this.

However, I have no choice but to configure it that way. I wanted to pass it as a parameter from the Nagios XI and not in the nrpe.cfg

spefacnfs02:/ # cat /opt/iexpress/nagios/etc/nrpe.cfg |grep check_count_file
#command[check_count_file]=/opt/iexpress/nagios/libexec/check_count_file.sh $ARG1$ $ARG2$ $ARG3$
command[check_count_file]=/opt/iexpress/nagios/libexec/check_count_file.sh /recovery/nfs1/pipe_data/pin_rel/data
spefacnfs02:/ # /sbin/init.d/nrpe stop
killing nrpe
spefacnfs02:/ # /sbin/init.d/nrpe start
Starting NRPE DAEMON subsystem

spefacnfs02:/ # /opt/iexpress/nagios/libexec/check_nrpe -H 127.0.0.1 -H 127.0.0.1 -c check_count_file
OK - Hay 9503 archivos en la carpeta /recovery/nfs1/pipe_data/pin_rel/data | 'Cantidad'=9503;;
spefacnfs02:/ #

Thanks, you can close this post :0(

Re: Error when I run through the check_nrpe

Posted: Tue Apr 23, 2019 1:00 pm
by lmiltchev
I did not want to set it up like this.

However, I have no choice but to configure it that way. I wanted to pass it as a parameter from the Nagios XI and not in the nrpe.cfg
You should be able to pass arguments if you have:

Code: Select all

dont_blame_nrpe=1
in the nrpe.cfg. It it's not working for you, this means that NRPE was not compiled with the "--enable-command-args" option, and you would need to recompile it.
Thanks, you can close this post :0(
I will be closing the post now, but if you recompiled NRPE with the "--enable-command-args" option, and you are still not able to pass arguments, please start a new thread.