Hi everyone,
I am currently writing my first SNMP-based cmk plugin. The goal is to monitor line quality metrics of Tunnels configured between Cisco Switches for indicators like latency
or loss
.
For this to work, I need to process two different OID subtrees:
-
.1.3.6.1.4.1.9.9.1001.1.2.1.7
to get a list of tunnels and their media type -
.1.3.6.1.4.1.9.9.1001.1.5.1
to get the line quality metrics per tunnel
Some of the info I need (like the local IP
and the peer IP
the tunnel is established between) are part of dynamically created OIDs. An example data set looks like this: .1.3.6.1.4.1.9.9.1001.1.2.1.7.4.61.62.63.64.4.71.72.73.74.12346.12346.2 4
. Here, 61.62.63.64
is the local IP
and 71.72.73.74
is the remote IP
. For my tests to work, I need to craft these tunnel lists, based on the existing OIDs, not specific OID values. How can I receive these OID lists (not their values) in a checkmk Plugin?
BR,
Marc