[Nagiosplug-checkins] CVS: nagiosplug configure.in,1.30,1.31
Ton Voon
tonvoon at users.sourceforge.net
Mon Jan 27 16:56:01 CET 2003
Update of /cvsroot/nagiosplug/nagiosplug
In directory sc8-pr-cvs1:/tmp/cvs-serv32439
Modified Files:
configure.in
Log Message:
ps support for Darwin / MacOSX
Index: configure.in
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/configure.in,v
retrieving revision 1.30
retrieving revision 1.31
diff -C2 -r1.30 -r1.31
*** configure.in 16 Jan 2003 05:22:50 -0000 1.30
--- configure.in 28 Jan 2003 00:32:23 -0000 1.31
***************
*** 634,637 ****
--- 634,654 ----
AC_DEFINE_UNQUOTED(RSS_FORMAT,"%*s %*s %*s %*s %*s %*s %*s %d",[])
echo " ps syntax... $PATH_TO_PS glaxen"
+ dnl MacOSX / Darwin
+ dnl TODO: MacOSX has commands with spaces which will cause problems to PS_FORMAT
+ dnl STAT VSZ RSS UID USER PPID UCOMM COMMAND
+ dnl Ss 1308 272 0 root 0 init /sbin/init
+ elif [ps waxo 'state vsz rss uid user ppid ucomm command' 2>/dev/null | egrep -i "^STAT +VSZ +RSS +UID +USER +PPID +UCOMM +COMMAND" >/dev/null]
+ then
+ AC_DEFINE(USE_PS_VARS,1,[Define if we use custom variable list for sscanf])
+ AC_DEFINE_UNQUOTED(PS_VARLIST,[procstat,&procuid,&procppid,procprog,&pos],[])
+ AC_DEFINE_UNQUOTED(PS_RAW_COMMAND,"$PATH_TO_PS waxo 'state uid ppid command'",[])
+ EXTRAS="$EXTRAS check_nagios"
+ AC_DEFINE_UNQUOTED(PS_COMMAND,"$PATH_TO_PS waxo 'state uid ppid ucomm command'",[])
+ AC_DEFINE_UNQUOTED(PS_FORMAT,"%s %d %d %s %n",[Format string for scanning ps output in check_procs])
+ AC_DEFINE_UNQUOTED(VSZ_COMMAND,"$PATH_TO_PS waxco 'vsz command'",[])
+ AC_DEFINE_UNQUOTED(VSZ_FORMAT,"%d %s",[])
+ AC_DEFINE_UNQUOTED(RSS_COMMAND,"$PATH_TO_PS waxco 'rss command'",[])
+ AC_DEFINE_UNQUOTED(RSS_FORMAT,"%d %s",[])
+ echo " ps syntax... $PATH_TO_PS waxo 'state vsz rss command'"
else
echo "** Unable to find usable ps syntax"
More information about the Commits
mailing list