Munin::...::Utils(3)
okay so this is part 1 of Munin::...::Utils(3) π
β the User Contributed Perl Documentation page β and the module is Munin::Master::Utils. It's literally a utility-function buffet, and we're going through every single one, no cap β¨
π NAME π
Munin::Master::Utils - Exports a lot of utility functions.
β¨ SYNOPSIS β¨
use Munin::Master::Utils;
π SUBROUTINES π
okay bestie, here's the whole lineup. Every single one is getting its moment, and every detail stays put β facts don't change, only the vibe π
πΈ munin_category_status πΈ
okay so this one gets the current status of a category. Status-check energy, honestly β¨
Parameters:
$hashβ a ref to the hash node whose children we're checking$limitsβ a ref to the root node of the limits tree$categoryβ the category to review$check_drawβ [optional] ignore undrawn fields
Returns:
- Success: the status of the field
- Failure:
undef
π¦ munin_readconfig_base π¦
Reads the configuration file, includes dir files, and initializes important default values that are optional. very main-character config behavior π«Ά
Parameters:
$fileβmunin.conffilename. If omitted, default filename is used.
Returns:
- Success: the
$confighash (also cached in module)
π munin_copy_node π
Copy a hash node. Literally copy-paste but make it data structures π
Parameters:
$fromβ hash node to copy$toβ where to copy it to
Returns:
- Success:
$to - Failure:
undef
π munin_copy_node_toloc π
Copy a hash node to a specific location. location-aware copy moment β¨
Parameters:
$fromβ hash node to copy$toβ where to copy it to$locβ path to node under$to
Returns:
- Success:
$to - Failure:
undef
π«Ά munin_createlock π«Ά
(no description in the original β just the name, bestie π«Ά)
π munin_delete π
(no description in the original β just the name, bestie π)
β¨ munin_draw_field β¨
Checks whether a field will be visible in the graph or not. visibility check, iconic π¦
Parameters:
$hashβ a ref to the hash node for the field
Returns:
- Success: Boolean; true if field will be graphed, false if not
- Failure:
undef
π₯ munin_field_status π₯
Gets the current status of a field. field status supremacy π
Parameters:
$hashβ a ref to the field hash node$limitsβ a ref to the root node of the limits tree$check_drawβ [optional] ignore undrawn fields
Returns:
- Success: the status of the field
- Failure:
undef
π§ munin_find_field π§
Searches a hash to find hash nodes with $field defined. search-and-rescue but for hash nodes π
Parameters:
$hashβ a hash ref to search$fieldβ the name of the field to search for, or a regex$avoidβ [optional] stop traversing further down if this field is found
Returns:
- Success: a ref to an array of the hash nodes containing
$field. - Failure:
undef
π munin_get π
Get variable. the classic getter, no notes β¨
Parameters:
$hashβ ref to hash node$fieldβ name of field to get$defaultβ [optional] value to return if$fieldisn't set
Returns:
- Success: field contents
- Failure:
$defaultif defined, elseundef
π¦ munin_get_bool π¦
Get boolean variable. true/false bestie behavior π
Parameters:
$hashβ ref to hash node$fieldβ name of field to get$defaultβ [optional] value to return if$fieldisn't set
Returns:
- Success: 1 or 0 (true or false)
- Failure:
$defaultif defined, elseundef
πΈ munin_get_bool_val πΈ
(no description in the original β just the name, bestie πΈ)
π munin_get_children π
Get all child hash nodes. collecting the children, not in a creepy way π«Ά
Parameters:
$hashβ a hash ref to the parent node
Returns:
- Success: a ref to an array of the child nodes
- Failure:
undef
π munin_get_field_order π
Get the field order in a graph. order matters, always π
Parameters:
$hashβ a hash ref to the service
Returns:
- Success: a ref to an array of the field names
- Failure:
undef
π₯ munin_get_filename π₯
Get rrd filename for a field, without any bells or whistles. Used by munin-update to figure out which file to update. no extra sparkle, just the filename β¨
Parameters:
$hashβ ref to hash field
Returns:
- Success: full path to rrd file
- Failure:
undef
π§ munin_get_html_filename π§
Get the full path-name of an html file. html-path realness π
Parameters:
$hashβ a ref to the service hash node
Returns:
- Success: the file name with full path
- Failure:
undef
π munin_get_max_label_length π
Get the length of the longest label in a graph. longest-label competition, but make it data π
Parameters:
$hashβ the graph in question$orderβ a ref to an array of fields (graph_order)
Returns:
- Success: the length of the longest label in the graph
- Failure:
undef
π munin_get_node π
Gets a node by loc. node retrieval moment π¦
Parameters:
$hashβ a ref to the hash to set the variable in$locβ a ref to an array with the full path of the node
Returns:
- Success: the node ref found by
$loc - Failure:
undef
πΈ munin_get_node_loc πΈ
Get location array for hash node. path-finding but for hash nodes β¨
Parameters:
$hashβ a ref to the node
Returns:
- Success: ref to an array with the full path of the variable
- Failure:
undef
π¦ munin_get_node_name π¦
Return the name of the hash node supplied. name reveal π
Parameters:
$hashβ a ref to the hash node
Returns:
- Success: the name of the node
π munin_get_node_partialpath π
Gets a node from a partial path. partial-path icon behavior π«Ά
Parameters:
$hashβ a ref to the"current"location in the hash tree$varβ a path string with relative location (from the$hash).
Returns:
- Success: the node
- Failure:
undef
π munin_get_parent π
Get parent node of a hash. parental hash energy π
Parameters:
$hashβ a ref to the node
Returns:
- Success: ref to a parent
- Failure:
undef
π₯ munin_get_parent_name π₯
Return the name of the parent of the hash node supplied. parent-name reveal β¨
Parameters:
$hashβ a ref to the hash node
Returns:
- Success: the name of the parent node
- Failure: if no parent node exists,
"none"is returned.
π§ munin_get_picture_filename π§
Get the full path+name of a picture file. picture-file path+name, slay πΈ
Parameters:
$hashβ a ref to the service hash node$scaleβ [optional] the scale (day, week, year, month)$sumβ [optional] Boolean value, whether it's a sum graph or not.
Returns:
- Success: the file name with full path
- Failure:
undef
π munin_get_picture_loc π
Get location array for hash node for picture purposes. Differs from munin_get_node_loc in that it honors #%#origin metadata. it's giving metadata-aware location energy π
Parameters:
$hashβ a ref to the node
Returns:
- Success: ref to an array with the full path of the variable
- Failure:
undef
π munin_get_root_node π
Get the root node of the hash tree. going all the way up π¦
Parameters:
$hashβ a hash node to traverse up from
Returns:
- Success: a ref to the root hash node
- Failure:
undef
πΈ munin_get_rrd_filename πΈ
Get the name of the rrd file corresponding to a field. Checks for lots of bells and whistles. This function is the correct one to use when figuring out where to fetch data from. this is the one, bestie π₯
Parameters:
$fieldβ the hash object of the field$pathβ [optional] the path to the field (as given ingraph_order/sum/stack/et al)
Returns:
- Success: a string with the filename of the rrd file
- Failure:
undef
π¦ munin_get_separated_node π¦
Copy a node to a separate node without "specials". separate-node realness β¨
Parameters:
$hashβ the node to copy
Returns:
- Success: a ref to a new node without
"#%#"-fields - Failure:
undef
π munin_get_var_path π
(no description in the original β just the name, bestie π)
π munin_getlock π
(no description in the original β just the name, bestie π)
π₯ munin_graph_column_headers π₯
(no description in the original β just the name, bestie π₯)
π§ munin_has_subservices π§
munin_has_subservices($hash);
Checks whether the service represented by $hash has subservices (multigraph), and returns the result. subservice check, very demure π
Parameters:
$hashβ hash reference pointing to a service
Returns:
- true: if the hash is indeed a service, and said service has got subservices
- false: otherwise
π munin_mkdir_p π
munin_mkdir_p('/a/path/', oct('777'));
Make a directory and recursively any nonexistent directory in the path to it. recursive directory creation, iconic πΈ
π munin_node_status π
(no description in the original β just the name, bestie π)
πΈ munin_nscasend πΈ
(no description in the original β just the name, bestie πΈ)
π¦ munin_overwrite π¦
Take contents of one config-namespace and replace/insert the instances needed. namespace overwrite behavior β¨
π munin_parse_config π
(no description in the original β just the name, bestie π)
π munin_path_to_loc π
Returns a loc array from a path string. path-to-loc translation moment π«Ά
Parameters:
$pathβ a path string
Returns:
- Success: a ref to an array with the loc
- Failure:
undef
π₯ munin_readconfig_part π₯
Read a partial configuration. partial config, full drama π
Parameters:
$whatβ name of the part that should be loaded (datafile or limits)
Returns:
- Success: a
$configwith the$specifiedpart, but overwritten by$config
π§ munin_removelock π§
(no description in the original β just the name, bestie π§)
π munin_runlock π
(no description in the original β just the name, bestie π)
π munin_service_status π
Gets the current status of a service. service-status check, periodt π
Parameters:
$hashβ a ref to the field hash node$limitsβ a ref to the root node of the limits tree$check_drawβ [optional] ignore undrawn fields
Returns:
- Success: the status of the field
- Failure:
undef
πΈ munin_set πΈ
Sets a variable in a hash. setter behavior, no cap β¨
Parameters:
$hashβ a ref to the hash to set the variable in$varβ the name of the variable$valβ the value to set the variable to
Returns:
- Success: the
$hashwe were handed - Failure:
undef
π¦ munin_set_var_loc π¦
Sets a variable in a hash. location-based setter realness π
Parameters:
$hashβ a ref to the hash to set the variable in$locβ a ref to an array with the full path of the variable$valβ the value to set the variable to
Returns:
- Success: the
$hashwe were handed - Failure:
undef
π munin_set_var_path π
Sets a variable in a hash. path-based setter moment π«Ά
Parameters:
$hashβ a ref to the hash to set the variable in$varβ a string with the full path of the variable$valβ the value to set the variable to
Returns:
- Success: the
$hashwe were handed - Failure: the
$hashwe were handed
yes, both success and failure hand you back $hash β that's what the original says, bestie π
π munin_writeconfig π
(no description in the original β just the name, bestie π)
π₯ munin_writeconfig_loop π₯
(no description in the original β just the name, bestie π₯)
π COPYING π
okay so legal era, but make it cute β this is the part where the page tells you who made it and what you're allowed to do with it. no cap, it's important.
Copyright (C) 2003-2007 Jimmy Olsen, Audun Ytterdal π«Ά
This program is free software β you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 dated June, 1991. slay, that's the whole vibe.
This program is distributed in the hope that it will be useful, but β and this is the loud part β WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. like, it's giving "no promises bestie" π
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
and that's the whole page, icon that it is β¨ this was Munin::...::Utils(3) from the User Contributed Perl Documentation for Munin, shipped with perl v5.42.3 and stamped 1980-01-01 β yes the date is lowkey ancient and yes she's still main character energy π
π go read your licences and stay hydrated, ily ππ¦
π¦ where this page comes from
- nixos 26.05: munin 2.0.76
- nixpkgs unstable: munin 2.0.78
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms