NAME
Nagios::MKLivestatus::UNIX - connector with unix sockets
SYNOPSIS
use Nagios::MKLivestatus;
my $nl = Nagios::MKLivestatus::UNIX->new( '/var/lib/nagios3/rw/livestatus.sock' );
my $hosts = $nl->selectall_arrayref("GET hosts");
CONSTRUCTOR
- new ( [ARGS] )
-
Creates an
Nagios::MKLivestatus::UNIX
object.new
takes at least the socketpath. Arguments are the same as inNagios::MKLivestatus
.If the constructor is only passed a single argument, it is assumed to be a the
socket
specification. Use either socker OR server.
METHODS
- close
-
close the sock
AUTHOR
Sven Nierlein, <nierlein@cpan.org>
COPYRIGHT AND LICENSE
Copyright (C) 2009 by Sven Nierlein
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.