0
Answered

Incorrect value of the SNMP data

Almostdivine 10 years ago updated by Ilya (Here to help) 9 years ago 2
Hello, i'm trying to monitor device via SNMP. I configured custom monitor, but found a problem. 
I'm using OID: .1.3.6.1.4.1.2021.10.1.3.3 [Avg CPU Load 15 mins]. 
When I do snmpwalk -v 2c -c public [IP] .1.3.6.1.4.1.2021.10.1.3.3 I receive a value:
iso.3.6.1.4.1.2021.10.1.3.3 = STRING: "0.05", but in the Anturis this value equals "0" at the first check and "0.00" in the history table. 

How can I fix this?  
+1
Under review
Hi,

According to http://tools.ietf.org/html/rfc2578#section-7 numbers with floating point are not supported and the value you see "0.05" is just a string.

Since you already use custom monitor, you just need to pipe the output of snmpwalk to some parser like awk and use a regular expression to fetch the actual number you need. There are some examples here https://anturis.com/custom-monitoring-extensions/....

Let me know if you need more assistance.