[MacPorts] #28801: nagios-plugins 1.4.15 check_procs broken, fixed on Sourceforge
MacPorts
noreply at macports.org
Tue Mar 15 21:59:19 PDT 2011
#28801: nagios-plugins 1.4.15 check_procs broken, fixed on Sourceforge
-------------------------------------+--------------------------------------
Reporter: sonikbuddha@… | Owner: macports-tickets@…
Type: update | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 1.9.2
Keywords: | Port: nagios-plugins
-------------------------------------+--------------------------------------
The 1.4.15 version of nagios-plugins contains a broken check_procs due to
a wrong ps command, listed below. I've built from the version on
Sourceforge (frustratingly with the same release number) and the bug is
fixed. Please upgrade to the version on Sourceforge.
http://sourceforge.net/projects/nagiosplug/files/nagiosplug/
Problem:
The macports released version of 1.4.15 containing check_procs runs this
ps command:
CMD: /bin/ps -axwo 'stat uid pid ppid vsz rss pcpu etime comm args'
The 'comm' argument does not present the command without the path, causing
all command searches (check_procs -C <command>) to fail. In this release
this plug-in will never process command searches properly.
The fixed version, on Sourceforge now, runs this command:
CMD: /bin/ps -axwo 'stat uid pid ppid vsz rss pcpu ucomm command'
The 'ucomm' properly presents the command without the path and allows the
plug-in to properly process a '-C'. I'm presenting this as a priority fix
as a) its simply a package upgrade, not even a version change b) as is,
this monitoring plug-in presents incorrect information.
For those seeing a temporary work around, the nagios-plugins source
package on Sourceforge builds natively on at least Snow Leopard. OR run
check_procs -a <command>, which has similar functionality.
--
Ticket URL: <https://trac.macports.org/ticket/28801>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list