]> git.pld-linux.org Git - packages/net-snmp.git/blame - net-snmp-logging.patch
- fix syslog flooding inside vserver. from debian bugtracker. bug_id #475158
[packages/net-snmp.git] / net-snmp-logging.patch
CommitLineData
0b08da3b
ER
1http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=475158
2snmpd: keeps complaining on missing /proc/ stats inside vserver flooding syslog
3
4diff -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
5--- net-snmp-5.4.1~dfsg/agent/mibgroup/hardware/cpu/cpu_linux.c 2007-02-16 00:09:45.000000000 +1300
6+++ net-snmp-5.4.1~dfsg.puck/agent/mibgroup/hardware/cpu/cpu_linux.c 2009-05-04 14:35:53.000000000 +1200
7@@ -249,7 +249,7 @@
8 cpu->pageOut = (unsigned long)pout;
9 } else {
10 if (first)
11- snmp_log(LOG_ERR, "No page line in %s\n", STAT_FILE);
12+ snmp_log(LOG_INFO, "No page line in %s\n", STAT_FILE);
13 cpu->pageIn = cpu->pageOut = 0;
14 }
15 b = strstr(buff, "swap ");
16@@ -259,7 +259,7 @@
17 cpu->swapOut = (unsigned long)swpout;
18 } else {
19 if (first)
20- snmp_log(LOG_ERR, "No swap line in %s\n", STAT_FILE);
21+ snmp_log(LOG_INFO, "No swap line in %s\n", STAT_FILE);
22 cpu->swapIn = cpu->swapOut = 0;
23 }
24 }
25diff -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
26--- net-snmp-5.4.1~dfsg/agent/mibgroup/ucd-snmp/vmstat_linux.c 2006-09-15 12:48:50.000000000 +1200
27+++ net-snmp-5.4.1~dfsg.puck/agent/mibgroup/ucd-snmp/vmstat_linux.c 2009-05-04 14:35:32.000000000 +1200
28@@ -316,7 +316,7 @@
29 sscanf(b, "page %u %u", pin, pout);
30 else {
31 if (first)
32- snmp_log(LOG_ERR, "No page line in %s\n", STAT_FILE);
33+ snmp_log(LOG_INFO, "No page line in %s\n", STAT_FILE);
34 *pin = *pout = 0;
35 }
36 b = strstr(buff, "swap ");
37@@ -324,7 +324,7 @@
38 sscanf(b, "swap %u %u", swpin, swpout);
39 else {
40 if (first)
41- snmp_log(LOG_ERR, "No swap line in %s\n", STAT_FILE);
42+ snmp_log(LOG_INFO, "No swap line in %s\n", STAT_FILE);
43 *swpin = *swpout = 0;
44 }
45 }
This page took 0.086388 seconds and 4 git commands to generate.