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-Url: https://git.octo.it/?p=collectd.git;a=commitdiff_plain;h=ff7ec9fa808848d52adb39d3a444dc58918af8c3 snmp plugin: added NOTICE when suffix (row of values) is skipped --- diff --git a/src/snmp.c b/src/snmp.c index 63295da2..f5916004 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++) */