diff options
Diffstat (limited to 'web/attachments/272335-patch-plugins__check_procs.c')
| -rw-r--r-- | web/attachments/272335-patch-plugins__check_procs.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/web/attachments/272335-patch-plugins__check_procs.c b/web/attachments/272335-patch-plugins__check_procs.c new file mode 100644 index 0000000..1d187ca --- /dev/null +++ b/web/attachments/272335-patch-plugins__check_procs.c | |||
| @@ -0,0 +1,13 @@ | |||
| 1 | --- plugins/check_procs.c.orig 2007-07-15 11:21:51.000000000 -0400 | ||
| 2 | +++ plugins/check_procs.c 2008-03-28 21:56:51.000000000 -0400 | ||
| 3 | @@ -208,6 +208,10 @@ | ||
| 4 | /* Ignore self */ | ||
| 5 | if (mypid == procpid) continue; | ||
| 6 | |||
| 7 | + if (metric == METRIC_CPU) | ||
| 8 | + if (procppid == 0 && procpid != 1) | ||
| 9 | + continue; | ||
| 10 | + | ||
| 11 | if ((options & STAT) && (strstr (statopts, procstat))) | ||
| 12 | resultsum |= STAT; | ||
| 13 | if ((options & ARGS) && procargs && (strstr (procargs, args) != NULL)) | ||
