Nagios::Config::File - Base class for Nagios configuration files
use Nagios::Config ; my $nc = new Nagios::Config("/usr/local/nagios/etc/nagios.cfg") ; my $resource = $nc->get_resource_cfg() ; print $resource->get_attr('$USER1$') . "\n" ;
Nagios::Config::File is the base class for all Nagios configuration files. You should not need to create these yourself.
Nagios::Config::File
Creates a Nagios::Config::File.
Returns the value of the attribute NAME for the current file. If SPLIT is true, returns a list of all the values split on /\s*,\s*/. This is useful for attributes that can have more that one value.
NAME
SPLIT
Returns the filename for the current object.
Returns a scalar with the full configuration text ready to parse again.
Patrick LeBoutillier, patl@cpan.org
Al Tobey, tobeya@cpan.org
Nagios::Config, Nagios::Config::Object
To install Nagios::Host, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Nagios::Host
CPAN shell
perl -MCPAN -e shell install Nagios::Host
For more information on module installation, please visit the detailed CPAN module installation guide.