[Nagiosplug-devel] [ nagiosplug-Bugs-1864225 ] check_procs under SunOS 5.10 broken
SourceForge.net
noreply at sourceforge.net
Fri Jan 4 22:37:55 CET 2008
Bugs item #1864225, was opened at 2008-01-04 22:37
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1864225&group_id=29880
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Compilation
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: gerhard lausser (lausser)
Assigned to: Nobody/Anonymous (nobody)
Summary: check_procs under SunOS 5.10 broken
Initial Comment:
Hi,
i just compiled the 4.11 plugins on a
$ uname -a
SunOS spnb51 5.10 Generic_118833-24 sun4v sparc SUNW,Sun-Fire-T200
and found that check_procs does not work correctly.
$ ps -ef | grep cron
root 15100 1 0 Nov 08 ? 1:06 /usr/sbin/cron
$ /usr/ucb/ps -alxwwn | grep cron
0 0 15100 1 0 59 20 2784 1048 60015774482 S ? 1:06 /usr/sbin/cron
Cron is running, but....
check_procs -w :10 -c 1: -C cron
PROCS CRITICAL: 0 processes with command name '/usr/sbin/cron'
Running check-procs with -vvv shows, that it uses
/usr/ucb/ps -alxwwn
and actually parses the right line
proc#=0 uid=0 vsz=2784 rss=1048 pid=15100 ppid=1 pcpu=0.00 stat=S etime= prog= args=/usr/sbin/cron
but as you see, prog is empty and what should be prog is recognized as argument.
Please change the configure.in (the buggy lines in configure are 24967 ff) so that it reads:
ac_cv_ps_varlist="&procuid,&procpid,&procppid,&procpcpu,&procvsz,&procrs
s,procstat,procprog,&pos"
ac_cv_ps_command="/usr/ucb/ps -alxwwn"
ac_cv_ps_format="%*s %d %d %d %d %*d %*d %d %d%*[ 0123456789abcdef]%[OSR
ZT]%*s %*s %s %n"
ac_cv_ps_cols=9
(add procprog to the varlist, add a %s at the end of format and increase cols)
Then it looks good:
$ check_procs -w :10 -c 1: -C cron
PROCS OK: 1 process with command name 'cron'
Greetings from Munich,
Gerhard
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1864225&group_id=29880
More information about the Devel
mailing list