You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
843 B

  1. --- a/agent/mibgroup/mibII/interfaces.c
  2. +++ b/agent/mibgroup/mibII/interfaces.c
  3. @@ -1588,6 +1588,10 @@ Interface_Scan_Init(void)
  4. struct ifnet *nnew;
  5. char *stats, *ifstart = line;
  6. + /* Ignore interfaces with no statistics. */
  7. + if (strstr(line, "No statistics available."))
  8. + continue;
  9. +
  10. if (line[strlen(line) - 1] == '\n')
  11. line[strlen(line) - 1] = '\0';
  12. @@ -1620,7 +1624,7 @@ Interface_Scan_Init(void)
  13. &coll) != 5)) {
  14. if ((scan_line_to_use == scan_line_2_2)
  15. && !strstr(line, "No statistics available"))
  16. - snmp_log(LOG_ERR,
  17. + snmp_log(LOG_DEBUG,
  18. "/proc/net/dev data format error, line ==|%s|",
  19. line);
  20. continue;