diff options
author | Ton Voon <tonvoon@users.sourceforge.net> | 2004-12-21 12:47:04 +0000 |
---|---|---|
committer | Ton Voon <tonvoon@users.sourceforge.net> | 2004-12-21 12:47:04 +0000 |
commit | e80519b91b0100ad47c376b6567f407629d09741 (patch) | |
tree | 2bd3df7d853da7b794b59992f87e1a17acbfdb49 | |
parent | 1abdf4092a49974dcc5b9ab3289f183ebf50ff7b (diff) | |
download | monitoring-plugins-e80519b91b0100ad47c376b6567f407629d09741.tar.gz |
Fix for FreeBSD ps command (reported by Michael Bakker)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/branches/release-1.3.0@1048 f882894a-f735-0410-b71e-b25c423dba1c
-rw-r--r-- | configure.in | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/configure.in b/configure.in index 45db95c7..045da8d9 100644 --- a/configure.in +++ b/configure.in | |||
@@ -415,8 +415,9 @@ fi | |||
415 | 415 | ||
416 | AC_PATH_PROG(PATH_TO_PS,ps) | 416 | AC_PATH_PROG(PATH_TO_PS,ps) |
417 | dnl For OpenBSD 3.2 & 3.3. Must come before ps -weo | 417 | dnl For OpenBSD 3.2 & 3.3. Must come before ps -weo |
418 | dnl Should also work for FreeBSD 5.2.1 and 5.3 | ||
418 | dnl STAT UCOMM VSZ RSS USER PPID COMMAND | 419 | dnl STAT UCOMM VSZ RSS USER PPID COMMAND |
419 | 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 | 420 | if ps -axwo 'stat comm vsz rss user uid ppid args' 2>/dev/null | egrep -i ["^ *STAT +[UCOMAND]+ +VSZ +RSS +USER +UID +PPID +COMMAND"] > /dev/null |
420 | then | 421 | then |
421 | AC_DEFINE(USE_PS_VARS,1,[Define if 'ps' will be parsed with sscanf]) | 422 | 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]) | 423 | AC_DEFINE_UNQUOTED(PS_VARLIST,[procstat,&procuid,&procppid,procprog,&pos],[Variable list for sscanf of 'ps' output]) |