]> git.pld-linux.org Git - packages/net-snmp.git/commitdiff
- fix syslog flooding inside vserver. from debian bugtracker. bug_id #475158
authorElan Ruusamäe <glen@pld-linux.org>
Tue, 27 Dec 2011 13:08:55 +0000 (13:08 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    net-snmp-logging.patch -> 1.1

net-snmp-logging.patch [new file with mode: 0644]

diff --git a/net-snmp-logging.patch b/net-snmp-logging.patch
new file mode 100644 (file)
index 0000000..efe4a3b
--- /dev/null
@@ -0,0 +1,45 @@
+http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=475158
+snmpd: keeps complaining on missing /proc/ stats inside vserver flooding syslog
+
+diff -r -u net-snmp-5.4.1~dfsg/agent/mibgroup/hardware/cpu/cpu_linux.c net-snmp-5.4.1~dfsg.puck/agent/mibgroup/hardware/cpu/cpu_linux.c
+--- net-snmp-5.4.1~dfsg/agent/mibgroup/hardware/cpu/cpu_linux.c        2007-02-16 00:09:45.000000000 +1300
++++ net-snmp-5.4.1~dfsg.puck/agent/mibgroup/hardware/cpu/cpu_linux.c   2009-05-04 14:35:53.000000000 +1200
+@@ -249,7 +249,7 @@
+             cpu->pageOut = (unsigned long)pout;
+       } else {
+           if (first)
+-              snmp_log(LOG_ERR, "No page line in %s\n", STAT_FILE);
++              snmp_log(LOG_INFO, "No page line in %s\n", STAT_FILE);
+             cpu->pageIn  = cpu->pageOut = 0;
+       }
+       b = strstr(buff, "swap ");
+@@ -259,7 +259,7 @@
+             cpu->swapOut = (unsigned long)swpout;
+       } else {
+           if (first)
+-              snmp_log(LOG_ERR, "No swap line in %s\n", STAT_FILE);
++              snmp_log(LOG_INFO, "No swap line in %s\n", STAT_FILE);
+             cpu->swapIn  = cpu->swapOut = 0;
+       }
+     }
+diff -r -u net-snmp-5.4.1~dfsg/agent/mibgroup/ucd-snmp/vmstat_linux.c net-snmp-5.4.1~dfsg.puck/agent/mibgroup/ucd-snmp/vmstat_linux.c
+--- net-snmp-5.4.1~dfsg/agent/mibgroup/ucd-snmp/vmstat_linux.c 2006-09-15 12:48:50.000000000 +1200
++++ net-snmp-5.4.1~dfsg.puck/agent/mibgroup/ucd-snmp/vmstat_linux.c    2009-05-04 14:35:32.000000000 +1200
+@@ -316,7 +316,7 @@
+           sscanf(b, "page %u %u", pin, pout);
+       else {
+           if (first)
+-              snmp_log(LOG_ERR, "No page line in %s\n", STAT_FILE);
++              snmp_log(LOG_INFO, "No page line in %s\n", STAT_FILE);
+           *pin = *pout = 0;
+       }
+       b = strstr(buff, "swap ");
+@@ -324,7 +324,7 @@
+           sscanf(b, "swap %u %u", swpin, swpout);
+       else {
+           if (first)
+-              snmp_log(LOG_ERR, "No swap line in %s\n", STAT_FILE);
++              snmp_log(LOG_INFO, "No swap line in %s\n", STAT_FILE);
+           *swpin = *swpout = 0;
+       }
+     }
This page took 0.045895 seconds and 4 git commands to generate.