FreeBSD Bugzilla – Attachment 223224 Details for
Bug 254252
net-mgmt/nagios-plugins check_procs wrong CPU matching [idle] thread with --metric=CPU
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch-plugins_check__procs.c
patch-plugins_check__procs.c (text/plain), 482 bytes, created by
Volodymyr Pushkar
on 2021-03-13 08:22:11 UTC
(
hide
)
Description:
patch-plugins_check__procs.c
Filename:
MIME Type:
Creator:
Volodymyr Pushkar
Created:
2021-03-13 08:22:11 UTC
Size:
482 bytes
patch
obsolete
>--- 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))
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
vladimir.pushkar
:
maintainer-approval?
(
mat
)
Actions:
View
|
Diff
Attachments on
bug 254252
: 223224