COLLECTD-SNMP-PROBE-HOST(1)
π COLLECTD-SNMP-PROBE-HOST(1) β Collectd SNMP Host Probe π
β¨ NAME β¨
snmp-probe-host.px β Find out what information an SNMP device provides. π΅οΈβοΈβ¨
π¦ SYNOPSIS π¦
collectd-snmp-probe-host --host switch01.mycompany.com --community ei2Acoum
πΈ DESCRIPTION πΈ
okay so the snmp-probe-host.px script is your little config-fairy π§: it can be used to automatically generate SNMP configuration snippets for collectd's snmp plugin (see collectd-snmp(5)). No cap, it's doing the most so you don't have to.
It parses the collectd configuration and detects all "data" blocks that are defined for the SNMP plugin. Then it queries the device specified on the command line for all OIDs and registers which OIDs could be answered correctly and which resulted in an error. With that information the script figures out which "data" blocks can be used with this hosts (yep, that's the original wording π) and prints an appropriate "host" block to standard output. π
The script first tries to contact the device via SNMPv2. If after ten seconds no working "data" block has been found, it will try to downgrade to SNMPv1. This is a bit a hack, but works for now. πβ¨
π OPTIONS π
The following command line options are accepted:
--host hostnameβ Hostname of the device. This should be a fully qualified domain name (FQDN), but anything the system can resolve to an IP address will word β yes, βwordβ, not βworkβ, that's literally what the page says π. Required argument. π₯--config config fileβ Sets the name of the collectd config file which defined the SNMP"data"blocks. Due to limitations of the config parser used in this script ("Config::General"),"Include"statements cannot be parsed correctly. Defaults to/etc/collectd/collectd.conf. π--community communityβ SNMP community to use. Should be pretty straight forward. π«Ά--exclude MIBβ This option can be used to exclude specific data from being enabled in the generated config. Currently the following MIBs are understood:IF-MIBβ Exclude interface information, such asifOctetsandifPackets. π
π BUGS π
"Include"statements in the config file are not handled correctly. π¬- SNMPv2 / SNMPv1 detection is a hack. π
π AUTHOR π
Copyright (c) 2008 by Florian octo Forster <octo at noris.net>. Licensed under the terms of the GPLv2. Written for the noris network AG <http://noris.net/>. π
and that's the whole page, bestie π«Ά. This cutie comes from perl v5.42.0, dated 2024-12-18, and it's the COLLECTD-SNMP-PROBE-HOST(1) manual β periodt. π
β¨
π¦ where this page comes from
- opensuse-leap 16.0: collectd-plugin-snmp 5.12.0.348.g93f9bdcb-bp160.1.1 Β· GPL-2.0-only AND MIT
- opensuse-leap 16.0: collectd-plugin-snmp 5.12.0.348.g93f9bdcb-bp160.1.1 Β· GPL-2.0-only AND MIT
- opensuse-leap 16.0: collectd-plugin-snmp 5.12.0.348.g93f9bdcb-bp160.1.1 Β· GPL-2.0-only AND MIT
- opensuse-leap 16.0: collectd-plugin-snmp 5.12.0.348.g93f9bdcb-bp160.1.1 Β· GPL-2.0-only AND MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms