Gavin Carr > Nagios-Plugin-0.17 > Nagios::Plugin::Config

Download:
Nagios-Plugin-0.17.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  5
Open  2
View/Report Bugs
Source   Latest Release: Nagios-Plugin-0.36

NAME ^

Nagios::Plugin::Config - read nagios plugin .ini style config files

SYNOPSIS ^

    # Read given nagios plugin config file
    $Config = Nagios::Plugin::Config->read( '/etc/nagios/plugins.ini' );

    # Search for and read default nagios plugin config file
    $Config = Nagios::Plugin::Config->read();

    # Access sections and properties (returns scalars or arrayrefs)
    $rootproperty =  $Config->{_}->{rootproperty};
    $one = $Config->{section}->{one};
    $Foo = $Config->{section}->{Foo};

DESCRIPTION ^

Nagios::Plugin::Config is a subclass of the excellent Config::Tiny, with the following changes:

SEE ALSO ^

Config::Tiny, Nagios::Plugin

AUTHORS ^

This code is maintained by the Nagios Plugin Development Team: http://nagiosplug.sourceforge.net.

COPYRIGHT and LICENCE ^

Copyright (C) 2006-2007 by Nagios Plugin Development Team

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

syntax highlighting: