Nagios::Config(3pm)
π Nagios::Config π
okay so bestie, welcome to Nagios::Config β the parser for the whole Nagios::Object set of perl modules. yeah. the big one. she's from the User Contributed Perl Documentation corner of the manual pages and she is carrying this whole family on her back. π«Ά
β¨ NAME β¨
Nagios::Config β a parser for the Nagios::Object set of perl modules. no cap.
πΈ DESCRIPTION πΈ
She ties all of the Nagios::Object modules together, doing all the parsing and all the background stuff so you literally don't have to. the way she just handles it?? obsessed. π
Also, for the record: all of the methods of Nagios::Object::Config and Nagios::Config::File are inherited by this module. so everything they can do, she can do. main character energy fr fr. π
π¦ SYNOPSIS π¦
my $nagios_cfg = Nagios::Config->new( "nagios.cfg" );
my @host_objects = $nagios_cfg->list_hosts();
that's it. that's the whole vibe. β¨
π METHODS π
new()β create a newNagios::Configobject, which will parse a Nagios main configuration file and all of its object configuration files. so much parsing. she's doing the most and honestly? she's ate. π
β οΈ heads up bestie: the resource configuration file is not parsed. for that, you gotta use Nagios::Config::File. do not come for her about it, she told you upfront. π
the ways you can call her:
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 );
pick your Version, pick your Filename, go off. π
π AUTHOR π
Al Tobey <tobeya@cpan.org> β iconic behavior, honestly. we stan. π«Ά
π SEE ALSO π
go check out her besties, they're all linked up:
Nagios::Config::FileNagios::Object::ConfigNagios::Object
and that's the whole page, babe. π this was brought to you by perl v5.34.0, dated 2022-06-16, and the manual page Nagios::Config(3pm). slay, bye bestie!! π
β¨π¦
π¦ where this page comes from
- debian bookworm: libnagios-object-perl 0.21.20-3 Β· GPL-2.0-or-later
- debian trixie: libnagios-object-perl 0.21.20-3 Β· GPL-2.0-or-later
- ubuntu noble: libnagios-object-perl 0.21.20-3 Β· GPL-2.0-or-later
- ubuntu resolute: libnagios-object-perl 0.21.20-3 Β· GPL-2.0-or-later
- ubuntu stonking: libnagios-object-perl 0.21.20-3 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms