Nagios::Config(3pm)

πŸ“¦
version 0.21.20 Β· 2 versions
  • 0.21.20 Β· debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking (latest)
  • 0.21.20 Β· ubuntu jammy
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– 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 new Nagios::Config object, 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::File
  • Nagios::Object::Config
  • Nagios::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!! πŸ’…βœ¨πŸ¦‹