I want to add a custom sensor to monitor optical power values for the interfaces of a switch. I have compiled the corresponding MIB. If I use SNMP Library sensor I get the correct expected values (i can verify this with the SNMP Tester) but if i use custom sensor i get a different value instead. I have tried custom sensors to monitor other objects before and i've got the correct values.
Article Comments
With the library sensor i get the correct values, regardless if i use the entire MIB or just the specific OID.
http://i.imgur.com/h4YP7OF.png
in the capture sensors 21 and 22 are custom sensors, 23 and 24 are library sensors with the single oid as you suggested. Sensors 23 and 24 show the correct values.
could this issue have something to do with the fact that the oid is a table?
Apr, 2015 - Permalink
Dear Daniela
This looks like a number conversion issue. When you create the SNMP Custom sensor, please set the Value Type to Gauge (signed integer, e.g. "-12", "120")
Apr, 2015 - Permalink
Dear Daniela
Please create a new OIDLIB from the MIB containing only a single OID (the OID in question) and use that new OIDLIB to create an SNMP library sensor. Are you now getting the same value?
Apr, 2015 - Permalink