Monitoring::Livestatus::Class(3pm) | User Contributed Perl Documentation | Monitoring::Livestatus::Class(3pm) |
Monitoring::Livestatus::Class - Object-Oriented interface for Monitoring::Livestatus
This module is an object-oriented interface for Monitoring::Livestatus
The module is still in an early stage of development, there can be some api changes between releases.
Git: http://github.com/rbo/Monitoring-Livestatus-Class
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;
Connection point to the status check_mk livestatus addon. This can be a unix domain or tcp socket.
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' );
Arguments: none
Returns: @list
Get a list of all table class names.
Arguments: $table_name
Returns: $table_object
Returns a table object based on Monitoring::Livestatus::Class::Base::Table
Print tracer output from this object.
Set peer for live tests.
Robert Bohne, "<rbo at cpan.org>"
nierlein: Sven Nierlein <nierlein@cpan.org>
Please report any bugs or feature requests to "bug-Monitoring-Livestatus-Class at rt.cpan.org", or through the web interface at <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Monitoring-Livestatus-Class>.
You can find documentation for this module with the perldoc command.
perldoc Monitoring::Livestatus::Class
You can also look for information at:
<http://rt.cpan.org/NoAuth/Bugs.html?Dist=Monitoring-Livestatus-Class>
<http://annocpan.org/dist/Monitoring-Livestatus-Class>
<http://cpanratings.perl.org/d/Monitoring-Livestatus-Class>
<http://search.cpan.org/dist/Monitoring-Livestatus-Class/>
Copyright 2009 Robert Bohne.
This program is free software; you can redistribute it and/or modify it under the terms of 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.
2018-05-06 | perl v5.26.2 |