Re: Error when I run through the check_nrpe
Posted: Tue Apr 23, 2019 11:47 am
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(
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(