summaryrefslogtreecommitdiffstats
path: root/configure.in
diff options
context:
space:
mode:
authorKarl DeBisschop <kdebisschop@users.sourceforge.net>2002-11-22 01:31:59 +0000
committerKarl DeBisschop <kdebisschop@users.sourceforge.net>2002-11-22 01:31:59 +0000
commite26253cd0216921f276143cefb4f3da58c2d66dd (patch)
tree3436152949aa90c88efe403dc9c45996383d8f8e /configure.in
parentcc6eb04be8d8c9d1707d858f8a7c85aed2156af0 (diff)
downloadmonitoring-plugins-e26253cd0216921f276143cefb4f3da58c2d66dd.tar.gz
get long args output to work on linux check_procs (needs OpenBSD testing)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@221 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in44
1 files changed, 29 insertions, 15 deletions
diff --git a/configure.in b/configure.in
index d5b60c65..e1af2da2 100644
--- a/configure.in
+++ b/configure.in
@@ -402,7 +402,21 @@ fi
402AC_PATH_PROG(PATH_TO_PS,ps) 402AC_PATH_PROG(PATH_TO_PS,ps)
403dnl OpenBSD (needs to come early because -exo appears to work, but does not give all procs) 403dnl OpenBSD (needs to come early because -exo appears to work, but does not give all procs)
404dnl STAT UCOMM VSZ RSS USER UID PPID COMMAND 404dnl STAT UCOMM VSZ RSS USER UID PPID COMMAND
405if [ps -axo 'stat comm vsz rss user uid ppid args' 2>/dev/null | egrep -i "^ *S[TAUES]* +[UCOMDNA]+ +[VSIZE]+ +R[S]+ +U[SER]+ +U[ID]+ +P[PID]+ +[RGSCOMDNA]+" >/dev/null] 405if ps -w -w -e -o 'stat comm vsz rss user uid ppid args' 2> /dev/null | egrep '^ *S[TAUES]* +[UCOMDNA]+ +[VSIZE]+ +R[S]+ +U[SER]+ +U[ID]+ +P[PID]+ +[RGSCOMDNA]+' > /dev/null
406then
407 AC_DEFINE(USE_PS_VARS,1,[Define if 'ps' will be parsed with sscanf])
408 AC_DEFINE_UNQUOTED(PS_VARLIST,[procstat,&procuid,&procppid,procprog,&pos],[Variable list for sscanf of 'ps' output])
409 AC_DEFINE_UNQUOTED(PS_RAW_COMMAND,"$PATH_TO_PS -axo 'stat user ppid args'",[Verbatim command to execute for ps in check_netsaint])
410 EXTRAS="$EXTRAS check_nagios"
411 AC_DEFINE_UNQUOTED(PS_COMMAND,"$PATH_TO_PS -axo 'stat uid ppid comm args'",[Verbatim command to execute for ps in check_procs])
412 AC_DEFINE_UNQUOTED(PS_FORMAT,"%s %d %d %s %n",[Format string for scanning ps output in check_procs])
413 AC_DEFINE_UNQUOTED(VSZ_COMMAND,"$PATH_TO_PS -axo 'vsz comm'",[Verbatim command to execute for ps in check_vsz])
414 AC_DEFINE_UNQUOTED(VSZ_FORMAT,"%d %s",[Format string for scanning ps output in check_vsz])
415 AC_DEFINE_UNQUOTED(RSS_COMMAND,"$PATH_TO_PS -axo 'rss comm'",[Verbatim command to execute for ps in check_rss])
416 AC_DEFINE_UNQUOTED(RSS_FORMAT,"%d %s",[Format string for scanning ps output in check_rss])
417 echo " ps syntax... $PATH_TO_PS -axo 'stat comm vsz rss user ppid args'"
418dnl OpenBSD (needs to come early because -exo appears to work, but does not give all procs)
419elif ps -axo 'stat comm vsz rss user uid ppid args' 2>/dev/null | egrep -i "^ *S[TAUES]* +[UCOMDNA]+ +[VSIZE]+ +R[S]+ +U[SER]+ +U[ID]+ +P[PID]+ +[RGSCOMDNA]+" >/dev/null
406then 420then
407 AC_DEFINE(USE_PS_VARS,1,[Define if 'ps' will be parsed with sscanf]) 421 AC_DEFINE(USE_PS_VARS,1,[Define if 'ps' will be parsed with sscanf])
408 AC_DEFINE_UNQUOTED(PS_VARLIST,[procstat,&procuid,&procppid,procprog,&pos],[Variable list for sscanf of 'ps' output]) 422 AC_DEFINE_UNQUOTED(PS_VARLIST,[procstat,&procuid,&procppid,procprog,&pos],[Variable list for sscanf of 'ps' output])
@@ -416,7 +430,7 @@ then
416 AC_DEFINE_UNQUOTED(RSS_FORMAT,"%d %s",[Format string for scanning ps output in check_rss]) 430 AC_DEFINE_UNQUOTED(RSS_FORMAT,"%d %s",[Format string for scanning ps output in check_rss])
417 echo " ps syntax... $PATH_TO_PS -axo 'stat comm vsz rss user ppid args'" 431 echo " ps syntax... $PATH_TO_PS -axo 'stat comm vsz rss user ppid args'"
418dnl AIX 4.3.3 - needs verification. 432dnl AIX 4.3.3 - needs verification.
419elif [ps -ao 'stat comm vsz rss user uid ppid args' 2>/dev/null | egrep -i "^ *S[TAUES]* +[UCOMDNA]+ +[VSIZE]+ +R[S]+ +U[SER]+ +U[ID]+ +P[PID]+ +[RGSCOMDNA]+" >/dev/null] 433elif ps -ao 'stat comm vsz rss user uid ppid args' 2>/dev/null | egrep -i "^ *S[TAUES]* +[UCOMDNA]+ +[VSIZE]+ +R[S]+ +U[SER]+ +U[ID]+ +P[PID]+ +[RGSCOMDNA]+" >/dev/null
420then 434then
421 AC_DEFINE(USE_PS_VARS,1,[Define if 'ps' will be parsed with sscanf]) 435 AC_DEFINE(USE_PS_VARS,1,[Define if 'ps' will be parsed with sscanf])
422 AC_DEFINE_UNQUOTED(PS_VARLIST,[procstat,&procuid,&procppid,procprog,&pos],[Variable list for sscanf of 'ps' output]) 436 AC_DEFINE_UNQUOTED(PS_VARLIST,[procstat,&procuid,&procppid,procprog,&pos],[Variable list for sscanf of 'ps' output])
@@ -429,7 +443,7 @@ then
429 AC_DEFINE_UNQUOTED(RSS_COMMAND,"$PATH_TO_PS -ao 'rss comm'",[]) 443 AC_DEFINE_UNQUOTED(RSS_COMMAND,"$PATH_TO_PS -ao 'rss comm'",[])
430 AC_DEFINE_UNQUOTED(RSS_FORMAT,"%d %s",[]) 444 AC_DEFINE_UNQUOTED(RSS_FORMAT,"%d %s",[])
431 echo " ps syntax... $PATH_TO_PS -ao 'stat comm vsz rss user ppid args'" 445 echo " ps syntax... $PATH_TO_PS -ao 'stat comm vsz rss user ppid args'"
432elif [ps -eo 's comm vsz rss user uid ppid args' 2>/dev/null | egrep -i "^S[TAUES]* +C[OMDNA]+ +[VSIZE]+ +U[SER]+ +U[ID]+ +P[PID]+ +[RGSCOMDNA]+" >/dev/null] 446elif ps -eo 's comm vsz rss user uid ppid args' 2>/dev/null | egrep -i "^S[TAUES]* +C[OMDNA]+ +[VSIZE]+ +U[SER]+ +U[ID]+ +P[PID]+ +[RGSCOMDNA]+" >/dev/null
433then 447then
434 AC_DEFINE(USE_PS_VARS,1,[Define if 'ps' will be parsed with sscanf]) 448 AC_DEFINE(USE_PS_VARS,1,[Define if 'ps' will be parsed with sscanf])
435 AC_DEFINE_UNQUOTED(PS_VARLIST,[procstat,&procuid,&procppid,procprog,&pos],[Variable list for sscanf of 'ps' output]) 449 AC_DEFINE_UNQUOTED(PS_VARLIST,[procstat,&procuid,&procppid,procprog,&pos],[Variable list for sscanf of 'ps' output])
@@ -442,7 +456,7 @@ then
442 AC_DEFINE_UNQUOTED(RSS_COMMAND,"$PATH_TO_PS -eo 'rss comm'",[]) 456 AC_DEFINE_UNQUOTED(RSS_COMMAND,"$PATH_TO_PS -eo 'rss comm'",[])
443 AC_DEFINE_UNQUOTED(RSS_FORMAT,"%d %s",[]) 457 AC_DEFINE_UNQUOTED(RSS_FORMAT,"%d %s",[])
444 echo " ps syntax... $PATH_TO_PS -eo 's comm vsz rss user ppid args'" 458 echo " ps syntax... $PATH_TO_PS -eo 's comm vsz rss user ppid args'"
445elif [ps -Ao 's comm vsz rss uid user ppid args' 2>/dev/null | egrep -i "^S[TAUES]* +C[OMDNA]+ +V[SIZE]+ +RSS +UID +USER +PPID +[RGSCOMDNA]+" >/dev/null] 459elif ps -Ao 's comm vsz rss uid user ppid args' 2>/dev/null | egrep -i "^S[TAUES]* +C[OMDNA]+ +V[SIZE]+ +RSS +UID +USER +PPID +[RGSCOMDNA]+" >/dev/null
446then 460then
447 AC_DEFINE(USE_PS_VARS,1,[Define if 'ps' will be parsed with sscanf]) 461 AC_DEFINE(USE_PS_VARS,1,[Define if 'ps' will be parsed with sscanf])
448 AC_DEFINE_UNQUOTED(PS_VARLIST,[procstat,&procuid,&procppid,procprog,&pos],[Variable list for sscanf of 'ps' output]) 462 AC_DEFINE_UNQUOTED(PS_VARLIST,[procstat,&procuid,&procppid,procprog,&pos],[Variable list for sscanf of 'ps' output])
@@ -455,7 +469,7 @@ then
455 AC_DEFINE_UNQUOTED(RSS_COMMAND,"$PATH_TO_PS -Ao 'rss comm'",[]) 469 AC_DEFINE_UNQUOTED(RSS_COMMAND,"$PATH_TO_PS -Ao 'rss comm'",[])
456 AC_DEFINE_UNQUOTED(RSS_FORMAT,"%d %s",[]) 470 AC_DEFINE_UNQUOTED(RSS_FORMAT,"%d %s",[])
457 echo " ps syntax... $PATH_TO_PS -Ao 's comm vsz rss'" 471 echo " ps syntax... $PATH_TO_PS -Ao 's comm vsz rss'"
458elif [ps -Ao 'status comm vsz rss uid user ppid args' 2>/dev/null | egrep -i "^S[TAUES]* +C[OMDNA]+ +V[SIZE]+ +RSS +UID +USER +PPID +[RGSCOMDNA]+" >/dev/null] 472elif ps -Ao 'status comm vsz rss uid user ppid args' 2>/dev/null | egrep -i "^S[TAUES]* +C[OMDNA]+ +V[SIZE]+ +RSS +UID +USER +PPID +[RGSCOMDNA]+" >/dev/null
459then 473then
460 AC_DEFINE(USE_PS_VARS,1,[Define if we use custom variable list for sscanf]) 474 AC_DEFINE(USE_PS_VARS,1,[Define if we use custom variable list for sscanf])
461 AC_DEFINE_UNQUOTED(PS_VARLIST,[procstat,&procuid,&procppid,procprog,&pos]) 475 AC_DEFINE_UNQUOTED(PS_VARLIST,[procstat,&procuid,&procppid,procprog,&pos])
@@ -468,7 +482,7 @@ then
468 AC_DEFINE_UNQUOTED(RSS_COMMAND,"$PATH_TO_PS -Ao 'rss comm'",[]) 482 AC_DEFINE_UNQUOTED(RSS_COMMAND,"$PATH_TO_PS -Ao 'rss comm'",[])
469 AC_DEFINE_UNQUOTED(RSS_FORMAT,"%d %s",[]) 483 AC_DEFINE_UNQUOTED(RSS_FORMAT,"%d %s",[])
470 echo " ps syntax... $PATH_TO_PS -Ao 'status comm vsz rss'" 484 echo " ps syntax... $PATH_TO_PS -Ao 'status comm vsz rss'"
471elif [ps -Ao 'state comm vsz rss uid user ppid args' 2>/dev/null | egrep -i "^S[TAUES]* +C[OMDNA]+ +V[SIZE]+ +RSS +UID +USER +PPID +[RGSCOMDNA]+" >/dev/null] 485elif ps -Ao 'state comm vsz rss uid user ppid args' 2>/dev/null | egrep -i "^S[TAUES]* +C[OMDNA]+ +V[SIZE]+ +RSS +UID +USER +PPID +[RGSCOMDNA]+" >/dev/null
472then 486then
473 AC_DEFINE(USE_PS_VARS,1,[Define if we use custom variable list for sscanf]) 487 AC_DEFINE(USE_PS_VARS,1,[Define if we use custom variable list for sscanf])
474 AC_DEFINE_UNQUOTED(PS_VARLIST,[procstat,&procuid,&procppid,procprog,&pos]) 488 AC_DEFINE_UNQUOTED(PS_VARLIST,[procstat,&procuid,&procppid,procprog,&pos])
@@ -482,7 +496,7 @@ then
482 AC_DEFINE_UNQUOTED(RSS_FORMAT,"%d %s",[]) 496 AC_DEFINE_UNQUOTED(RSS_FORMAT,"%d %s",[])
483 echo " ps syntax... $PATH_TO_PS -Ao 'state comm vsz rss'" 497 echo " ps syntax... $PATH_TO_PS -Ao 'state comm vsz rss'"
484dnl wonder who takes state instead of stat 498dnl wonder who takes state instead of stat
485elif [ps -ao 'state command vsz rss user ppid args' 2>/dev/null | egrep -i "^S[TAUES]* +C[OMDNA]+ +V[SIZE]+ +RSS +UID +USER +PPID +[RGSCOMDNA]+" >/dev/null] 499elif ps -ao 'state command vsz rss user ppid args' 2>/dev/null | egrep -i "^S[TAUES]* +C[OMDNA]+ +V[SIZE]+ +RSS +UID +USER +PPID +[RGSCOMDNA]+" >/dev/null
486then 500then
487 AC_DEFINE(USE_PS_VARS,1,[Define if we use custom variable list for sscanf]) 501 AC_DEFINE(USE_PS_VARS,1,[Define if we use custom variable list for sscanf])
488 AC_DEFINE_UNQUOTED(PS_VARLIST,[procstat,&procuid,&procppid,procprog,&pos],[]) 502 AC_DEFINE_UNQUOTED(PS_VARLIST,[procstat,&procuid,&procppid,procprog,&pos],[])
@@ -496,7 +510,7 @@ then
496 AC_DEFINE_UNQUOTED(RSS_FORMAT,"%d %s",[]) 510 AC_DEFINE_UNQUOTED(RSS_FORMAT,"%d %s",[])
497 echo " ps syntax... $PATH_TO_PS -ao 'state command vsz rss'" 511 echo " ps syntax... $PATH_TO_PS -ao 'state command vsz rss'"
498dnl FreeBSD 512dnl FreeBSD
499elif [ps waxco 'state command vsz rss uid user ppid' 2>/dev/null | egrep -i "^STAT +COMMAND +VSZ +RSS +UID +USER +PPID" >/dev/null] 513elif ps waxco 'state command vsz rss uid user ppid' 2>/dev/null | egrep -i "^STAT +COMMAND +VSZ +RSS +UID +USER +PPID" >/dev/null
500then 514then
501 AC_DEFINE(USE_PS_VARS,1,[Define if we use custom variable list for sscanf]) 515 AC_DEFINE(USE_PS_VARS,1,[Define if we use custom variable list for sscanf])
502 AC_DEFINE_UNQUOTED(PS_VARLIST,[procstat,&procuid,&procppid,procprog,&pos],[]) 516 AC_DEFINE_UNQUOTED(PS_VARLIST,[procstat,&procuid,&procppid,procprog,&pos],[])
@@ -510,7 +524,7 @@ then
510 AC_DEFINE_UNQUOTED(RSS_FORMAT,"%d %s",[]) 524 AC_DEFINE_UNQUOTED(RSS_FORMAT,"%d %s",[])
511 echo " ps syntax... $PATH_TO_PS -Ao 'state command vsz rss'" 525 echo " ps syntax... $PATH_TO_PS -Ao 'state command vsz rss'"
512dnl BSD-like mode in RH 6.1 526dnl BSD-like mode in RH 6.1
513elif [ps waxno 'state comm vsz rss uid user ppid args' 2>/dev/null | egrep -i "^S +COMMAND +VSZ +RSS +UID +USER +PPID +[RGSCOMDNA]+" >/dev/null] 527elif ps waxno 'state comm vsz rss uid user ppid args' 2>/dev/null | egrep -i "^S +COMMAND +VSZ +RSS +UID +USER +PPID +[RGSCOMDNA]+" >/dev/null
514then 528then
515 AC_DEFINE(USE_PS_VARS,1,[Define if we use custom variable list for sscanf]) 529 AC_DEFINE(USE_PS_VARS,1,[Define if we use custom variable list for sscanf])
516 AC_DEFINE_UNQUOTED(PS_VARLIST,[procstat,&procuid,&procppid,procprog,&pos],[]) 530 AC_DEFINE_UNQUOTED(PS_VARLIST,[procstat,&procuid,&procppid,procprog,&pos],[])
@@ -524,7 +538,7 @@ then
524 AC_DEFINE_UNQUOTED(RSS_FORMAT,"%d %s",[]) 538 AC_DEFINE_UNQUOTED(RSS_FORMAT,"%d %s",[])
525 echo " ps syntax... $PATH_TO_PS -waxco 'state comm vsz rss'" 539 echo " ps syntax... $PATH_TO_PS -waxco 'state comm vsz rss'"
526dnl IRIX 53 540dnl IRIX 53
527elif [ps -el 2>/dev/null | egrep -i "^ *F +S +UID +PID +PPID +C +PRI +NI +P +SZ +RSS +WCHAN +TTY +TIME +[RGSCOMDNA]+" >/dev/null] 541elif ps -el 2>/dev/null | egrep -i "^ *F +S +UID +PID +PPID +C +PRI +NI +P +SZ +RSS +WCHAN +TTY +TIME +[RGSCOMDNA]+" >/dev/null
528then 542then
529 AC_DEFINE(USE_PS_VARS,1,[Define if we use custom variable list for sscanf]) 543 AC_DEFINE(USE_PS_VARS,1,[Define if we use custom variable list for sscanf])
530 AC_DEFINE_UNQUOTED(PS_VARLIST,[procstat,&procuid,&procppid,&pos,procprog],[]) 544 AC_DEFINE_UNQUOTED(PS_VARLIST,[procstat,&procuid,&procppid,&pos,procprog],[])
@@ -536,7 +550,7 @@ then
536 AC_DEFINE_UNQUOTED(RSS_FORMAT,"%*s %*s %*s %*s %*s %*s %*s %*s %*s %*s %d",[]) 550 AC_DEFINE_UNQUOTED(RSS_FORMAT,"%*s %*s %*s %*s %*s %*s %*s %*s %*s %*s %d",[])
537 echo " ps syntax... $PATH_TO_PS -el" 551 echo " ps syntax... $PATH_TO_PS -el"
538dnl IRIX 63 552dnl IRIX 63
539elif [ps -el 2>/dev/null | egrep -i "^ *F +S +UID +PID +PPID +C +PRI +NI +P +ADDR +SZ +RSS +WCHAN +TTY +TIME +[RGSCOMDNA]+" >/dev/null] 553elif ps -el 2>/dev/null | egrep -i "^ *F +S +UID +PID +PPID +C +PRI +NI +P +ADDR +SZ +RSS +WCHAN +TTY +TIME +[RGSCOMDNA]+" >/dev/null
540then 554then
541 AC_DEFINE(USE_PS_VARS,1,[Define if we use custom variable list for sscanf]) 555 AC_DEFINE(USE_PS_VARS,1,[Define if we use custom variable list for sscanf])
542 AC_DEFINE_UNQUOTED(PS_VARLIST,[procstat,&procuid,&procppid,&pos,procprog],[]) 556 AC_DEFINE_UNQUOTED(PS_VARLIST,[procstat,&procuid,&procppid,&pos,procprog],[])
@@ -550,7 +564,7 @@ then
550dnl SunOS 4.1.3: 564dnl SunOS 4.1.3:
551dnl F UID PID PPID CP PRI NI SZ RSS WCHAN STAT TT TIME COMMAND 565dnl F UID PID PPID CP PRI NI SZ RSS WCHAN STAT TT TIME COMMAND
552dnl 566dnl
553elif [ps -laxnwww 2>/dev/null | egrep -i "^ *F(LAGS)? +UID +PID +PPID +CP +PRI +NI +(SZ)|(VSZ)|(SIZE) +RSS +WCHAN +STAT? +TTY? +TIME +COMMAND" >/dev/null] 567elif ps -laxnwww 2>/dev/null | egrep -i "^ *F(LAGS)? +UID +PID +PPID +CP +PRI +NI +(SZ)|(VSZ)|(SIZE) +RSS +WCHAN +STAT? +TTY? +TIME +COMMAND" >/dev/null
554then 568then
555 AC_DEFINE(USE_PS_VARS,1,[Define if we use custom variable list for sscanf]) 569 AC_DEFINE(USE_PS_VARS,1,[Define if we use custom variable list for sscanf])
556 AC_DEFINE_UNQUOTED(PS_RAW_COMMAND,"$PATH_TO_PS laxnwww",[]) 570 AC_DEFINE_UNQUOTED(PS_RAW_COMMAND,"$PATH_TO_PS laxnwww",[])
@@ -567,7 +581,7 @@ dnl Debian Linux / procps v1.2.9:
567dnl FLAGS UID PID PPID PRI NI SIZE RSS WCHAN STA TTY TIME COMMAND 581dnl FLAGS UID PID PPID PRI NI SIZE RSS WCHAN STA TTY TIME COMMAND
568dnl 100 0 1 0 0 0 776 76 c0131c8c S ffff 0:11 init [2] 582dnl 100 0 1 0 0 0 776 76 c0131c8c S ffff 0:11 init [2]
569dnl 583dnl
570elif [ps laxnwww 2>/dev/null | egrep -i "^ *F(LAGS)? +UID +PID +PPID +PRI +NI +(VSZ)|(SIZE) +RSS +WCHAN +STAT? TTY +TIME +COMMAND" >/dev/null] 584elif ps laxnwww 2>/dev/null | egrep -i "^ *F(LAGS)? +UID +PID +PPID +PRI +NI +(VSZ)|(SIZE) +RSS +WCHAN +STAT? TTY +TIME +COMMAND" >/dev/null
571then 585then
572 AC_DEFINE(USE_PS_VARS,1,[Define if we use custom variable list for sscanf]) 586 AC_DEFINE(USE_PS_VARS,1,[Define if we use custom variable list for sscanf])
573 AC_DEFINE_UNQUOTED(PS_RAW_COMMAND,"$PATH_TO_PS laxnwww",[]) 587 AC_DEFINE_UNQUOTED(PS_RAW_COMMAND,"$PATH_TO_PS laxnwww",[])
@@ -584,7 +598,7 @@ dnl
584dnl AIX 4.1: 598dnl AIX 4.1:
585dnl F S UID PID PPID C PRI NI ADDR SZ RSS WCHAN TTY TIME CMD 599dnl F S UID PID PPID C PRI NI ADDR SZ RSS WCHAN TTY TIME CMD
586dnl 303 A 0 0 0 120 16 -- 1c07 20 24 - 0:45 swapper 600dnl 303 A 0 0 0 120 16 -- 1c07 20 24 - 0:45 swapper
587elif [ps -el 2>/dev/null | egrep -i "^ *F +S +UID +PID +PPID +C +PRI +NI +ADDR +SZ +WCHAN +TTY +TIME +[RGSCOMDNA]+" >/dev/null] 601elif ps -el 2>/dev/null | egrep -i "^ *F +S +UID +PID +PPID +C +PRI +NI +ADDR +SZ +WCHAN +TTY +TIME +[RGSCOMDNA]+" >/dev/null
588then 602then
589 AC_DEFINE(USE_PS_VARS,1,[Define if we use custom variable list for sscanf]) 603 AC_DEFINE(USE_PS_VARS,1,[Define if we use custom variable list for sscanf])
590 AC_DEFINE_UNQUOTED(PS_VARLIST,[procstat,&procuid,&procppid,&pos,procprog],[]) 604 AC_DEFINE_UNQUOTED(PS_VARLIST,[procstat,&procuid,&procppid,&pos,procprog],[])
@@ -596,7 +610,7 @@ then
596 AC_DEFINE_UNQUOTED(RSS_FORMAT,"%*s %*s %*s %*s %*s %*s %*s %*s %*s %d",[]) 610 AC_DEFINE_UNQUOTED(RSS_FORMAT,"%*s %*s %*s %*s %*s %*s %*s %*s %*s %d",[])
597 echo " ps syntax... $PATH_TO_PS -el" 611 echo " ps syntax... $PATH_TO_PS -el"
598dnl AIX? 612dnl AIX?
599elif [ps glaxen 2>/dev/null | egrep -i "^ *F +UID +PID +PPID +PRI +NI +VSZ +RSS +WCHAN +STAT +TTY +TIME +COMMAND" >/dev/null] 613elif ps glaxen 2>/dev/null | egrep -i "^ *F +UID +PID +PPID +PRI +NI +VSZ +RSS +WCHAN +STAT +TTY +TIME +COMMAND" >/dev/null
600then 614then
601 AC_DEFINE(USE_PS_VARS,1,[Define if we use custom variable list for sscanf]) 615 AC_DEFINE(USE_PS_VARS,1,[Define if we use custom variable list for sscanf])
602 AC_DEFINE_UNQUOTED(PS_VARLIST,[&procuid,&procppid,procstat,&pos,procprog],[]) 616 AC_DEFINE_UNQUOTED(PS_VARLIST,[&procuid,&procppid,procstat,&pos,procprog],[])