MetricsHub
MetricsHub Community Connectors 1.0.22
-
Home
- Connector Developer Guide Sources 19
snmpGet (Source)
When To Use
Use snmpGet for scalar OIDs (single-value fetches), especially for host-level metadata or simple gauges.
If you need many columns from indexed objects, prefer snmpTable[1].
Syntax
sources:
upsModel:
type: snmpGet
oid: 1.3.6.1.2.1.33.1.1.2.0
Properties
| Property | Required | Default | Description |
|---|---|---|---|
type |
Yes | None | snmpGet. |
oid |
Yes | None | Scalar OID to query. |
executeForEachEntryOf |
No | None | Fan-out execution context. |
computes |
No | [] |
Post-processing pipeline. |
forceSerialization |
No | false |
Serialize execution via a per-connector, per-host lock (see the Sources overview). Default false. |
Recommended Pattern
- Use for true scalar values only.
- Group related scalar fetches logically and map directly.
- Keep OID comments next to source definitions for maintainability.
Common Mistakes
- Calling many scalar OIDs where one table OID would be cleaner.
- Mixing scalar and indexed semantics in the same mapping logic.
- Skipping translations for enumerated scalar values.
Community Examples
- GenericUPS[2]
snmpGet source
scalar oid
snmp scalar
metricshub
community
connector
hardware
system
Links:
- [1] ./snmp-table.html
- [2] https://github.com/metricshub/community-connectors/blob/main/src/main/connector/hardware/GenericUPS/GenericUPS.yaml
Search Results for {{siteSearch | truncate:'50'}}
{{resultArray.length}}
Searching...
No results.
