summaryrefslogtreecommitdiffstats
path: root/configure.in
diff options
context:
space:
mode:
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in43
1 files changed, 21 insertions, 22 deletions
diff --git a/configure.in b/configure.in
index e1af2da..e73cc26 100644
--- a/configure.in
+++ b/configure.in
@@ -402,21 +402,20 @@ 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 -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 405if [ps -weo '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 406then
407 AC_DEFINE(USE_PS_VARS,1,[Define if 'ps' will be parsed with sscanf]) 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]) 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]) 409 AC_DEFINE_UNQUOTED(PS_RAW_COMMAND,"$PATH_TO_PS -weo 'stat user ppid args'",[Verbatim command to execute for ps in check_netsaint])
410 EXTRAS="$EXTRAS check_nagios" 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]) 411 AC_DEFINE_UNQUOTED(PS_COMMAND,"$PATH_TO_PS -weo '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]) 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]) 413 AC_DEFINE_UNQUOTED(VSZ_COMMAND,"$PATH_TO_PS -weo '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]) 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]) 415 AC_DEFINE_UNQUOTED(RSS_COMMAND,"$PATH_TO_PS -weo '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]) 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'" 417 echo " ps syntax... $PATH_TO_PS -weo 'stat comm vsz rss user ppid args'"
418dnl OpenBSD (needs to come early because -exo appears to work, but does not give all procs) 418elif [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]
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
420then 419then
421 AC_DEFINE(USE_PS_VARS,1,[Define if 'ps' will be parsed with sscanf]) 420 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]) 421 AC_DEFINE_UNQUOTED(PS_VARLIST,[procstat,&procuid,&procppid,procprog,&pos],[Variable list for sscanf of 'ps' output])
@@ -430,7 +429,7 @@ then
430 AC_DEFINE_UNQUOTED(RSS_FORMAT,"%d %s",[Format string for scanning ps output in check_rss]) 429 AC_DEFINE_UNQUOTED(RSS_FORMAT,"%d %s",[Format string for scanning ps output in check_rss])
431 echo " ps syntax... $PATH_TO_PS -axo 'stat comm vsz rss user ppid args'" 430 echo " ps syntax... $PATH_TO_PS -axo 'stat comm vsz rss user ppid args'"
432dnl AIX 4.3.3 - needs verification. 431dnl AIX 4.3.3 - needs verification.
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 432elif [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]
434then 433then
435 AC_DEFINE(USE_PS_VARS,1,[Define if 'ps' will be parsed with sscanf]) 434 AC_DEFINE(USE_PS_VARS,1,[Define if 'ps' will be parsed with sscanf])
436 AC_DEFINE_UNQUOTED(PS_VARLIST,[procstat,&procuid,&procppid,procprog,&pos],[Variable list for sscanf of 'ps' output]) 435 AC_DEFINE_UNQUOTED(PS_VARLIST,[procstat,&procuid,&procppid,procprog,&pos],[Variable list for sscanf of 'ps' output])
@@ -443,7 +442,7 @@ then
443 AC_DEFINE_UNQUOTED(RSS_COMMAND,"$PATH_TO_PS -ao 'rss comm'",[]) 442 AC_DEFINE_UNQUOTED(RSS_COMMAND,"$PATH_TO_PS -ao 'rss comm'",[])
444 AC_DEFINE_UNQUOTED(RSS_FORMAT,"%d %s",[]) 443 AC_DEFINE_UNQUOTED(RSS_FORMAT,"%d %s",[])
445 echo " ps syntax... $PATH_TO_PS -ao 'stat comm vsz rss user ppid args'" 444 echo " ps syntax... $PATH_TO_PS -ao 'stat comm vsz rss user ppid args'"
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 445elif [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]
447then 446then
448 AC_DEFINE(USE_PS_VARS,1,[Define if 'ps' will be parsed with sscanf]) 447 AC_DEFINE(USE_PS_VARS,1,[Define if 'ps' will be parsed with sscanf])
449 AC_DEFINE_UNQUOTED(PS_VARLIST,[procstat,&procuid,&procppid,procprog,&pos],[Variable list for sscanf of 'ps' output]) 448 AC_DEFINE_UNQUOTED(PS_VARLIST,[procstat,&procuid,&procppid,procprog,&pos],[Variable list for sscanf of 'ps' output])
@@ -456,7 +455,7 @@ then
456 AC_DEFINE_UNQUOTED(RSS_COMMAND,"$PATH_TO_PS -eo 'rss comm'",[]) 455 AC_DEFINE_UNQUOTED(RSS_COMMAND,"$PATH_TO_PS -eo 'rss comm'",[])
457 AC_DEFINE_UNQUOTED(RSS_FORMAT,"%d %s",[]) 456 AC_DEFINE_UNQUOTED(RSS_FORMAT,"%d %s",[])
458 echo " ps syntax... $PATH_TO_PS -eo 's comm vsz rss user ppid args'" 457 echo " ps syntax... $PATH_TO_PS -eo 's comm vsz rss user ppid args'"
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 458elif [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]
460then 459then
461 AC_DEFINE(USE_PS_VARS,1,[Define if 'ps' will be parsed with sscanf]) 460 AC_DEFINE(USE_PS_VARS,1,[Define if 'ps' will be parsed with sscanf])
462 AC_DEFINE_UNQUOTED(PS_VARLIST,[procstat,&procuid,&procppid,procprog,&pos],[Variable list for sscanf of 'ps' output]) 461 AC_DEFINE_UNQUOTED(PS_VARLIST,[procstat,&procuid,&procppid,procprog,&pos],[Variable list for sscanf of 'ps' output])
@@ -469,7 +468,7 @@ then
469 AC_DEFINE_UNQUOTED(RSS_COMMAND,"$PATH_TO_PS -Ao 'rss comm'",[]) 468 AC_DEFINE_UNQUOTED(RSS_COMMAND,"$PATH_TO_PS -Ao 'rss comm'",[])
470 AC_DEFINE_UNQUOTED(RSS_FORMAT,"%d %s",[]) 469 AC_DEFINE_UNQUOTED(RSS_FORMAT,"%d %s",[])
471 echo " ps syntax... $PATH_TO_PS -Ao 's comm vsz rss'" 470 echo " ps syntax... $PATH_TO_PS -Ao 's comm vsz rss'"
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 471elif [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]
473then 472then
474 AC_DEFINE(USE_PS_VARS,1,[Define if we use custom variable list for sscanf]) 473 AC_DEFINE(USE_PS_VARS,1,[Define if we use custom variable list for sscanf])
475 AC_DEFINE_UNQUOTED(PS_VARLIST,[procstat,&procuid,&procppid,procprog,&pos]) 474 AC_DEFINE_UNQUOTED(PS_VARLIST,[procstat,&procuid,&procppid,procprog,&pos])
@@ -482,7 +481,7 @@ then
482 AC_DEFINE_UNQUOTED(RSS_COMMAND,"$PATH_TO_PS -Ao 'rss comm'",[]) 481 AC_DEFINE_UNQUOTED(RSS_COMMAND,"$PATH_TO_PS -Ao 'rss comm'",[])
483 AC_DEFINE_UNQUOTED(RSS_FORMAT,"%d %s",[]) 482 AC_DEFINE_UNQUOTED(RSS_FORMAT,"%d %s",[])
484 echo " ps syntax... $PATH_TO_PS -Ao 'status comm vsz rss'" 483 echo " ps syntax... $PATH_TO_PS -Ao 'status comm vsz rss'"
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 484elif [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]
486then 485then
487 AC_DEFINE(USE_PS_VARS,1,[Define if we use custom variable list for sscanf]) 486 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]) 487 AC_DEFINE_UNQUOTED(PS_VARLIST,[procstat,&procuid,&procppid,procprog,&pos])
@@ -496,7 +495,7 @@ then
496 AC_DEFINE_UNQUOTED(RSS_FORMAT,"%d %s",[]) 495 AC_DEFINE_UNQUOTED(RSS_FORMAT,"%d %s",[])
497 echo " ps syntax... $PATH_TO_PS -Ao 'state comm vsz rss'" 496 echo " ps syntax... $PATH_TO_PS -Ao 'state comm vsz rss'"
498dnl wonder who takes state instead of stat 497dnl wonder who takes state instead of stat
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 498elif [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]
500then 499then
501 AC_DEFINE(USE_PS_VARS,1,[Define if we use custom variable list for sscanf]) 500 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],[]) 501 AC_DEFINE_UNQUOTED(PS_VARLIST,[procstat,&procuid,&procppid,procprog,&pos],[])
@@ -510,7 +509,7 @@ then
510 AC_DEFINE_UNQUOTED(RSS_FORMAT,"%d %s",[]) 509 AC_DEFINE_UNQUOTED(RSS_FORMAT,"%d %s",[])
511 echo " ps syntax... $PATH_TO_PS -ao 'state command vsz rss'" 510 echo " ps syntax... $PATH_TO_PS -ao 'state command vsz rss'"
512dnl FreeBSD 511dnl FreeBSD
513elif ps waxco 'state command vsz rss uid user ppid' 2>/dev/null | egrep -i "^STAT +COMMAND +VSZ +RSS +UID +USER +PPID" >/dev/null 512elif [ps waxco 'state command vsz rss uid user ppid' 2>/dev/null | egrep -i "^STAT +COMMAND +VSZ +RSS +UID +USER +PPID" >/dev/null]
514then 513then
515 AC_DEFINE(USE_PS_VARS,1,[Define if we use custom variable list for sscanf]) 514 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],[]) 515 AC_DEFINE_UNQUOTED(PS_VARLIST,[procstat,&procuid,&procppid,procprog,&pos],[])
@@ -524,7 +523,7 @@ then
524 AC_DEFINE_UNQUOTED(RSS_FORMAT,"%d %s",[]) 523 AC_DEFINE_UNQUOTED(RSS_FORMAT,"%d %s",[])
525 echo " ps syntax... $PATH_TO_PS -Ao 'state command vsz rss'" 524 echo " ps syntax... $PATH_TO_PS -Ao 'state command vsz rss'"
526dnl BSD-like mode in RH 6.1 525dnl BSD-like mode in RH 6.1
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 526elif [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]
528then 527then
529 AC_DEFINE(USE_PS_VARS,1,[Define if we use custom variable list for sscanf]) 528 AC_DEFINE(USE_PS_VARS,1,[Define if we use custom variable list for sscanf])
530 AC_DEFINE_UNQUOTED(PS_VARLIST,[procstat,&procuid,&procppid,procprog,&pos],[]) 529 AC_DEFINE_UNQUOTED(PS_VARLIST,[procstat,&procuid,&procppid,procprog,&pos],[])
@@ -538,7 +537,7 @@ then
538 AC_DEFINE_UNQUOTED(RSS_FORMAT,"%d %s",[]) 537 AC_DEFINE_UNQUOTED(RSS_FORMAT,"%d %s",[])
539 echo " ps syntax... $PATH_TO_PS -waxco 'state comm vsz rss'" 538 echo " ps syntax... $PATH_TO_PS -waxco 'state comm vsz rss'"
540dnl IRIX 53 539dnl IRIX 53
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 540elif [ps -el 2>/dev/null | egrep -i "^ *F +S +UID +PID +PPID +C +PRI +NI +P +SZ +RSS +WCHAN +TTY +TIME +[RGSCOMDNA]+" >/dev/null]
542then 541then
543 AC_DEFINE(USE_PS_VARS,1,[Define if we use custom variable list for sscanf]) 542 AC_DEFINE(USE_PS_VARS,1,[Define if we use custom variable list for sscanf])
544 AC_DEFINE_UNQUOTED(PS_VARLIST,[procstat,&procuid,&procppid,&pos,procprog],[]) 543 AC_DEFINE_UNQUOTED(PS_VARLIST,[procstat,&procuid,&procppid,&pos,procprog],[])
@@ -550,7 +549,7 @@ then
550 AC_DEFINE_UNQUOTED(RSS_FORMAT,"%*s %*s %*s %*s %*s %*s %*s %*s %*s %*s %d",[]) 549 AC_DEFINE_UNQUOTED(RSS_FORMAT,"%*s %*s %*s %*s %*s %*s %*s %*s %*s %*s %d",[])
551 echo " ps syntax... $PATH_TO_PS -el" 550 echo " ps syntax... $PATH_TO_PS -el"
552dnl IRIX 63 551dnl IRIX 63
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 552elif [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]
554then 553then
555 AC_DEFINE(USE_PS_VARS,1,[Define if we use custom variable list for sscanf]) 554 AC_DEFINE(USE_PS_VARS,1,[Define if we use custom variable list for sscanf])
556 AC_DEFINE_UNQUOTED(PS_VARLIST,[procstat,&procuid,&procppid,&pos,procprog],[]) 555 AC_DEFINE_UNQUOTED(PS_VARLIST,[procstat,&procuid,&procppid,&pos,procprog],[])
@@ -564,7 +563,7 @@ then
564dnl SunOS 4.1.3: 563dnl SunOS 4.1.3:
565dnl F UID PID PPID CP PRI NI SZ RSS WCHAN STAT TT TIME COMMAND 564dnl F UID PID PPID CP PRI NI SZ RSS WCHAN STAT TT TIME COMMAND
566dnl 565dnl
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 566elif [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]
568then 567then
569 AC_DEFINE(USE_PS_VARS,1,[Define if we use custom variable list for sscanf]) 568 AC_DEFINE(USE_PS_VARS,1,[Define if we use custom variable list for sscanf])
570 AC_DEFINE_UNQUOTED(PS_RAW_COMMAND,"$PATH_TO_PS laxnwww",[]) 569 AC_DEFINE_UNQUOTED(PS_RAW_COMMAND,"$PATH_TO_PS laxnwww",[])
@@ -581,7 +580,7 @@ dnl Debian Linux / procps v1.2.9:
581dnl FLAGS UID PID PPID PRI NI SIZE RSS WCHAN STA TTY TIME COMMAND 580dnl FLAGS UID PID PPID PRI NI SIZE RSS WCHAN STA TTY TIME COMMAND
582dnl 100 0 1 0 0 0 776 76 c0131c8c S ffff 0:11 init [2] 581dnl 100 0 1 0 0 0 776 76 c0131c8c S ffff 0:11 init [2]
583dnl 582dnl
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 583elif [ps laxnwww 2>/dev/null | egrep -i "^ *F(LAGS)? +UID +PID +PPID +PRI +NI +(VSZ)|(SIZE) +RSS +WCHAN +STAT? TTY +TIME +COMMAND" >/dev/null]
585then 584then
586 AC_DEFINE(USE_PS_VARS,1,[Define if we use custom variable list for sscanf]) 585 AC_DEFINE(USE_PS_VARS,1,[Define if we use custom variable list for sscanf])
587 AC_DEFINE_UNQUOTED(PS_RAW_COMMAND,"$PATH_TO_PS laxnwww",[]) 586 AC_DEFINE_UNQUOTED(PS_RAW_COMMAND,"$PATH_TO_PS laxnwww",[])
@@ -598,7 +597,7 @@ dnl
598dnl AIX 4.1: 597dnl AIX 4.1:
599dnl F S UID PID PPID C PRI NI ADDR SZ RSS WCHAN TTY TIME CMD 598dnl F S UID PID PPID C PRI NI ADDR SZ RSS WCHAN TTY TIME CMD
600dnl 303 A 0 0 0 120 16 -- 1c07 20 24 - 0:45 swapper 599dnl 303 A 0 0 0 120 16 -- 1c07 20 24 - 0:45 swapper
601elif ps -el 2>/dev/null | egrep -i "^ *F +S +UID +PID +PPID +C +PRI +NI +ADDR +SZ +WCHAN +TTY +TIME +[RGSCOMDNA]+" >/dev/null 600elif [ps -el 2>/dev/null | egrep -i "^ *F +S +UID +PID +PPID +C +PRI +NI +ADDR +SZ +WCHAN +TTY +TIME +[RGSCOMDNA]+" >/dev/null]
602then 601then
603 AC_DEFINE(USE_PS_VARS,1,[Define if we use custom variable list for sscanf]) 602 AC_DEFINE(USE_PS_VARS,1,[Define if we use custom variable list for sscanf])
604 AC_DEFINE_UNQUOTED(PS_VARLIST,[procstat,&procuid,&procppid,&pos,procprog],[]) 603 AC_DEFINE_UNQUOTED(PS_VARLIST,[procstat,&procuid,&procppid,&pos,procprog],[])
@@ -610,7 +609,7 @@ then
610 AC_DEFINE_UNQUOTED(RSS_FORMAT,"%*s %*s %*s %*s %*s %*s %*s %*s %*s %d",[]) 609 AC_DEFINE_UNQUOTED(RSS_FORMAT,"%*s %*s %*s %*s %*s %*s %*s %*s %*s %d",[])
611 echo " ps syntax... $PATH_TO_PS -el" 610 echo " ps syntax... $PATH_TO_PS -el"
612dnl AIX? 611dnl AIX?
613elif ps glaxen 2>/dev/null | egrep -i "^ *F +UID +PID +PPID +PRI +NI +VSZ +RSS +WCHAN +STAT +TTY +TIME +COMMAND" >/dev/null 612elif [ps glaxen 2>/dev/null | egrep -i "^ *F +UID +PID +PPID +PRI +NI +VSZ +RSS +WCHAN +STAT +TTY +TIME +COMMAND" >/dev/null]
614then 613then
615 AC_DEFINE(USE_PS_VARS,1,[Define if we use custom variable list for sscanf]) 614 AC_DEFINE(USE_PS_VARS,1,[Define if we use custom variable list for sscanf])
616 AC_DEFINE_UNQUOTED(PS_VARLIST,[&procuid,&procppid,procstat,&pos,procprog],[]) 615 AC_DEFINE_UNQUOTED(PS_VARLIST,[&procuid,&procppid,procstat,&pos,procprog],[])