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
| Key | Name | Unit | Default limits |
|---|---|---|---|
columns_read | Columns read | none | none |
one per entry of columns | its name, or its key | its unit, or none | none. Set limits on the sensor. |
Parameters
| Parameter | Default | Meaning |
|---|---|---|
row_index | none | The row's index: the arcs after the column OID, for example 3 or 1.4. |
name_column | none | The column that names the rows, for example ifDescr 1.3.6.1.2.1.2.2.1.2. |
row_name | none | The name to look for in name_column. |
columns | required | 1 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. |
port | 161 | UDP 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
| Message | Meaning |
|---|---|
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 message | The poll worked; those columns are unknown for this row. |