Skip to content

SNMP custom table row (snmp_custom_table) ​

Reads numeric columns of one row of any SNMP table. The row is chosen by its index or by a name column, so the sensor can follow a row that the device renumbers. Each column you list becomes a channel.

Importing the device's MIB makes these sensors for you: pick a table, tick the columns and name the row, and the column OIDs, names, units and scales are filled in from the MIB.

Channels ​

KeyNameUnitDefault limits
columns_readColumns readnonenone
one per entry of columnsits name, or its keyits unit, or nonenone. Set limits on the sensor.

Parameters ​

ParameterDefaultMeaning
row_indexnoneThe row's index: the arcs after the column OID, for example 3 or 1.4.
name_columnnoneThe column that names the rows, for example ifDescr 1.3.6.1.2.1.2.2.1.2.
row_namenoneThe name to look for in name_column.
columnsrequired1 to 30 entries: {"key": "in_octets", "oid": "1.3.6.1.2.1.2.2.1.10", "scale": 1, "name": "Received", "unit": "B"}. key is a channel key: lower case letters, digits and _, at most 40 characters, not columns_read. History is stored under it, so do not change it. name (up to 80 characters, default the key) and unit (the unit of the value after scale; bytes, seconds, percent and similar spellings are read as B, s and %, any other unit is shown as written) say how the channel is shown; they come from the parameters, so they are known before the first poll, and changing them never touches the history.
port161UDP port of the SNMP agent.

Choose the row either with row_index, or with name_column and row_name together. Suggested interval: 60 seconds. Credential: SNMP.

Counters are reported as they are, not as rates. To watch the traffic of an interface use snmp_interface.

Failures ​

MessageMeaning
no row is named "..." (rows: ...) (kind protocol)The named row is not in the table; the message lists the first rows.
N rows are named "..." (kind protocol)Ambiguous.
row ... has no numeric value in any chosen column (kind protocol)The index points at nothing, or the columns hold text.
no value for <keys> in the messageThe poll worked; those columns are unknown for this row.

AGPL-3.0-only