From 0b6423f9c99d9edf8c96fefd0f6c453859395aa1 Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Mon, 30 Sep 2013 00:03:24 +0200 Subject: Import Nagios Plugins site Import the Nagios Plugins web site, Cronjobs, infrastructure scripts, and configuration files. --- web/attachments/272335-patch-plugins__check_procs.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 web/attachments/272335-patch-plugins__check_procs.c (limited to 'web/attachments/272335-patch-plugins__check_procs.c') 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 @@ +--- 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)) -- cgit v1.2.3-74-g34f1