Munin:...PConfig(3pm)
π NAME π
Munin::Node::SNMPConfig β bestie, this is the little subroutine squad that gives munin-node-configure its SNMP scanning superpowers. That's it, that's the whole job description. β¨
πΈ SYNOPSIS πΈ
okay so here's the vibe, straight up:
my $snmp = Munin::Node::SNMPConfig->new(
community => 'secret',
version => 1,
);
$snmp->probe_hosts(\%plugins);
lowkey obsessed with how short that is ngl π
π¦ SUBROUTINES π¦
β¨ new(%arguments) β¨
The constructor, aka the main character moment where everything gets set up. Here's what you can hand it, and yes we're going through every single one:
hostsβ the list of hosts you wanna scan, in whatever formatMunin::Node::Configure::HostEnumerationunderstands. Required, no skipping it bestie, it literally cannot do its thing without this.portβ the port we're connecting to. Default is161. πversionβ which SNMP version you're rolling with. Default is'2c'.communityβ the community string, for SNMP version1or2conly. Default is'public'. πdomainβ the Transport Domain used for exchanging SNMP messages. Default is UDP/IPv4. Possible values, and I need you to pay attention here because it's a whole list:'udp','udp4','udp/ipv4';'udp6','udp/ipv6';'tcp','tcp4','tcp/ipv4';'tcp6','tcp/ipv6'.usernameβ the SNMPv3 username to use.authpasswordβ SNMPv3 Authentication password. It's optional when encryption is also enabled, and in that case it defaults to the privacy password ("privpassword"). Also cute detail: the password gets sent encrypted (one way hash) over the network. π«Άauthprotocolβ SNMPv3 Authentication protocol. One of'md5'or'sha'(HMAC-MD5-96, RFC1321 and SHA-1/HMAC-SHA-96, NIST FIPS PIB 180, RFC2264). Default is'md5'.privpasswordβ SNMPv3 Privacy password, and setting this is what enables encryption. Heads up: an empty ('') password counts as no password and will not enable encryption, so don't play yourself.
Privacy requires a v3privprotocol as well as a v3authprotocol and a v3authpassword, but bestie, all of these are defaulted (to 'des', 'md5', and the v3privpassword value, respectively) so you can genuinely just leave them unspecified. π
privprotocolβ if the v3privpassword is set, this controls what kind of encryption is used to achieve privacy in the session. Only the very weak'des'encryption method is supported officially. Default is'des'.
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. π so like... try it and find out ig
π₯ run_probes($plugins) π₯
This one 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. β¨
$plugins should be a Munin::Node::Configure::PluginList object. π
fr fr, that's the whole thing. go forth and scan. π§
and that's a wrap, bestie! π this lil' page came to you courtesy of perl v5.42.3, dated 2026-09-30. slay, stay configured, periodt. π β
π¦ where this page comes from
- fedora 43: munin-node 2.0.78-1.fc43 Β· GPL-2.0-only
- fedora 44: munin-node 2.0.78-1.fc44 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms