mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-03-30 06:14:50 -04:00
Support for FreeBSD 5.2.1 and 5.3 in check_procs
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1037 f882894a-f735-0410-b71e-b25c423dba1c
This commit is contained in:
parent
df5d53fb5d
commit
e2f3ac72cf
1 changed files with 2 additions and 1 deletions
|
|
@ -646,9 +646,10 @@ AC_PATH_PROG(PATH_TO_PS,ps)
|
|||
|
||||
AC_MSG_CHECKING(for ps syntax)
|
||||
dnl For OpenBSD 3.2 & 3.3. Must come before ps -weo
|
||||
dnl Should also work for FreeBSD 5.2.1 and 5.3
|
||||
dnl STAT UCOMM VSZ RSS USER PPID COMMAND
|
||||
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
|
||||
egrep -i ["^ *STAT +[UCOMAND]+ +VSZ +RSS +USER +UID +PPID +COMMAND"] > /dev/null
|
||||
then
|
||||
ac_cv_ps_varlist="[procstat,&procuid,&procppid,&procvsz,&procrss,&procpcpu,procprog,&pos]"
|
||||
ac_cv_ps_command="$PATH_TO_PS -axwo 'stat uid ppid vsz rss pcpu comm args'"
|
||||
|
|
|
|||
Loading…
Reference in a new issue