]> git.pld-linux.org Git - packages/net-snmp.git/commitdiff
- stop page/swap noise in vservers:
authorElan Ruusamäe <glen@pld-linux.org>
Fri, 15 Jan 2010 08:59:59 +0000 (08:59 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
  Jan 14 11:00:46 staff snmpd[16357]: No page line in /proc/stat
  Jan 14 11:00:46 staff snmpd[16357]: No swap line in /proc/stat

Changed files:
    vmstat-vserver-noise.patch -> 1.1

vmstat-vserver-noise.patch [new file with mode: 0644]

diff --git a/vmstat-vserver-noise.patch b/vmstat-vserver-noise.patch
new file mode 100644 (file)
index 0000000..7d964ab
--- /dev/null
@@ -0,0 +1,40 @@
+--- net-snmp-5.4.2.1/agent/mibgroup/hardware/cpu/cpu_linux.c~  2008-08-27 16:39:38.000000000 +0300
++++ net-snmp-5.4.2.1/agent/mibgroup/hardware/cpu/cpu_linux.c   2010-01-15 10:57:53.491162294 +0200
+@@ -261,7 +261,7 @@
+             cpu->pageOut = (unsigned long)pout;
+       } else {
+           if (first)
+-              snmp_log(LOG_ERR, "No page line in %s\n", STAT_FILE);
++              snmp_log(LOG_DEBUG, "No page line in %s\n", STAT_FILE);
+             cpu->pageIn  = cpu->pageOut = 0;
+       }
+       b = strstr(buff, "swap ");
+@@ -271,7 +271,7 @@
+             cpu->swapOut = (unsigned long)swpout;
+       } else {
+           if (first)
+-              snmp_log(LOG_ERR, "No swap line in %s\n", STAT_FILE);
++              snmp_log(LOG_DEBUG, "No swap line in %s\n", STAT_FILE);
+             cpu->swapIn  = cpu->swapOut = 0;
+       }
+     }
+--- net-snmp-5.4.2.1/agent/mibgroup/ucd-snmp/vmstat_linux.c~   2006-09-15 03:48:50.000000000 +0300
++++ net-snmp-5.4.2.1/agent/mibgroup/ucd-snmp/vmstat_linux.c    2010-01-15 10:58:55.859906415 +0200
+@@ -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_DEBUG, "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_DEBUG, "No swap line in %s\n", STAT_FILE);
+           *swpin = *swpout = 0;
+       }
+     }
This page took 0.988971 seconds and 4 git commands to generate.