<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.6944.0">
<TITLE>[Nagios-users] Macro Identifier and String Mixing</TITLE>
</HEAD>
<BODY>
<DIV id=idOWAReplyText67342 dir=ltr>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2>Even though the nrpe daemons
on the remote side do not accept command arguments, your check_nrpe command
requires arguments...</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial size=2>Your command should look like
this.</FONT></DIV>
<DIV dir=ltr><FONT size=2>define command {<BR>
command_name check_vcs<BR> command_line
$USER1$/check_nrpe -H $HOSTADDRESS$ -c 'command you want to
run'<BR>}</FONT></DIV>
<DIV dir=ltr><FONT size=2></FONT> </DIV>
<DIV dir=ltr><FONT size=2>when it says that you cannot send command arguments...
they mean that you cannot send command arguments into the remote check you are
running (ie. setting the threshold for a check_disk command)</FONT></DIV></DIV>
<DIV dir=ltr><BR>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> nagios-users-admin@lists.sourceforge.net
on behalf of Ralph.Grothe@itdz-berlin.de<BR><B>Sent:</B> Wed 7/27/2005 6:33
AM<BR><B>To:</B> nagios-users@lists.sourceforge.net;
nagiosplug-help@lists.sourceforge.net<BR><B>Subject:</B> [Nagios-users] Macro
Identifier and String Mixing<BR></FONT><BR></DIV>
<DIV>
<P><FONT size=2>Hello,<BR><BR>I would like to know if it is possible to mix
(i.e. prefix, or<BR>suffix, or backticks substitute)<BR>a macro identifier (as
listed in<BR><A
href="http://nagios.sourceforge.net/docs/2_0/macros.html">http://nagios.sourceforge.net/docs/2_0/macros.html</A>)<BR>within
the checkcommands.cfg file context (i.e. does it
get<BR>expanded)?<BR><BR>E.g.<BR><BR>I would like to do something
like<BR><BR>define command {<BR> command_name
check_vcs_$HOSTNAME$<BR> command_line
$USER1$/check_nrpe<BR>}<BR><BR><BR>I want it that convoluted because I compiled
nrpe daemons on<BR>managed nodes not to accept arguments.<BR>Thus I think I
would have to wrap the distinction in the
command<BR>name.<BR><BR>Regards<BR>Ralph<BR><BR><BR><BR><BR>-------------------------------------------------------<BR>SF.Net
email is sponsored by: Discover Easy Linux Migration Strategies<BR>from IBM.
Find simple to follow Roadmaps, straightforward articles,<BR>informative
Webcasts and more! Get everything you need to get up to<BR>speed, fast. <A
href="http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click">http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click</A><BR>_______________________________________________<BR>Nagios-users
mailing list<BR>Nagios-users@lists.sourceforge.net<BR><A
href="https://lists.sourceforge.net/lists/listinfo/nagios-users">https://lists.sourceforge.net/lists/listinfo/nagios-users</A><BR>:::
Please include Nagios version, plugin version (-v) and OS when reporting any
issue.<BR>::: Messages without supporting info will risk being sent to
/dev/null<BR></FONT></P></DIV>
</BODY>
</HTML>