blob: 1d187cac65d97aca0b02b5b8e6ec284aa8c4e330 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
--- plugins/check_procs.c.orig 2007-07-15 11:21:51.000000000 -0400
+++ plugins/check_procs.c 2008-03-28 21:56:51.000000000 -0400
@@ -208,6 +208,10 @@
/* Ignore self */
if (mypid == procpid) continue;
+ if (metric == METRIC_CPU)
+ if (procppid == 0 && procpid != 1)
+ continue;
+
if ((options & STAT) && (strstr (statopts, procstat)))
resultsum |= STAT;
if ((options & ARGS) && procargs && (strstr (procargs, args) != NULL))
|