Monito...::UNIX(3pm)

πŸ“¦
version 0.86 Β· 3 versions
, in debian trixie, ubuntu resolute, ubuntu stonking

πŸ’… 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 either socker OR server. 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 (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