summaryrefslogtreecommitdiffstats
path: root/web/attachments/272335-patch-plugins__check_procs.c
diff options
context:
space:
mode:
authorHolger Weiss <holger@zedat.fu-berlin.de>2013-09-29 22:03:24 (GMT)
committerHolger Weiss <holger@zedat.fu-berlin.de>2013-09-29 22:03:24 (GMT)
commit0b6423f9c99d9edf8c96fefd0f6c453859395aa1 (patch)
tree1c2b6b21704a294940f87c7892676998d8371707 /web/attachments/272335-patch-plugins__check_procs.c
downloadsite-0b6423f9c99d9edf8c96fefd0f6c453859395aa1.tar.gz
Import Nagios Plugins site
Import the Nagios Plugins web site, Cronjobs, infrastructure scripts, and configuration files.
Diffstat (limited to 'web/attachments/272335-patch-plugins__check_procs.c')
-rw-r--r--web/attachments/272335-patch-plugins__check_procs.c13
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))