[Nagiosplug-devel] [ nagiosplug-Bugs-820125 ] check_procs arg-array check matches itself @ sol8

SourceForge.net noreply at sourceforge.net
Wed Oct 8 11:27:03 CEST 2003


Bugs item #820125, was opened at 2003-10-08 14:08
Message generated for change (Comment added) made by shrykedude
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: Open
Resolution: None
Priority: 5
Submitted By: Greg Haygood (shrykedude)
Assigned to: Nobody/Anonymous (nobody)
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: Greg Haygood (shrykedude)
Date: 2003-10-08 14: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