logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Nagios::Config - Parser for the Nagios::Object set of perl modules

Author

       Al Tobey <tobeya@cpan.org>

Description

       Ties all of the Nagios::Object modules together, doing all the parsing and background stuff so you don't
       have to.

       All of the methods of Nagios::Object::Config and Nagios::Config::File are inherited by this module.

Methods

new()
           Create a new Nagios::Config object, which will parse a Nagios main configuration file and all of it's
           object  configuration  files.   The  resource  configuration  file  is  not  parsed  -  for that, use
           Nagios::Config::File.

            my $cf = Nagios::Config->new( Filename => $configfile );
            my $cf = Nagios::Config->new( Filename => $configfile, Version => 1 );
            my $cf = Nagios::Config->new( Filename => $configfile, Version => 2 );

Name

       Nagios::Config - Parser for the Nagios::Object set of perl modules

See Also

       Nagios::Config::File, Nagios::Object::Config, Nagios::Object

perl v5.34.0                                       2022-06-16                                Nagios::Config(3pm)

Synopsis

        my $nagios_cfg = Nagios::Config->new( "nagios.cfg" );

        my @host_objects = $nagios_cfg->list_hosts();

See Also