[Nagiosplug-help] how to Define NRPE in checkcommands.cfg
Guy Waugh
gwaugh at scu.edu.au
Sun May 8 16:04:29 CEST 2005
Hi Eugene,
eugene wrote:
> Can i know how to define NRPE in checkcommands.cfg?
> I do it as below and i am not sure it is correct or not.
>
>
> # 'check_nrpe' command definition
> define command{
> command_name check_nrpe
> command_line /usr/local/nagios/libexec/check_nrpe -H
> $HOSTADDRESS$ -c $ARG1$
> }
> Anyone has idea, please help.....
> Thank You......
I just faced this issue myself...
My definition of 'check_nrpe' is like this:
# 'check_nrpe' command definition
define command{eugene <eugene at mnc.com.my>
command_name check_nrpe
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$
-a $ARG2$ $ARG3$ $ARG4$ $ARG5$ $ARG6$
}
I was having a problem before I added the '-a $ARG2$...' on the end, as
I couldn't pass arguments to plugins on the remote host. Note that to be
able to pass arguments to plugins on the remote host, NRPE on the remote
host must be compiled with '--enable-command-args'...
Regards,
Guy.
>
> *Eugene Than
> HelpDesk Support, Network and System
> MNC Wireless Berhad (635884-T)
> No. 45, Block A, Level 3, Unit 3.03,
> Medan Setia 1, Plaza Damansara,
> Bukit Damansara, 50490 Kuala Lumpur
>
> M: +6012-613 4855
> T: +603-2095 6063
> F: +603-2093 5909
> E: eugene at mnc.com.my <mailto:eugene at mnc.com.my>
> W: www.mnc.com.my <http://www.mnc.com.my>
> Mobile Portal: www.gospecial.com <http://www.gospecial.com>
> *
> ------------------------------------------------------------------------
> This email is intended only for the use of the individual or entity
> named above and may contain information that is confidential and/or
> privileged. If you are not the intended recipient, you are hereby
> notified that any review, retransmission, dissemination, distribution,
> copying of, or other use of, or taking of any action in reliance upon
> this email is strictly prohibited. When addressed to our clients, any
> opinions or advice contained in this email are subject to the terms and
> conditions expressed in the governing MNC client engagement letter. If
> you have received this email in error, please notify us immediately by
> return email or telephone +603-2095 6063 and destroy the original
>
More information about the Help
mailing list