My SNMP provides some data in strings instead of floats:
$ snmpget -v1 -Cf -c public 192.168.0.2 NAS-MIB::systemFreeMem.0
NAS-MIB::systemFreeMem.0 = STRING: “7519.2 MB”
Is there a way I could parse this data ?
I have checked ‘converter’ plugin (telegraf/plugins/processors/converter at master · influxdata/telegraf · GitHub)
as well as SNMP ‘conversion’ field parameter but those assume that string is a numeric value.
I am looking for something like regex input like:
https://docs.cacti.net/manual:088:3a_advanced_topics.3b_snmp_data_query_walkthrough#value_regexp_in_action
Unless you have other suggestions ?