Hello,
i would like to monitor dot1dStpTimeSinceTopologyChange (numeric oid 1.3.6.1.2.1.17.2.3.0) which is a Timetick.
I have tried it as Gauce and also as Counter but always gives Draw Errors and not values.
Do you have any idea how to do this?
Kind regards
Philipp
Hmm. This is because the value is being returned by snmpget formatted:
CMD[/usr/bin/snmpget -v2c -c x -Pud -OUQnv -M /opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp 'udp':'x':'161' .1.3.6.1.2.1.17.2.3.0]
CMD EXITCODE[0]
CMD RUNTIME[0.1168s]
CMD EXITDELAY[10ms]
STDOUT[
142:12:54:48.08
]
SNMP STATUS[TRUE]
I’ve added the -t option to the snmpget commands to force returning timeticks as numeric values. The values are of course very large, and I’m not sure how useful they really are, but you can collect them as either a gauge or counter now.
Counter will just produce a flat 100/sec value except on polls where a topology change has happened. Gauge will return the number of centiseconds, you’ll be able to easily see on a graph when a change happens with gauge.
The change is in r12101.
Adam.
From: observium observium-bounces@observium.org On Behalf Of Philipp Helo Rehs via observium Sent: 08 June 2022 06:10 To: David Milton via observium observium@observium.org Cc: Philipp Helo Rehs Philipp.Rehs@uni-duesseldorf.de Subject: [Observium] Timeticks in Custom OID
Hello,
i would like to monitor dot1dStpTimeSinceTopologyChange (numeric oid 1.3.6.1.2.1.17.2.3.0) which is a Timetick.
I have tried it as Gauce and also as Counter but always gives Draw Errors and not values.
Do you have any idea how to do this?
Kind regards
Philipp
participants (2)
-
Adam Armstrong
-
Philipp Helo Rehs