diff options
author | Karl DeBisschop <kdebisschop@users.sourceforge.net> | 2002-11-22 02:33:43 +0000 |
---|---|---|
committer | Karl DeBisschop <kdebisschop@users.sourceforge.net> | 2002-11-22 02:33:43 +0000 |
commit | 2f52875c5fa138dafba67b279a9ae52c539ada44 (patch) | |
tree | 7dab0a262153ffefce7d952d49d96fe2d121e454 /configure.in | |
parent | 61bf15c0f6a584a1503752b89cb13c44508b6922 (diff) | |
download | monitoring-plugins-2f52875c5fa138dafba67b279a9ae52c539ada44.tar.gz |
get long args output to work on linux check_procs, actually works this time (needs OpenBSD testing)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@223 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 43 |
1 files changed, 21 insertions, 22 deletions
diff --git a/configure.in b/configure.in index e1af2da2..e73cc26e 100644 --- a/configure.in +++ b/configure.in | |||
@@ -402,21 +402,20 @@ 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 -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 | 405 | if [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] |
406 | then | 406 | then |
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'" |
418 | dnl OpenBSD (needs to come early because -exo appears to work, but does not give all procs) | 418 | 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] |
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 | ||
420 | then | 419 | then |
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'" |
432 | dnl AIX 4.3.3 - needs verification. | 431 | dnl AIX 4.3.3 - needs verification. |
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 | 432 | 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] |
434 | then | 433 | then |
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'" |
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 | 445 | 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] |
447 | then | 446 | then |
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'" |
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 | 458 | 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] |
460 | then | 459 | then |
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'" |
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 | 471 | 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] |
473 | then | 472 | then |
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'" |
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 | 484 | 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] |
486 | then | 485 | then |
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'" |
498 | dnl wonder who takes state instead of stat | 497 | dnl wonder who takes state instead of stat |
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 | 498 | 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] |
500 | then | 499 | then |
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'" |
512 | dnl FreeBSD | 511 | dnl FreeBSD |
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 | 512 | elif [ps waxco 'state command vsz rss uid user ppid' 2>/dev/null | egrep -i "^STAT +COMMAND +VSZ +RSS +UID +USER +PPID" >/dev/null] |
514 | then | 513 | then |
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'" |
526 | dnl BSD-like mode in RH 6.1 | 525 | dnl BSD-like mode in RH 6.1 |
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 | 526 | 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] |
528 | then | 527 | then |
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'" |
540 | dnl IRIX 53 | 539 | dnl IRIX 53 |
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 | 540 | 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] |
542 | then | 541 | then |
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" |
552 | dnl IRIX 63 | 551 | dnl IRIX 63 |
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 | 552 | 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] |
554 | then | 553 | then |
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 | |||
564 | dnl SunOS 4.1.3: | 563 | dnl SunOS 4.1.3: |
565 | dnl F UID PID PPID CP PRI NI SZ RSS WCHAN STAT TT TIME COMMAND | 564 | dnl F UID PID PPID CP PRI NI SZ RSS WCHAN STAT TT TIME COMMAND |
566 | dnl | 565 | dnl |
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 | 566 | 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] |
568 | then | 567 | then |
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: | |||
581 | dnl FLAGS UID PID PPID PRI NI SIZE RSS WCHAN STA TTY TIME COMMAND | 580 | dnl FLAGS UID PID PPID PRI NI SIZE RSS WCHAN STA TTY TIME COMMAND |
582 | dnl 100 0 1 0 0 0 776 76 c0131c8c S ffff 0:11 init [2] | 581 | dnl 100 0 1 0 0 0 776 76 c0131c8c S ffff 0:11 init [2] |
583 | dnl | 582 | dnl |
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 | 583 | 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] |
585 | then | 584 | then |
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 | |||
598 | dnl AIX 4.1: | 597 | dnl AIX 4.1: |
599 | dnl F S UID PID PPID C PRI NI ADDR SZ RSS WCHAN TTY TIME CMD | 598 | dnl F S UID PID PPID C PRI NI ADDR SZ RSS WCHAN TTY TIME CMD |
600 | dnl 303 A 0 0 0 120 16 -- 1c07 20 24 - 0:45 swapper | 599 | dnl 303 A 0 0 0 120 16 -- 1c07 20 24 - 0:45 swapper |
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 | 600 | elif [ps -el 2>/dev/null | egrep -i "^ *F +S +UID +PID +PPID +C +PRI +NI +ADDR +SZ +WCHAN +TTY +TIME +[RGSCOMDNA]+" >/dev/null] |
602 | then | 601 | then |
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" |
612 | dnl AIX? | 611 | dnl AIX? |
613 | elif ps glaxen 2>/dev/null | egrep -i "^ *F +UID +PID +PPID +PRI +NI +VSZ +RSS +WCHAN +STAT +TTY +TIME +COMMAND" >/dev/null | 612 | elif [ps glaxen 2>/dev/null | egrep -i "^ *F +UID +PID +PPID +PRI +NI +VSZ +RSS +WCHAN +STAT +TTY +TIME +COMMAND" >/dev/null] |
614 | then | 613 | then |
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],[]) |