Munin::...MPConfig(3)
π NAME π
Okay so this is the User Contributed Perl Documentation page filed under Munin::...MPConfig(3), and the actual main character is Munin::Node::SNMPConfig β the subroutines that provide munin-node-configure's SNMP scanning capabilities. Iconic. No cap, this is the module that does the SNMP probe thing. π
β¨ SYNOPSIS β¨
Here's the vibe check, bestie β you make the object, then you probe:
my $snmp = Munin::Node::SNMPConfig->new(
community => 'secret',
version => 1,
);
$snmp->probe_hosts(\%plugins);
π οΈ SUBROUTINES π οΈ
Okay, the actual functions, let's go. π«Ά
π
new(%arguments) π
This is the constructor, bestie. Valid arguments are:
hostsβ The list of hosts to scan, in a format understood byMunin::Node::Configure::HostEnumeration. Required. Do not skip this one, fr fr.portβ Port to connect to. Default is161.versionβ The SNMP version to use. Default is'2c'.communityβ The community string to use for SNMP version 1 or 2c. Default is'public'.domainβ The Transport Domain to use for exchanging SNMP messages. The default is UDP/IPv4. Possible values:'udp','udp4','udp/ipv4';'udp6','udp/ipv6';'tcp','tcp4','tcp/ipv4';'tcp6','tcp/ipv6'.usernameβ The SNMPv3 username to use.authpasswordβ SNMPv3 Authentication password. Optional when encryption is also enabled, in which case defaults to the privacy password ("privpassword"). The password is sent encrypted (one way hash) over the network.authprotocolβ SNMPv3 Authentication protocol. One of'md5'or'sha'(HMAC-MD5-96,RFC1321andSHA-1/HMAC-SHA-96,NIST FIPS PIB 180,RFC2264). The default is'md5'.privpasswordβ SNMPv3 Privacy password to enable encryption. An empty ('') password is considered as no password and will not enable encryption.
Privacy requires a v3privprotocol as well as a v3authprotocol and a v3authpassword, but all of these are defaulted (to 'des', 'md5', and the v3privpassword value, respectively) and may therefore be left unspecified.
privprotocolβ If thev3privpasswordis set this setting controls what kind of encryption is used to achieve privacy in the session. Only the very weak'des'encryption method is supported officially. The default is'des'. Yes, the docs literally say βvery weak,β so be careful, bestie π.
The implementing perl module (Net::SNMP) also supports '3des' (CBC-3DES-EDE aka Triple-DES, NIST FIPS 46-3) as specified in IETF draft-reeder-snmpv3-usm-3desede. Whether or not this works with any particular device, we do not know.
π¦ run_probes($plugins) π¦
Connects to each host in turn, and checks which plugins it supports, based on the OIDs they reported during snmpconf. If all the requirements are fulfilled, it will be added to the corresponding plugin's suggestions list. Slay.
$plugins should be a Munin::Node::Configure::PluginList object. That's the whole vibe check. π
That's the whole manual, bestie π«Ά β perl v5.42.3, dated 1980-01-01, under Munin::...MPConfig(3). Byeee β¨π
π¦ 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