[Nagiosplug-devel] [RFC] Plugins config file

Gavin Carr gavin at openfusion.com.au
Thu Oct 19 01:25:27 CEST 2006


On Wed, Oct 18, 2006 at 06:11:12PM +0200, sean finney wrote:
> > Otherwise, if we have this ini configuration file, we could have a
> > stanza like:
> > 
> > 
> > [main]
> > path_to_rpcinfo=/usr/sbin/rpcinfo
> > path_to_lmstat=
> > path_to_smbclient=/usr/bin/smbclient
> > path_to_mailq=/usr/bin/mailq
> > path_to_qmail_qstat=
> > 
> > Values added by configure, of course.
> 
> i was thinking something along those lines.  at risk of exploding
> "feature creep", i could also suggest some other stuff we could
> throw in there, such as default paths, environment variables, etc.
> but maybe we should nip this in the bud for now and decide if its
> the way we want to go, and implement the meat of it for the reason
> that we really want it first.

I agree.

> > I've just thought, if this ini file is created by the
> > nagios-plugins ./configure, how does Nagios::Plugin know where it
> > resides? Would it have to check various possible locations?
> 
> i would suggest a using couple reasonable defaults, and then provide
> some way to specify an override from this at build-time.  i'm not too
> familiar with CPAN but i imagine there must be a way to do that :)

Yep, we can do that.

Cheers,
Gavin





More information about the Devel mailing list