In my past issue "snmp v1 without bulkrequests for mikrotik" the last problem was that the ifDescr-oid contains the important information, which port-name should be remembered as tag for all the counter-variables pulled by influxsnmp so that this tag can be saved into influxdb as a variable to distinguish the counters and map it to the correct switch-ports.
You changed the code so that the ifDescr-information is fetched if a if-mib is used.
I wonder if it would be possible to solve this kind of problem in a more generic way?
Because i now have the same problem if I want to collect informations about filesystems.
Example:
HOST-RESOURCES-MIB::hrStorageIndex.31 = INTEGER: 31
HOST-RESOURCES-MIB::hrStorageIndex.38 = INTEGER: 38
HOST-RESOURCES-MIB::hrStorageIndex.42 = INTEGER: 42
HOST-RESOURCES-MIB::hrStorageType.31 = OID: HOST-RESOURCES-TYPES::hrStorageFixedDisk
HOST-RESOURCES-MIB::hrStorageType.38 = OID: HOST-RESOURCES-TYPES::hrStorageFixedDisk
HOST-RESOURCES-MIB::hrStorageType.42 = OID: HOST-RESOURCES-TYPES::hrStorageFixedDisk
OST-RESOURCES-MIB::hrStorageDescr.31 = STRING: /
HOST-RESOURCES-MIB::hrStorageDescr.38 = STRING: /zones
HOST-RESOURCES-MIB::hrStorageDescr.42 = STRING: /usr
HOST-RESOURCES-MIB::hrStorageAllocationUnits.31 = INTEGER: 1024 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.38 = INTEGER: 4096 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.42 = INTEGER: 1024 Bytes
HOST-RESOURCES-MIB::hrStorageSize.31 = INTEGER: 268363
HOST-RESOURCES-MIB::hrStorageSize.38 = INTEGER: 195212
HOST-RESOURCES-MIB::hrStorageSize.42 = INTEGER: 442618
I have > 100 filesystems in my systems and i'm interessted in the hrStorageSize and hrStorageAllocationUnits. To be able to use influxsnmp for that kind of task, influxsnmp needs to write the hrStorageDescr-information into influxdb.
How can that be achieved in a more generic (configurable) way?
In my past issue "snmp v1 without bulkrequests for mikrotik" the last problem was that the ifDescr-oid contains the important information, which port-name should be remembered as tag for all the counter-variables pulled by influxsnmp so that this tag can be saved into influxdb as a variable to distinguish the counters and map it to the correct switch-ports.
You changed the code so that the ifDescr-information is fetched if a if-mib is used.
I wonder if it would be possible to solve this kind of problem in a more generic way?
Because i now have the same problem if I want to collect informations about filesystems.
Example:
I have > 100 filesystems in my systems and i'm interessted in the hrStorageSize and hrStorageAllocationUnits. To be able to use influxsnmp for that kind of task, influxsnmp needs to write the hrStorageDescr-information into influxdb.
How can that be achieved in a more generic (configurable) way?