From owner-freebsd-ports-bugs@freebsd.org Fri Jul 12 16:27:27 2019 Return-Path: Delivered-To: freebsd-ports-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B09BC15CF28F for ; Fri, 12 Jul 2019 16:27:27 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 46BF577E5E for ; Fri, 12 Jul 2019 16:27:27 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 024AA15CF28E; Fri, 12 Jul 2019 16:27:27 +0000 (UTC) Delivered-To: ports-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BA2BC15CF28D for ; Fri, 12 Jul 2019 16:27:26 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 3B97477E5B for ; Fri, 12 Jul 2019 16:27:26 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 683264A1 for ; Fri, 12 Jul 2019 16:27:25 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x6CGRPIJ016048 for ; Fri, 12 Jul 2019 16:27:25 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x6CGRPsF016047 for ports-bugs@FreeBSD.org; Fri, 12 Jul 2019 16:27:25 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 239168] net-mgmt/nagios-plugins: freebsd-patch breaks long ps output Date: Fri, 12 Jul 2019 16:27:25 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: johan@stromnet.se X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: mat@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Jul 2019 16:27:28 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D239168 Bug ID: 239168 Summary: net-mgmt/nagios-plugins: freebsd-patch breaks long ps output Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: mat@FreeBSD.org Reporter: johan@stromnet.se Flags: maintainer-feedback?(mat@FreeBSD.org) Assignee: mat@FreeBSD.org With nagios-plugins 2.2.1_8,1 the check_procs plugin fails to match argumen= ts on processes with long titles, when executed by ngios. When running the plugin manually from terminal, it works, but when nagios r= uns it the check fails. I was able to reproduce it in terminal when giving /dev/null as stdin: $ /usr/local/libexec/nagios//check_procs -w 1: -c 1: -a'python -m pyowmaster owmaster-dev.yaml' -vv CMD: /bin/ps -axwo 'stat uid pid ppid jid vsz rss pcpu comm args' Matched: uid=3D1001 vsz=3D18364 rss=3D5272 pid=3D4700 ppid=3D4680 jid=3D0 p= cpu=3D0.00 stat=3DI+ etime=3D prog=3Dpython3.6 args=3D/home/johan/dev/pyowmaster/venv/bin/python= -m pyowmaster owmaster-dev.yaml (python3.6) PROCS OK: 1 process with args 'python -m pyowmaster owmaster-dev.yaml' | procs=3D1;1:;1:;0; $ /usr/local/libexec/nagios//check_procs -w 1: -c 1: -a'python -m pyowmaster owmaster-dev.yaml' < /dev/null CMD: /bin/ps -axwo 'stat uid pid ppid jid vsz rss pcpu comm args' PROCS CRITICAL: 0 processes with args 'python -m pyowmaster owmaster-dev.ya= ml' | procs=3D0;1:;1:;0; $ I believe the problem is this patch: https://svnweb.freebsd.org/ports/head/net-mgmt/nagios-plugins/files/patch-c= onfigure?view=3Dmarkup It uses "-axwo" but it should be "-axwwo" to ensure ps does not care about terminal width. Altering the patch to use use -axwwo resolves the issue. (In HEAD version of ps this has actually been altered, but this is not in 1= 1.x or even 12.x it seem): https://svnweb.freebsd.org/base?view=3Drevision&revision=3D330712 --=20 You are receiving this mail because: You are the assignee for the bug.=