hmm. I don't see the original that Assaf is reponding to but.... comment inline below for the OP --
> [email protected] wrote: >> Using variables, I can get the correct results from the command line; >> >> Service definition on Header Node - >> >> check_nrpe!check_adisk!20%!10%!/opt >> >> Relates to the following in nrpe.cfg on the Client - >> >> command[check_adisk]=/usr/local/nagios/libexec/check_disk -w >> $ARG1$ -c $ARG2$ -p $ARG3$ But is the check_nrpe command{} definition actually configured to pass the $ARG2$, $ARG3$ and $ARG4$ macros from the service definition above to the remote host? It doesn't look like it is based on your results below. Post your check_nrpe command definition if you are unsure. >> However, this does not work within Nagios GUI, all the parameters >> passed are blank. I see this in syslog on the Client - >> >> Added >> command[check_adisk]=/usr/local/nagios/libexec/check_disk-w $ARG1$ -c >> $ARG2$ -p $ARG3$ >> Handling the connection... >> Host is asking for command \'check_adisk\' to be run... >>>>>>> Running command: /usr/local/nagios/libexec/check_disk -w >> -c -p >> Command completed with return code 3 and output: Unknown >> argument Usage: check_disk -w limit -c limit [-W limit] [-K limit] {-p >> path | -x device} [-C] [-E] [-e] [-g group ] [-k] [-l] [-M] [-m] [-R >> path ] [-r path ] [-t timeout] [-u unit] [-v] [-X type] >> Return Code: 3, Output: Unknown argument Usage: check_disk -w >> limit -c limit [-W limit] [-K limit] {-p path | -x device} [-C] [-E] >> [-e] [-g group ] [-k] [-l] [-M] [-m] [-R path ] [-r path ] [-t >> timeout] [-u unit] [-v] [-X type] -- Marc ------------------------------------------------------------------------------ Throughout its 18-year history, RSA Conference consistently attracts the world's best and brightest in the field, creating opportunities for Conference attendees to learn about information security's most important issues through interactions with peers, luminaries and emerging and established companies. http://p.sf.net/sfu/rsaconf-dev2dev _______________________________________________ Nagios-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
