Monitoring::Livestatus::Class(3pm)

Monitoring::Livestatus::Class3pm

Object-oriented interface for monitoring::livestatus

Usage

    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;

Overview

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.

Repository

    Git: http://github.com/rbo/Monitoring-Livestatus-Class

Attributes

peer

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

Methods

table_sources

Arguments: none

Returns: @list

Get a list of all table class names.

table

Arguments: $table_name

Returns: $table_object

Returns a table object based on Monitoring::Livestatus::Class::Base::Table

Internal methods

BUILD

Initializes the internal Monitoring::Livestatus object.

TRACE

Get the trace level

Environment

Monitoring_livestatus_class_trace

Print tracer output from this object.

Monitoring_livestatus_class_test_peer

Set peer for live tests.

Contributors

nierlein: Sven Nierlein <[email protected]>

Todo:

•

Bettering the documentation

Support

You can find documentation for this module with the perldoc command.

    perldoc Monitoring::Livestatus::Class

You can also look for information 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/>

Releases

6 releases since Debian 8 (Jessie); the text changed 1 time.

  1. 8–9
  2. 10–13

Author

Robert Bohne, "<rbo at cpan.org>"

Bugs

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>.

From libmonitoring-livestatus-class-perl 0.06-1.1 in Debian 13 (Trixie). Parsed by carta from the page's man source.