diff options
author | Ton Voon <tonvoon@users.sourceforge.net> | 2003-06-04 22:37:07 +0000 |
---|---|---|
committer | Ton Voon <tonvoon@users.sourceforge.net> | 2003-06-04 22:37:07 +0000 |
commit | fbc5b7a2e24125332bf650f1c5f5391f075f3079 (patch) | |
tree | 4b6d746c0c0f0a068cb544d45804ead7a746441a /configure.in | |
parent | 021329226a10608843552b3ebbc9d6cdd7efc329 (diff) | |
download | monitoring-plugins-fbc5b7a2e24125332bf650f1c5f5391f075f3079.tar.gz |
Support for OpenBSD 3.2 & 3.3 ps (Julien Touche)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/branches/release-1.3.0@534 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/configure.in b/configure.in index b3a8ecd0..5c91256e 100644 --- a/configure.in +++ b/configure.in | |||
@@ -416,6 +416,19 @@ then | |||
416 | fi | 416 | fi |
417 | 417 | ||
418 | AC_PATH_PROG(PATH_TO_PS,ps) | 418 | AC_PATH_PROG(PATH_TO_PS,ps) |
419 | dnl For OpenBSD 3.2 & 3.3. Must come before ps -weo | ||
420 | dnl STAT UCOMM VSZ RSS USER PPID COMMAND | ||
421 | if ps -axwo 'stat comm vsz rss user uid ppid args' 2>/dev/null | egrep -i ["^ *STAT +UCOMM +VSZ +RSS +USER +UID +PPID +COMMAND"] > /dev/null | ||
422 | AC_DEFINE(USE_PS_VARS,1,[Define if 'ps' will be parsed with sscanf]) | ||
423 | AC_DEFINE_UNQUOTED(PS_VARLIST,[procstat,&procuid,&procppid,procprog,&pos],[Variable list for sscanf of 'ps' output]) | ||
424 | AC_DEFINE_UNQUOTED(PS_RAW_COMMAND,"$PATH_TO_PS -axwo 'stat uid ppid args'",[Verbatim command to execute for ps in check_netsaint]) | ||
425 | EXTRAS="$EXTRAS check_nagios" | ||
426 | AC_DEFINE_UNQUOTED(PS_COMMAND,"$PATH_TO_PS -axwo 'stat uid ppid comm args'",[Verbatim command to execute for ps in check_procs]) | ||
427 | AC_DEFINE_UNQUOTED(PS_FORMAT,"%s %d %d %s %n",[Format string for scanning ps output in check_procs]) | ||
428 | AC_DEFINE_UNQUOTED(VSZ_COMMAND,"$PATH_TO_PS -axwo 'vsz comm'",[Verbatim command to execute for ps in check_vsz]) | ||
429 | AC_DEFINE_UNQUOTED(VSZ_FORMAT,"%d %s",[Format string for scanning ps output in check_vsz]) | ||
430 | AC_DEFINE_UNQUOTED(RSS_COMMAND,"$PATH_TO_PS -axwo 'rss comm'",[Verbatim command to execute for ps in check_rss]) | ||
431 | AC_DEFINE_UNQUOTED(RSS_FORMAT,"%d %s",[Format string for scanning ps output in check_rss]) | ||
419 | dnl STAT UCOMM VSZ RSS USER UID PPID COMMAND | 432 | dnl STAT UCOMM VSZ RSS USER UID PPID COMMAND |
420 | 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 | 433 | 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 |
421 | then | 434 | then |