DOKK / manpages / debian 12 / libmonitoring-livestatus-perl / Monitoring::Livestatus::UNIX.3pm.en
Monitoring::Livestatus::UNIX(3pm) User Contributed Perl Documentation Monitoring::Livestatus::UNIX(3pm)

Monitoring::Livestatus::UNIX - connector with unix sockets

    use Monitoring::Livestatus;
    my $nl = Monitoring::Livestatus::UNIX->new( '/var/lib/livestatus/livestatus.sock' );
    my $hosts = $nl->selectall_arrayref("GET hosts");

Creates an "Monitoring::Livestatus::UNIX" object. "new" takes at least the socketpath. Arguments are the same as in "Monitoring::Livestatus". If the constructor is only passed a single argument, it is assumed to be a the "socket" specification. Use either socker OR server.

Sven Nierlein, 2009-present, <sven@nierlein.org>

Copyright (C) by Sven Nierlein

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

2022-12-02 perl v5.36.0