Munin::...::Group(3)

πŸ“¦ version 2.0.78, in nixos 26.05, nixpkgs unstable

πŸ’– NAME πŸ’–

Okay so welcome to the Munin::...::Group(3) page, bestie β€” it's a User Contributed Perl Documentation moment ✨. The actual name situation is Munin::Master::Group β€” Holds information on host groups.

And yes, the iconic detail: Groups can be nested. πŸͺ†πŸ’…


πŸ’… METHODS πŸ’…

🐣 new

my $group = Munin::Master::Group->new($name, $parent);

Constructor vibes. $name is the name of the group. 🫢

πŸŽ€ add_attributes

$group->add_attributes(\%attrs);

Sets attributes %attrs for the group. Valid attributes are:

  • node_order β€” Override the order of the hosts within the group.
  • local_address β€” The local address the update process should bind to when contacting the nodes in this group.
  • contacts β€” The contacts for this group. See <http://munin-monitoring.org/wiki/HowToContact>.
An exception will be thrown if invalid attributes are provided. 😭 Keep it valid, bestie.

(Full details here: <http://munin-monitoring.org/wiki/munin.conf#Groupleveldirectives>.)

🌸 add_host

$group->add_host($host);

Adds host $host to the group. Slay. πŸ’–

πŸ¦‹ give_attributes_to_hosts

$group->give_attributes_to_hosts();

Propagates the attributes of $group to all hosts in the group. Heads up though: This does not apply to hosts belonging to sub-groups. πŸ™ˆ

πŸ‘‘ get_all_hosts

my @hosts = $group->get_all_hosts();

Returns the list of all hosts associated with this group, including those belonging to any sub-groups. Iconic completionist energy, fr fr. ✨


Catch you later, bestie β€” this page was running with perl v5.42.3 and dated 1980-01-01 πŸ’–πŸŽ€πŸ«Ά

πŸ“¦ where this page comes from