snmp plugin: Handle `ASN_TIMETICKS' as `counter' if it's known by the SNMP library.
authorFlorian Forster <octo@huhu.verplant.org>
Thu, 27 Sep 2007 14:13:02 +0000 (16:13 +0200)
committerFlorian Forster <octo@huhu.verplant.org>
Thu, 27 Sep 2007 14:13:02 +0000 (16:13 +0200)
src/snmp.c

index 2c4c930..c12b3ec 100644 (file)
@@ -654,6 +654,9 @@ static value_t csnmp_value_list_to_value (struct variable_list *vl, int type)
   if ((vl->type == ASN_INTEGER)
       || (vl->type == ASN_UINTEGER)
       || (vl->type == ASN_COUNTER)
+#ifdef ASN_TIMETICKS
+      || (vl->type == ASN_TIMETICKS)
+#endif
       || (vl->type == ASN_GAUGE))
   {
     temp = (uint32_t) *vl->val.integer;