Bug 81548

Summary: Bugfix for nagios-plugins 1.4
Product: Ports & Packages Reporter: Martin Matuska <martin>
Component: Individual Port(s)Assignee: Sergey Matveychuk <sem>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description Martin Matuska 2005-05-27 11:00:09 UTC
Description of the -C flag for the check_procs command:
	-C, --command=COMMAND
	 Only scan for exact matches of COMMAND (without path).

The change made by files/patch-configure.in does print this command with path,

using: ps axwo 'state uid ppid vsz rss pcpu command command'

This is incorrect, the command is printed with path and only the first 15 
characters are displayed - so it works only with pathnames up to 15 characters.

Therefore e.g "/usr/local/libexec/nagios/check_procs -C getty" does not work

The correct command: ps axwo 'state uid ppid vsz rss pcpu ucomm command'

'ucomm' takes the command without path, as stated in the -C description.
Comment 1 Sergey Matveychuk freebsd_committer freebsd_triage 2005-05-27 18:42:57 UTC
Responsible Changed
From-To: freebsd-ports-bugs->sem

Take it
Comment 2 Sergey Matveychuk freebsd_committer freebsd_triage 2005-05-27 18:57:02 UTC
Dear maintainer!

Please take the PR into account.

--
Sem.
Comment 3 Blaz Zupan 2005-06-05 12:30:12 UTC
> Dear maintainer!
> Please take the PR into account.

Patch looks fine, please commit it.
Comment 4 Sergey Matveychuk freebsd_committer freebsd_triage 2005-06-05 12:40:16 UTC
State Changed
From-To: open->closed

Committed, thanks!