Monito...::Class(3pm)
π Monitoring::Livestatus::Class β the user-contributed Perl docs page, but make it cute π
okay bestie, so this is the manual page for Monitoring::Livestatus::Class(3pm) β it lives in the User Contributed Perl Documentation section, and we're about to get into it. buckle up π
β¨ NAME β¨
Monitoring::Livestatus::Class β an Object-Oriented interface for Monitoring::Livestatus π
π¦ DESCRIPTION π¦
So basically this module is an object-oriented interface for Monitoring::Livestatus. that's the whole vibe. πΈ
ngl though β this module is still in an early stage of development, so heads up: there can be some API changes between releases. yes fr fr, things might shift under you. it's giving "we're still cooking" π©π³
π REPOSITORY π
the code lives here, go be nosy:
Git: http://github.com/rbo/Monitoring-Livestatus-Class
β¨ SYNOPSIS β¨
here's the whole thing in action, look at her go π
use Monitoring::Livestatus::Class;
my $class = Monitoring::Livestatus::Class->new(
peer => '/var/lib/nagios3/rw/livestatus.sock'
);
my $hosts = $class->table('hosts');
my @data = $hosts->columns('display_name')->filter(
{ display_name => { '-or' => [qw/test_host_47 test_router_3/] } }
)->hashref_array();
print Dumper \@data;
ate. no crumbs. π
π ATTRIBUTES π
peer
this is the connection point to the status check_mk livestatus addon. and here's the tea: it can be a unix domain socket or a tcp socket. either way, she's connecting. π«Ά
Socket
my $class = Monitoring::Livestatus::Class->new(
peer => '/var/lib/nagios3/rw/livestatus.sock'
);
TCP Connection
my $class = Monitoring::Livestatus::Class->new(
peer => '192.168.1.1:2134'
);
π METHODS π
table_sources
- Arguments: none
- Returns:
@list
Get a list of all the table class names. the whole roster, bestie. β¨
table
- Arguments:
$table_name - Returns:
$table_object
Returns a table object based on Monitoring::Livestatus::Class::Base::Table. she's built different (literally, off that base class) π
π§ INTERNAL METHODS π§
these are the behind-the-scenes girlies, iykyk π
BUILD
Initializes the internal Monitoring::Livestatus object. doing the setup work so you don't have to. πΈ
TRACE
Get the trace level. that's it, that's the method. π
π ENVIRONMENT VARIABLES π
MONITORING_LIVESTATUS_CLASS_TRACE
Print tracer output from this object. she's chatty and we love that for her π¬
MONITORING_LIVESTATUS_CLASS_TEST_PEER
Set peer for live tests. π§ͺ
π AUTHOR π
Robert Bohne, "<rbo at cpan.org>" β the icon, the moment, the main character π
πΈ CONTRIBUTORS πΈ
nierlein: Sven Nierlein<nierlein@cpan.org>β bestie showed up and helped, we stan π«Ά
π TODO: π
- Bettering the documentation
yes bestie, the docs could be better, they said it not me π
π BUGS π
found a bug? a feature request? pls don't suffer in silence. report it to "bug-Monitoring-Livestatus-Class at rt.cpan.org", or slide through the web interface at:
<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Monitoring-Livestatus-Class>
π«Ά SUPPORT π«Ά
you can find the docs for this module with the perldoc command, like so:
perldoc Monitoring::Livestatus::Class
and you can also look for info at:
- RT: CPAN's request tracker
<http://rt.cpan.org/NoAuth/Bugs.html?Dist=Monitoring-Livestatus-Class>
- AnnoCPAN: Annotated CPAN documentation
<http://annocpan.org/dist/Monitoring-Livestatus-Class>
- CPAN Ratings
<http://cpanratings.perl.org/d/Monitoring-Livestatus-Class>
- Search CPAN
<http://search.cpan.org/dist/Monitoring-Livestatus-Class/>
π COPYRIGHT & LICENSE π
Copyright 2009 Robert Bohne.
This program is free software; you can redistribute it and/or modify it under the same terms as either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See <http://dev.perl.org/licenses/> for more information.
and that's the whole page, bestie π this was perl v5.26.2, dated 2018-05-06, and it's the Monito...::Class(3pm) page β thanks for reading the whole thing, you're literally the best, mwah πβ¨π¦
π¦ where this page comes from
- debian bookworm: libmonitoring-livestatus-class-perl 0.06-1.1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libmonitoring-livestatus-class-perl 0.06-1.1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu jammy: libmonitoring-livestatus-class-perl 0.06-1.1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libmonitoring-livestatus-class-perl 0.06-1.1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms