diff options
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 44 |
1 files changed, 29 insertions, 15 deletions
diff --git a/configure.in b/configure.in index d5b60c6..e1af2da 100644 --- a/configure.in +++ b/configure.in | |||
@@ -402,7 +402,21 @@ fi | |||
402 | AC_PATH_PROG(PATH_TO_PS,ps) | 402 | AC_PATH_PROG(PATH_TO_PS,ps) |
403 | dnl OpenBSD (needs to come early because -exo appears to work, but does not give all procs) | 403 | dnl OpenBSD (needs to come early because -exo appears to work, but does not give all procs) |
404 | dnl STAT UCOMM VSZ RSS USER UID PPID COMMAND | 404 | dnl STAT UCOMM VSZ RSS USER UID PPID COMMAND |
405 | if [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] | 405 | if 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 |
406 | then | ||
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'" | ||
418 | dnl OpenBSD (needs to come early because -exo appears to work, but does not give all procs) | ||
419 | elif 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 | ||
406 | then | 420 | then |
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'" |
418 | dnl AIX 4.3.3 - needs verification. | 432 | dnl AIX 4.3.3 - needs verification. |
419 | elif [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] | 433 | elif 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 |
420 | then | 434 | then |
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'" |
432 | elif [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] | 446 | elif 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 |
433 | then | 447 | then |
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'" |
445 | elif [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] | 459 | elif 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 |
446 | then | 460 | then |
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'" |
458 | elif [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] | 472 | elif 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 |
459 | then | 473 | then |
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'" |
471 | elif [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] | 485 | elif 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 |
472 | then | 486 | then |
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'" |
484 | dnl wonder who takes state instead of stat | 498 | dnl wonder who takes state instead of stat |
485 | elif [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] | 499 | elif 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 |
486 | then | 500 | then |
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'" |
498 | dnl FreeBSD | 512 | dnl FreeBSD |
499 | elif [ps waxco 'state command vsz rss uid user ppid' 2>/dev/null | egrep -i "^STAT +COMMAND +VSZ +RSS +UID +USER +PPID" >/dev/null] | 513 | elif ps waxco 'state command vsz rss uid user ppid' 2>/dev/null | egrep -i "^STAT +COMMAND +VSZ +RSS +UID +USER +PPID" >/dev/null |
500 | then | 514 | then |
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'" |
512 | dnl BSD-like mode in RH 6.1 | 526 | dnl BSD-like mode in RH 6.1 |
513 | elif [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] | 527 | elif 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 |
514 | then | 528 | then |
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'" |
526 | dnl IRIX 53 | 540 | dnl IRIX 53 |
527 | elif [ps -el 2>/dev/null | egrep -i "^ *F +S +UID +PID +PPID +C +PRI +NI +P +SZ +RSS +WCHAN +TTY +TIME +[RGSCOMDNA]+" >/dev/null] | 541 | elif ps -el 2>/dev/null | egrep -i "^ *F +S +UID +PID +PPID +C +PRI +NI +P +SZ +RSS +WCHAN +TTY +TIME +[RGSCOMDNA]+" >/dev/null |
528 | then | 542 | then |
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" |
538 | dnl IRIX 63 | 552 | dnl IRIX 63 |
539 | elif [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] | 553 | elif 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 |
540 | then | 554 | then |
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 | |||
550 | dnl SunOS 4.1.3: | 564 | dnl SunOS 4.1.3: |
551 | dnl F UID PID PPID CP PRI NI SZ RSS WCHAN STAT TT TIME COMMAND | 565 | dnl F UID PID PPID CP PRI NI SZ RSS WCHAN STAT TT TIME COMMAND |
552 | dnl | 566 | dnl |
553 | elif [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] | 567 | elif 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 |
554 | then | 568 | then |
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: | |||
567 | dnl FLAGS UID PID PPID PRI NI SIZE RSS WCHAN STA TTY TIME COMMAND | 581 | dnl FLAGS UID PID PPID PRI NI SIZE RSS WCHAN STA TTY TIME COMMAND |
568 | dnl 100 0 1 0 0 0 776 76 c0131c8c S ffff 0:11 init [2] | 582 | dnl 100 0 1 0 0 0 776 76 c0131c8c S ffff 0:11 init [2] |
569 | dnl | 583 | dnl |
570 | elif [ps laxnwww 2>/dev/null | egrep -i "^ *F(LAGS)? +UID +PID +PPID +PRI +NI +(VSZ)|(SIZE) +RSS +WCHAN +STAT? TTY +TIME +COMMAND" >/dev/null] | 584 | elif ps laxnwww 2>/dev/null | egrep -i "^ *F(LAGS)? +UID +PID +PPID +PRI +NI +(VSZ)|(SIZE) +RSS +WCHAN +STAT? TTY +TIME +COMMAND" >/dev/null |
571 | then | 585 | then |
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 | |||
584 | dnl AIX 4.1: | 598 | dnl AIX 4.1: |
585 | dnl F S UID PID PPID C PRI NI ADDR SZ RSS WCHAN TTY TIME CMD | 599 | dnl F S UID PID PPID C PRI NI ADDR SZ RSS WCHAN TTY TIME CMD |
586 | dnl 303 A 0 0 0 120 16 -- 1c07 20 24 - 0:45 swapper | 600 | dnl 303 A 0 0 0 120 16 -- 1c07 20 24 - 0:45 swapper |
587 | elif [ps -el 2>/dev/null | egrep -i "^ *F +S +UID +PID +PPID +C +PRI +NI +ADDR +SZ +WCHAN +TTY +TIME +[RGSCOMDNA]+" >/dev/null] | 601 | elif ps -el 2>/dev/null | egrep -i "^ *F +S +UID +PID +PPID +C +PRI +NI +ADDR +SZ +WCHAN +TTY +TIME +[RGSCOMDNA]+" >/dev/null |
588 | then | 602 | then |
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" |
598 | dnl AIX? | 612 | dnl AIX? |
599 | elif [ps glaxen 2>/dev/null | egrep -i "^ *F +UID +PID +PPID +PRI +NI +VSZ +RSS +WCHAN +STAT +TTY +TIME +COMMAND" >/dev/null] | 613 | elif ps glaxen 2>/dev/null | egrep -i "^ *F +UID +PID +PPID +PRI +NI +VSZ +RSS +WCHAN +STAT +TTY +TIME +COMMAND" >/dev/null |
600 | then | 614 | then |
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],[]) |