[Nagiosplug-devel] Nagios:Plugin feedback
Gavin Carr
gavin at openfusion.com.au
Sat Jan 20 06:14:10 CET 2007
On Fri, Jan 19, 2007 at 09:05:21AM +0000, Ton Voon wrote:
>
> On 19 Jan 2007, at 03:46, Gavin Carr wrote:
>
> >>Is there a is_hostname function? is_ipaddr would be useful as well.
> >>What about passing argument check code directly in the add_arg()
> >>arguments?
> >>
> >
> >My feeling is that we wouldn't add datatype stuff to Nagios::Plugin,
> >largely because it's pretty well covered already in other CPAN
> >modules.
>
> Agreed. CPAN is about reusing other bits of code. However, some
> pointers to "good implementations" in CPAN might be helpful.
Agreed.
> Longer term, we probably need to think about how to handle module
> dependencies for a given check_* script. Distributing a plugin to 100
> boxes might prove problematic if there is a large list of dependencies.
The Right Way to do this, of course, is to use local package
management systems for that.
I guess it might be reasonable to provide a fallback system though,
like say a script that scanned all the perl plugins in a directory and
installed any missing dependencies from CPAN. But you're still going to
need CPAN configured on all those boxes, which is non-trivial itself.
Cheers,
Gavin
--
Gavin Carr
- http://www.openfusion.com.au - Linux, Perl, and Web Consulting
- http://www.xool.com.au - Xool, Australian property search engine
* Fashion is a variable, but style is a constant - Programming Perl
More information about the Devel
mailing list