Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 13 Mar 2021 08:22:11 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 254252] net-mgmt/nagios-plugins check_procs wrong CPU matching [idle] thread with --metric=CPU
Message-ID:  <bug-254252-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D254252

            Bug ID: 254252
           Summary: net-mgmt/nagios-plugins check_procs wrong CPU matching
                    [idle] thread with --metric=3DCPU
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: mat@FreeBSD.org
          Reporter: vladimir.pushkar@gmail.com
          Assignee: mat@FreeBSD.org
             Flags: maintainer-feedback?(mat@FreeBSD.org)

Created attachment 223224
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D223224&action=
=3Dedit
patch-plugins_check__procs.c

When checking for processes using a lot of CPU check_procs match [idle] thr=
ead
and giving wrong state. For example:

>/usr/local/libexec/nagios/check_procs -v -w 70 -c 90 --metric=3DCPU
CPU CRITICAL: 1 crit, 0 warn out of 75 processes [idle] | procs=3D75;;;0;
procs_warn=3D0;;;0; procs_crit=3D1;;;0; procpcpu=3D399.899994;

Proposed patch will skip idle.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-254252-7788>