Bug 75061 - nagios-plugins uses wrong ps arguments on FreBSD 5.3
Summary: nagios-plugins uses wrong ps arguments on FreBSD 5.3
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-14 17:10 UTC by Michael Haro
Modified: 2004-12-22 12:35 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Haro freebsd_committer freebsd_triage 2004-12-14 17:10:28 UTC
check_procs appears to be using the wrong ps command.

From make configure...

checking for ps... /bin/ps
checking for ps syntax... /bin/ps -weo 'stat uid ppid vsz rss pcpu comm args'

This impacts process reporting:

# ps -ax|wc -l
     132

# /usr/local/libexec/nagios/check_procs
PROCS OK: 11 processes

# ps | wc -l
      13

Fix: 

Something in configure, but I'm not sure how to change it.
How-To-Repeat: 
cd /usr/ports/net-mgmt/nagios-plugins
make configure

# ident Makefile
Makefile:
     $FreeBSD: ports/net-mgmt/nagios-plugins/Makefile,v 1.36 2004/12/04 17:23:31 arved Exp $
Comment 1 Volker Stolz freebsd_committer freebsd_triage 2004-12-15 12:50:22 UTC
Dear maintainer, please look into this issue.

Volker
Comment 2 Volker Stolz freebsd_committer freebsd_triage 2004-12-15 12:50:39 UTC
State Changed
From-To: open->feedback

Forwarded PR to maintainer
Comment 3 Fritz Heinrichmeyer 2004-12-22 12:17:52 UTC
i radically deleted the elsif block in configure.in that
lead to

/bin/ps -weo 'stat uid ppid vsz rss pcpu comm args'

after this, the correct FreeBSD part of configure.in was processed and 
check_procs generated from this works now.

-- 
Mit freundlichen Gruessen
Fritz Heinrichmeyer FernUniversitaet, LG ES, 58084 Hagen (Germany)
tel:+49 2331/987-1166 fax:987-355
Comment 4 Tilman Keskinoz freebsd_committer freebsd_triage 2004-12-22 12:35:16 UTC
State Changed
From-To: feedback->closed

The last update of the port should fix this problem