-
Notifications
You must be signed in to change notification settings - Fork 10
SNMP Walk Questions #20
Comments
I've prepared configuration to read important information from 1.3.6.1.2.1.2.2.1, please see #21 and let me know if this fits to your use case. This configuration creates following list of metrics:
|
It is 10, please see config below: setfile: [
{
"mode": "walk",
"namespace": [
{"source": "string", "string": "net-walk"},
{"source": "string", "string": "if-walk"},
{"source": "index", "name": "index10", "description": "number from OID", "oid_part": 10},
{"source": "string", "string": "value"}
],
"OID": ".1.3.6.1.2.1.2.2.1.2"
}
] MIBs:
Exposed metric:
Collected metrics:
|
Thank you for your help here. The oid_part counting starting at zero is what was causing me confusion. The example setfile to collect snmp stats for network interfaces is very helpful. There is a slight mistake in OID .1.3.6.1.2.1.2.2.1.16 where the namespace string of
|
Thanks for catching it. I'll make a fix.
Have you set correct parameters for SNMP agent in the task manifest in config section?
Recently the other user was able to get results using |
snmpgetnext works correctly and I am able to use the same task file to poll for single OIDs properly.
|
@nschmidt4 Could you try a verbose version of the plugin from my fork, see it? If you give me logs from this version, task-manifest, setfile, and snapteld config maybe I'll be able to find the reason of your problems. |
With verbose version it is now reporting "Unrecognized type of data, metric is returned as string". I provided what the snmpwalk of the interface is returning on my initial post for reference.
|
@nschmidt4 If you see "Unrecognized type of data, metric is returned as string" then metric is received from device but saved as as a string. It is just warning, see this. Could make a test with very simple publisher plugin - snap-plugin-publisher-file? |
I am trying to collect interface statistics on a large number of switches by walking OID 1.3.6.1.2.1.2.2.1 as like what is shown in the walk example
This isnt working. Ive provided logging and snmpwalk results below but over the course of troubleshooting
What does 'oid_part' in the namespace mean? I believe this to be the number of increments along the OID tree but am unsure. If I try to create a namespace from the index of ifDescr (1.3.6.1.2.1.2.2.1.2) is the oid_part 10 or 11?
In the snmpwalk output I provided I would like to create a namespace of interfaces (1.3.6.1.2.1.2.2.1.2) then create an namespace for each of the 22 values in the tree of attributes as described here. I am not clear on how I would create the two sets of indexes in the setfile. For example, list of interfaces names (1.3.6.1.2.1.2.2.1.2) and IfInOctets (1.3.6.1.2.1.2.2.1.10)
Set File:
Log
snmpwalk of oid
Environment
The text was updated successfully, but these errors were encountered: