From ec339df43bf4dce752bb5dd401441a96848dabd7 Mon Sep 17 00:00:00 2001 From: Will Andrews Date: Wed, 12 Jul 2000 18:57:26 +0000 Subject: Add NetSaint-plugins 1.2.8-4, a plugin package for Netsaint. Patches submitted by: Jim Sloan , to whom I am extremely grateful! Thanks! --- net-mgmt/nagios-plugins/files/patch-aa | 238 +++++++++++++++++++++++++++++++++ 1 file changed, 238 insertions(+) create mode 100644 net-mgmt/nagios-plugins/files/patch-aa (limited to 'net-mgmt/nagios-plugins/files/patch-aa') diff --git a/net-mgmt/nagios-plugins/files/patch-aa b/net-mgmt/nagios-plugins/files/patch-aa new file mode 100644 index 000000000000..a4e5f9a7fed9 --- /dev/null +++ b/net-mgmt/nagios-plugins/files/patch-aa @@ -0,0 +1,238 @@ +--- configure Mon Jun 26 11:49:40 2000 ++++ configure.new Wed Jul 12 12:17:48 2000 +@@ -11,7 +11,7 @@ + ac_help= + ac_default_prefix=/usr/local + # Any additions from configure.in: +-ac_default_prefix=/usr/local/netsaint ++#ac_default_prefix=/usr/local/netsaint + ac_help="$ac_help + --with-cgiurl= sets URL for cgi programs" + ac_help="$ac_help +@@ -47,12 +47,12 @@ + x_includes=NONE + x_libraries=NONE + bindir='${exec_prefix}/bin' +-sbindir='${exec_prefix}/sbin' +-libexecdir='${exec_prefix}/libexec' +-datadir='${prefix}/share' +-sysconfdir='${prefix}/etc' ++sbindir='${exec_prefix}/share/netsaint/sbin' ++libexecdir='${exec_prefix}/libexec/netsaint' ++datadir='${prefix}/share/netsaint' ++sysconfdir='${prefix}/etc/netsaint' + sharedstatedir='${prefix}/com' +-localstatedir='${prefix}/var' ++localstatedir='${prefix}/var/netsaint' + libdir='${exec_prefix}/lib' + includedir='${prefix}/include' + oldincludedir='/usr/include' +@@ -3116,15 +3116,15 @@ + EOF + + echo " ps syntax... $PATH_TO_PS -eo 's comm vsz rss user ppid args'" +-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 ++elif ps -axo '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 + then + cat >> confdefs.h <> confdefs.h <> confdefs.h <> confdefs.h <> confdefs.h <> confdefs.h <> confdefs.h </dev/null | egrep -i "^S[TAUES]* +C[OMDNA]+ +V[SIZE]+ +RSS +UID +USER +PPID +[RGSCOMDNA]+" >/dev/null ++ echo " ps syntax... $PATH_TO_PS -axo 's comm vsz rss'" ++elif ps -axo '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 + then + cat >> confdefs.h <> confdefs.h <> confdefs.h <> confdefs.h <> confdefs.h <> confdefs.h <> confdefs.h </dev/null | egrep -i "^S[TAUES]* +C[OMDNA]+ +V[SIZE]+ +RSS +UID +USER +PPID +[RGSCOMDNA]+" >/dev/null ++ echo " ps syntax... $PATH_TO_PS -axo 'status comm vsz rss'" ++elif ps -axo '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 + then + cat >> confdefs.h <> confdefs.h <> confdefs.h <> confdefs.h <> confdefs.h <> confdefs.h <> confdefs.h </dev/null | egrep -i "^S[TAUES]* +C[OMDNA]+ +V[SIZE]+ +RSS +UID +USER +PPID +[RGSCOMDNA]+" >/dev/null + then + cat >> confdefs.h <> confdefs.h <> confdefs.h </dev/null | egrep -i "^STAT +COMMAND +VSZ +RSS +UID +USER +PPID" >/dev/null ++ echo " ps syntax... $PATH_TO_PS -axo 'state command vsz rss'" ++elif ps waxo 'state command vsz rss uid user ppid' 2>/dev/null | egrep -i "^STAT +COMMAND +VSZ +RSS +UID +USER +PPID" >/dev/null + then + cat >> confdefs.h <> confdefs.h <> confdefs.h <> confdefs.h <> confdefs.h <> confdefs.h <> confdefs.h </dev/null | egrep -i "^S +COMMAND +VSZ +RSS +UID +USER +PPID +[RGSCOMDNA]+" >/dev/null + then + cat >> confdefs.h </dev/null | egrep -i "^ *F +S +UID +PID +PPID +C +PRI +NI +P +SZ +RSS +WCHAN +TTY +TIME +[RGSCOMDNA]+" >/dev/null + then + cat >> confdefs.h < -s 56 -c " +-elif ping -n -s 56 -c 1 127.0.0.1 2>/dev/null | egrep -i "^round-trip" >/dev/null +-then +- cat >> confdefs.h <> confdefs.h < " + elif ping -n -c 1 127.0.0.1 2>/dev/null | egrep -i "^round-trip" >/dev/null + then + cat >> confdefs.h <