Monitoring::Livestatus::Class is a Perl module, an object-oriented interface for Monitoring::Livestatus.
SYNOPSIS
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;
Product's homepage
Requirements:
· Perl
Limitations:
· The module is still in an early stage of development, there can be some api changes between releases.