2014-07-02 14:04:57 +02:00
|
|
|
--- a/agent/mibgroup/mibII/interfaces.c
|
|
|
|
+++ b/agent/mibgroup/mibII/interfaces.c
|
2024-02-10 06:07:50 +01:00
|
|
|
@@ -1586,6 +1586,10 @@ Interface_Scan_Init(void)
|
2014-07-02 14:04:57 +02:00
|
|
|
char *stats, *ifstart = line;
|
2024-02-10 06:07:50 +01:00
|
|
|
size_t len;
|
2014-07-02 14:04:57 +02:00
|
|
|
|
|
|
|
+ /* Ignore interfaces with no statistics. */
|
|
|
|
+ if (strstr(line, "No statistics available."))
|
2024-02-10 06:07:50 +01:00
|
|
|
+ continue;
|
2014-07-02 14:04:57 +02:00
|
|
|
+
|
2024-02-10 06:07:50 +01:00
|
|
|
len = strlen(line);
|
|
|
|
if (len && line[len - 1] == '\n')
|
|
|
|
line[len - 1] = '\0';
|