Macro Identifier and String Mixing
Ralph.Grothe-YpEHkxAi6oMehzHBf2RrnA at public.gmane.org
Ralph.Grothe-YpEHkxAi6oMehzHBf2RrnA at public.gmane.org
Wed Jul 27 12:33:48 CEST 2005
Hello,
I would like to know if it is possible to mix (i.e. prefix, or
suffix, or backticks substitute)
a macro identifier (as listed in
http://nagios.sourceforge.net/docs/2_0/macros.html)
within the checkcommands.cfg file context (i.e. does it get
expanded)?
E.g.
I would like to do something like
define command {
command_name check_vcs_$HOSTNAME$
command_line $USER1$/check_nrpe
}
I want it that convoluted because I compiled nrpe daemons on
managed nodes not to accept arguments.
Thus I think I would have to wrap the distinction in the command
name.
Regards
Ralph
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Nagiosplug-help mailing list
Nagiosplug-help-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f at public.gmane.org
https://lists.sourceforge.net/lists/listinfo/nagiosplug-help
::: Please include plugins 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