[Nagiosplug-devel] [ nagiosplug-Bugs-820125 ] check_procs arg-array check matches itself @ sol8
SourceForge.net
noreply at sourceforge.net
Thu Dec 11 02:23:04 CET 2003
Bugs item #820125, was opened at 2003-10-08 19:08
Message generated for change (Comment added) made by tonvoon
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=820125&group_id=29880
Category: Parsing problem
Group: Release (specify)
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Greg Haygood (shrykedude)
Assigned to: Ton Voon (tonvoon)
Summary: check_procs arg-array check matches itself @ sol8
Initial Comment:
On Solaris8, using nagios-plugins-1.3.1, when calling
check_procs with -a to look for argument strings, the
plugin is including the check_procs call as a match
(this is from a check_procs modified only to enable the
DEBUG1 output of the process list)
[root] $ ./check_procs -c 1: -a inetd > /tmp/check
[root] $ grep inetd /tmp/check
CHECKING: 0 0 1 S /usr/sbin/inetd /usr/sbin/inetd -s
CHECKING: 1 0 14603 S ./check_procs ./check_procs -c 1:
-a inetd
OK - 2 processes running with args inetd
[root] $
the call to itself should be excluded from the reported
list.
----------------------------------------------------------------------
>Comment By: Ton Voon (tonvoon)
Date: 2003-12-11 10:22
Message:
Logged In: YES
user_id=664364
Closing this call as this problem is fixed.
----------------------------------------------------------------------
Comment By: Ton Voon (tonvoon)
Date: 2003-10-09 08:15
Message:
Logged In: YES
user_id=664364
Greg,
Thanks for the bug report. This should be fixed in the CVS
HEAD version of check_procs, due to be the upcoming release
1.4. Can you give that a try from
http://nagiosplug.sourceforge.net/snapshot/?
Ton
----------------------------------------------------------------------
Comment By: Greg Haygood (shrykedude)
Date: 2003-10-08 19:26
Message:
Logged In: YES
user_id=61279
After succeeding on my RH8 box, I found that the code *is*
trying to strip the match to itself. But the solaris8
ps_cmd is returning the procprog with the called path:
CHECKING: 1 0 14603 S ./check_procs(?=check_procs)
./check_procs -c 1: -a inetd
where ./check_procs(?=check_procs) is (pseudo)defined as
$procprog(?=$progname)
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=820125&group_id=29880
More information about the Devel
mailing list