[Nagiosplug-devel] [RFC] Plugins config file
Vonnahme, Nathan
nathan.vonnahme at bannerhealth.com
Wed Oct 18 21:56:54 CEST 2006
> -----Original Message-----
> From: nagiosplug-devel-bounces at lists.sourceforge.net
> [mailto:nagiosplug-devel-bounces at lists.sourceforge.net] On
> Behalf Of John P. Rouillard
> Sent: Wednesday, October 18, 2006 7:21 AM
> >> Plugins that support this new config file parsing of
> options take the
> >> option (as Sean suggested) of
> >>
> >> --extra-opts=[configfile][:stanzaname]
> >
> >Syntax quibble: how about 'configfile#section', like URL fragments?
> >Colon is already used in host:/path/to/file forms, and in ranges.
>
> Well, # has special meaning to the shell. And you may be trying to
> pass this argument across systems using ssh or other mechanism which
> makes getting the quotes really tricky. Hence # $ are bad
> choices. However maybe '/path/to/file at stanzaname' works since it is
> using the entry in the file AT stanzaname.
Wouldn't stanza@/path/to/file be more logical?
Perhaps a CGIish questionmark would work?
--extra-opts=/path/to/file?stanzaname
Actually it would probably be clearer and more memorable to have two
optional options, so you can omit one easily:
--cfg-file=/path/to/file --cfg-stanza=stanzaname
I can help with the Perl implementation after Nov 1...
-n
More information about the Devel
mailing list