NRPE Parameter Problems

NIgel Leach nigel.leach at uk.bnpparibas.com
Fri Jan 15 15:49:54 CET 2010


Marc Powell <marc <at> ena.com> writes:

> 
> hmm. I don't see the original that Assaf is reponding to but.... comment
inline below for the OP --
> 
> > nigel.leach <at> uk.bnpparibas.com wrote:
> 
> >> Using variables, I can get the correct results from the command line;
> >> 
> >>        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 -
> 
> --
> Marc
> 

many thanks Marc, that was exactly my problem.

# diff commands.cfg commands.cfg.orig
23c23
< command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$ -a $ARG2$ $ARG3$...
---
> command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$

this was my first post to the list, so it was very encouraging to get such a
quick, and useful, reply.

cheers, Nigel



------------------------------------------------------------------------------
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
Nagios-users at lists.sourceforge.net
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





More information about the Users mailing list