Error when I run through the check_nrpe

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
fraguillen
Posts: 47
Joined: Fri May 18, 2018 11:40 am

Re: Error when I run through the check_nrpe

Post 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(
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Error when I run through the check_nrpe

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked