Date: Fri, 27 May 2005 11:59:08 +0200 (CEST) From: Martin Matuska <martin@matuska.org> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/81548: Bugfix for nagios-plugins 1.4 Message-ID: <20050527095908.038CC22924@mail.vx.sk> Resent-Message-ID: <200505271000.j4RA0BaE094946@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 81548 >Category: ports >Synopsis: Bugfix for nagios-plugins 1.4 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri May 27 10:00:09 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Martin Matuska >Release: FreeBSD 5.4-RELEASE i386 >Organization: >Environment: System: FreeBSD 5.4-RELEASE >Description: 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. >How-To-Repeat: >Fix: diff -bur net-mgmt/nagios-plugins.orig/Makefile net-mgmt/nagios-plugins/Makefile --- net-mgmt/nagios-plugins.orig/Makefile Fri May 27 11:39:42 2005 +++ net-mgmt/nagios-plugins/Makefile Fri May 27 11:40:02 2005 @@ -7,7 +7,7 @@ PORTNAME= nagios-plugins PORTVERSION= 1.4 -PORTREVISION= 1 +PORTREVISION= 2 PORTEPOCH= 1 CATEGORIES= net-mgmt MASTER_SITES= ${MASTER_SITE_SOURCEFORGE_EXTENDED} diff -bur net-mgmt/nagios-plugins.orig/files/patch-configure.in net-mgmt/nagios-plugins/files/patch-configure.in --- net-mgmt/nagios-plugins.orig/files/patch-configure.in Fri May 27 11:39:42 2005 +++ net-mgmt/nagios-plugins/files/patch-configure.in Fri May 27 11:39:56 2005 @@ -301,7 +301,7 @@ - AC_MSG_WARN([unable to find usable ps syntax - check_procs and check_nagios will not be compiled]) -fi +ac_cv_ps_varlist="[procstat,&procuid,&procppid,&procvsz,&procrss,&procpcpu,procprog,&pos]" -+ac_cv_ps_command="$PATH_TO_PS axwo 'state uid ppid vsz rss pcpu command command'" ++ac_cv_ps_command="$PATH_TO_PS axwo 'state uid ppid vsz rss pcpu ucomm command'" +ac_cv_ps_format="%s %d %d %d %d %f %s %n" +ac_cv_ps_cols=8 +AC_MSG_RESULT([$ac_cv_ps_command]) >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050527095908.038CC22924>