From ff7ec9fa808848d52adb39d3a444dc58918af8c3 Mon Sep 17 00:00:00 2001 From: Pavel Rochnyack Date: Thu, 14 Jun 2018 22:57:14 +0700 Subject: [PATCH] snmp plugin: added NOTICE when suffix (row of values) is skipped --- src/snmp.c | 4 ++++ 1 file changed, 4 insertions(+) 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++) */ -- 2.11.0