Monito...::UNIX(3pm)
π Monitoring::Livestatus::UNIX
okay bestie, so this is Monitoring::Livestatus::UNIX, a lil Perl module (that's 3pm energy, perl module manual, you know the vibe) that works as a connector with unix sockets. yep. unix sockets. we love a local-only queen. β¨
It's part of the Monitoring::Livestatus family, and it's the one you reach for when your livestatus thingy lives behind a unix socket instead of a network port. slay.
πΈ SYNOPSIS
use Monitoring::Livestatus;
my $nl = Monitoring::Livestatus::UNIX->new( '/var/lib/livestatus/livestatus.sock' );
my $hosts = $nl->selectall_arrayref("GET hosts");
like. look at her. two lines and you're already pulling hosts out of livestatus. main character energy fr fr π«Ά
π CONSTRUCTOR
β¨ new ( [ARGS] )
Creates a Monitoring::Livestatus::UNIX object. new takes at least the socketpath β no socket path, no object, no vibes. sorry, that's the rule.
The arguments are the same as in Monitoring::Livestatus, so if you already know that one you already know this one, iykyk π
Here's the cute part: if the constructor only gets a single argument, it assumes that one argument is the socket specification. one arg = it's the socket. that's it. that's the whole bit.
π¨ bestie listen: use eithersockerORserver. not both. pick a lane, we're not doing both at once π
π₯ METHODS
(yeah... this section is literally empty in the original. not me pointing it out. it's giving "the methods are inherited, go look at the parent." iconic of her honestly. π)
π AUTHOR
Sven Nierlein, 2009-present, <sven@nierlein.org> π¦
π COPYRIGHT AND LICENSE
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. (yes, same terms as Perl itself. permissive queen. periodt. β)
π SEE ALSO
(the original doesn't list any SEE ALSO refs, so there's nothing to link here β no cap, I checked. nothing but good vibes in this section. π)
okay that's the whole page bestie!! π This was the Monitoring::Livestatus::UNIX page from User Contributed Perl Documentation, and just so we're on the record: it's running on perl v5.40.1 and it's dated 2025-05-15. also the footer says Monito...::UNIX(3pm) which β yes β is the same page, the header/footer just truncate her name like that. iconic. bye bestie, go query some hosts π«ΆπΈ
π¦ where this page comes from
- debian trixie: libmonitoring-livestatus-perl 0.86-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libmonitoring-livestatus-perl 0.86-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libmonitoring-livestatus-perl 0.86-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms