Nagios::Config(3pm)

Nagios::Config3pm

Parser for the nagios::object set of perl modules

Usage

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

Overview

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 );

Releases

10 releases since Debian 4.0 (Etch); the text changed 7 times.

  1. 4.0
  2. 5.0
  3. 6.0
  4. 7
  5. 8
  6. 9–10
  7. 11
  8. 12–13

Author

Al Tobey <[email protected]>

From libnagios-object-perl 0.21.20-3 in Debian 13 (Trixie). Parsed by carta from the page's man source.