snmp plugin: added NOTICE when suffix (row of values) is skipped
authorPavel Rochnyack <pavel2000@ngs.ru>
Thu, 14 Jun 2018 15:57:14 +0000 (22:57 +0700)
committerPavel Rochnyack <pavel2000@ngs.ru>
Thu, 14 Jun 2018 15:57:14 +0000 (22:57 +0700)
src/snmp.c

index 63295da..f591600 100644 (file)
@@ -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;
         /* 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;
         /* 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++) */
         break;
       }
     } /* for (i = 0; i < columns; i++) */