Date: Fri, 12 Jul 2019 16:27:25 +0000 From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 239168] net-mgmt/nagios-plugins: freebsd-patch breaks long ps output Message-ID: <bug-239168-7788@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
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.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-239168-7788>