You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using the snmp_exporter to query a Teltonika router. I have successfully connected it and am sporting data.
I am plotting the mSent and mSentToday (which are the number of bytes sent by the router). According to the MIB these values should be Counter64 but from the received values they are signed integers and overflow to negative values.
I have used snmpwalk to query the router and get the following:
From my investigation, the router is responding with a value that is an unsigned integer but provides the incorrect type in the response, leading to the value being read as a signed integer.
Is it possible to force/cast/override the data type so that the value is parsed correctly as an unsigned Counter64?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am using the snmp_exporter to query a Teltonika router. I have successfully connected it and am sporting data.
I am plotting the
mSent
andmSentToday
(which are the number of bytes sent by the router). According to the MIB these values should be Counter64 but from the received values they are signed integers and overflow to negative values.I have used
snmpwalk
to query the router and get the following:From my investigation, the router is responding with a value that is an unsigned integer but provides the incorrect type in the response, leading to the value being read as a signed integer.
Is it possible to force/cast/override the data type so that the value is parsed correctly as an unsigned Counter64?
Cheers!
Beta Was this translation helpful? Give feedback.
All reactions