Apologies for a possibly pretty stupid question but getting super confused!
I have setup:
Install of influxDB
Install Telegraf (Ubuntu)
Tested the data from Telegraf for the default system stats it provides and seeing the values in Grafana (also confirmed using a test SNMP device with basic stats.
My question is, I have a new device and have the .MIB file. It contains a lot of information inside it.
This is a short piece of text from the much larger MIB file:
sensorProbeTempTable OBJECT-TYPE
SYNTAX SEQUENCE OF SensorProbeTempEntry
ACCESS not-accessible
STATUS mandatory
DESCRIPTION
“This table contains the data for every Temperature Sensor in the SensorArray. Each row in the table contains data for a different Temperature Sensor.”
::= { sensorProbeEntry 16 }
This device is a network environment monitoring device and i have temperature sensors attached. I am confused as to what information I need to put in the .config file, or is there anyway of using the MIB file to get all the OIDs automatically?
If you install your MIB so that it can be used by snmptable/snmptranslate, you can specify a table with a textual OID and its fields will be collected. There is an example of this here. If the MIB is not installed you will need to specify the numerical OIDs of each field like in the primary example, but you can leave the table OID out.
Use snmp.field to get top level values and tags. If you are using numerical OIDs then you don’t need an OID in the snmp.table but you will need to specify each snmp.table.field with its numerical OID.
The top level fields you specify are retrieved via a GET, and the tables are gathered using WALK/BULKWALK.
It’s the other way around, they provide the textual names for an OID. Since they can be used to lookup the field names for a table you can specify a table without any subfields and Telegraf will know what to name the fields.
If you use numerical OIDs and fully specify the table you don’t need the MIB.
thank you. I have placed the .MIB in /usr/share/snmp/mibs however in this folder the other files have the extension .mib.txt Do i need to change my .mib to this file name too?
Furthermore when i do SNMPwalk for this device, there are alot of MIBs missing (with or without the .MIB file in /usr/share/snmp/mibs folder? Is that normal?
I have placed the .MIB in /usr/share/snmp/mibs however in this folder the other files have the extension .mib.txt Do i need to change my .mib to this file name too?
I’m not sure, but you can test that it is working by running snmptranslate <oid> and verifying that a OID name, and not a numeric ID, is returned.
Furthermore when i do SNMPwalk for this device, there are alot of MIBs missing (with or without the .MIB file in /usr/share/snmp/mibs folder? Is that normal?
That would be normal if you are missing a MIB, but it shouldn’t be a problem unless something you are wanting to use is missing.