Ticket #28801 (closed defect: fixed)
nagios-plugins 1.4.15 check_procs broken, fixed on Sourceforge
|Reported by:||sonikbuddha@…||Owned by:||markd@…|
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.
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.
- Cc sonikbuddha@… removed
- Owner changed from macports-tickets@… to markd@…
- Type changed from update to defect