[Nagiosplug-devel] [ nagiosplug-Bugs-1864501 ] check_procs under SunOS 5.10 broken
SourceForge.net
noreply at sourceforge.net
Sat Jan 5 15:47:34 CET 2008
Bugs item #1864501, was opened at 2008-01-05 15:45
Message generated for change (Comment added) made by lausser
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1864501&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: Deleted
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
----------------------------------------------------------------------
>Comment By: gerhard lausser (lausser)
Date: 2008-01-05 15:47
Message:
Logged In: YES
user_id=613416
Originator: YES
Scheisse, wie krieg ich einen doppelten Eintrag wieder raus?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1864501&group_id=29880
More information about the Devel
mailing list