From: Pavel Rochnyack Date: Thu, 14 Jun 2018 15:57:14 +0000 (+0700) Subject: snmp plugin: added NOTICE when suffix (row of values) is skipped X-Git-Tag: collectd-5.9.0~179^2~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ff7ec9fa808848d52adb39d3a444dc58918af8c3;p=thirdparty%2Fcollectd.git snmp plugin: added NOTICE when suffix (row of values) is skipped --- diff --git a/src/snmp.c b/src/snmp.c index 63295da22..f59160042 100644 --- a/src/snmp.c +++ b/src/snmp.c @@ -1274,6 +1274,8 @@ static int csnmp_dispatch_table(host_definition_t *host, /* This suffix is missing in the subtree. Indicate this with the * "suffix_skipped" flag and try the next instance / suffix. */ suffix_skipped = 1; + NOTICE( + "snmp plugin: suffix skipped, variable not found for HostnameOID."); } } @@ -1293,6 +1295,8 @@ static int csnmp_dispatch_table(host_definition_t *host, /* This suffix is missing in the subtree. Indicate this with the * "suffix_skipped" flag and try the next instance / suffix. */ suffix_skipped = 1; + NOTICE( + "snmp plugin: suffix skipped, variable not found for Value OID."); break; } } /* for (i = 0; i < columns; i++) */