Variables in .cfg files -- Howto?

Morris, Patrick patrick.morris at hp.com
Tue Jan 19 17:45:43 CET 2010


Mr Gabriel wrote:
> How can I use variables in my .cfg files that are only used in that 
> file, and not across my entire install?
>   
You don't really. Nagios doesn't keep track of what lives in which file; 
it just loads everything up and parses the whole thing afterward.

If you really need per-file variables, you'll probably have to do it 
before loading them into Nagios with some sort of external pre-parser, 
but whether that'll work for you or not is hard to say since it's not 
clear what you're trying to accomplish.

------------------------------------------------------------------------------
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