iaa-inc / ixaustralia-snmpcollector

Puppet Module for SNMPCollector
Apache License 2.0
1 stars 2 forks source link

Add support for the 'conversion' parameter for SNMP metrics #3

Open hewisaurus opened 5 years ago

hewisaurus commented 5 years ago

Metrics managed by puppet and set to OCTETSTRING have a default value of 0 added by snmpcollector for the 'conversion' field, and this error message appears in device logs:

time="2019-05-06 14:54:38" level=error msg="WARNING ON SNMPMETRIC ( ifAlias ): You are using version >=0.8 version without database upgrade: you should upgrade the DB by executing this SQL on your database "update snmp_metric_cfg set Conversion=3 where datasrctype='OCTETSTRING';", to avoid this message "

Manually updating a metric via the web interface sets the only valid value for conversion on an OCTETSTRING metric to "3"

hewisaurus commented 5 years ago

Covered in PR #5