Lines 1-35
Link Here
|
1 |
--- configure.in.orig Fri Jul 11 08:12:23 2003 |
1 |
--- configure.in.orig Mon Dec 1 03:55:32 2003 |
2 |
+++ configure.in Sun Apr 4 01:03:13 2004 |
2 |
+++ configure.in Sat Nov 27 13:52:10 2004 |
3 |
@@ -12,7 +12,7 @@ |
3 |
@@ -10,7 +10,7 @@ |
4 |
AM_INIT_AUTOMAKE(nagios-plugins,${PACKAGE_VERSION}) |
4 |
RELEASE=1 |
5 |
AM_CONFIG_HEADER(plugins/config.h plugins/common.h plugins/version.h plugins/netutils.h plugins/utils.h plugins/popen.h) |
5 |
AC_SUBST(RELEASE) |
6 |
|
6 |
|
7 |
-AC_PREFIX_DEFAULT(/usr/local/nagios) |
7 |
-AC_PREFIX_DEFAULT(/usr/local/nagios) |
8 |
+dnl AC_PREFIX_DEFAULT(/usr/local/nagios) |
8 |
+dnl AC_PREFIX_DEFAULT(/usr/local/nagios) |
9 |
|
9 |
|
10 |
dnl Figure out how to invoke "install" and what install options to use. |
10 |
dnl Figure out how to invoke "install" and what install options to use. |
11 |
|
11 |
AC_PROG_INSTALL |
12 |
@@ -60,7 +60,6 @@ |
12 |
@@ -71,8 +71,6 @@ |
13 |
AC_ARG_WITH(nagios_group,--with-nagios-group=<group> sets group name to run nagios,nagios_grp=$withval,nagios_grp=nagios) |
13 |
with_nagios_group=nagios) |
14 |
AC_SUBST(nagios_usr) |
14 |
AC_SUBST(with_nagios_user) |
15 |
AC_SUBST(nagios_grp) |
15 |
AC_SUBST(with_nagios_group) |
16 |
-INSTALL_OPTS="-o $nagios_usr -g $nagios_grp" |
16 |
-INSTALL_OPTS="-o $with_nagios_user -g $with_nagios_group" |
17 |
AC_SUBST(INSTALL_OPTS) |
17 |
-AC_SUBST(INSTALL_OPTS) |
18 |
|
18 |
|
19 |
AC_ARG_WITH(trusted_path,--with-trusted-path=/bin:/sbin:/usr/bin:/usr/sbin sets trusted path for executables called by scripts,trusted_path=$withval,trusted_path=/bin:/sbin:/usr/bin:/usr/sbin) |
19 |
AC_ARG_WITH(trusted_path, |
20 |
@@ -143,25 +142,37 @@ |
20 |
ACX_HELP_STRING([--with-trusted-path=PATH], |
|
|
21 |
@@ -181,25 +179,32 @@ |
21 |
LIBS="$_SAVEDLIBS" |
22 |
LIBS="$_SAVEDLIBS" |
22 |
CPPFLAGS="$_SAVEDCPPFLAGS" |
23 |
CPPFLAGS="$_SAVEDCPPFLAGS" |
23 |
|
24 |
|
24 |
+AC_ARG_ENABLE(radius,--enable-radius compile check_radius) |
25 |
+AC_ARG_ENABLE(radius,--enable-radius compile check_radius) |
25 |
+if test x$enable_radius = xyes; then |
26 |
+if test x$enable_radius = xyes; then |
26 |
+dnl Check for radiusclient header file |
|
|
27 |
+_SAVEDCPPFLAGS="$CPPFLAGS" |
28 |
+CPPFLAGS="-I${LOCALBASE}/include" |
29 |
+AC_CHECK_HEADERS(radiusclient.h,RADIUSINCLUDE="-I${LOCALBASE}/include") |
30 |
+AC_SUBST(RADIUSINCLUDE) |
31 |
+CPPFLAGS="$_SAVEDCPPFLAGS $RADIUSINCLUDE" |
32 |
+ |
33 |
dnl Check for radius libraries |
27 |
dnl Check for radius libraries |
34 |
_SAVEDLIBS="$LIBS" |
28 |
_SAVEDLIBS="$LIBS" |
35 |
-AC_CHECK_LIB(radiusclient,rc_read_config) |
29 |
-AC_CHECK_LIB(radiusclient,rc_read_config) |
Lines 37-44
Link Here
|
37 |
if test "$ac_cv_lib_radiusclient_rc_read_config" = "yes"; then |
31 |
if test "$ac_cv_lib_radiusclient_rc_read_config" = "yes"; then |
38 |
EXTRAS="$EXTRAS check_radius" |
32 |
EXTRAS="$EXTRAS check_radius" |
39 |
- RADIUSLIBS="-lradiusclient" |
33 |
- RADIUSLIBS="-lradiusclient" |
40 |
+ RADIUSLIBS="-L${LOCALBASE}/lib -lradiusclient" |
34 |
+ RADIUSLIBS="-L${LOCALBASE}/lib -lradiusclient"\ |
|
|
35 |
+ RADIUSINCLUDE="-I${LOCALBASE}/include" |
41 |
AC_SUBST(RADIUSLIBS) |
36 |
AC_SUBST(RADIUSLIBS) |
|
|
37 |
+ AC_SUBST(RADIUSINCLUDE) |
42 |
else |
38 |
else |
43 |
AC_MSG_WARN([Skipping radius plugin]) |
39 |
AC_MSG_WARN([Skipping radius plugin]) |
44 |
AC_MSG_WARN([install radius libs to compile this plugin (see REQUIREMENTS).]) |
40 |
AC_MSG_WARN([install radius libs to compile this plugin (see REQUIREMENTS).]) |
Lines 60-76
Link Here
|
60 |
+ LDAPINCLUDE="-I${LOCALBASE}/include" |
56 |
+ LDAPINCLUDE="-I${LOCALBASE}/include" |
61 |
AC_SUBST(LDAPLIBS) |
57 |
AC_SUBST(LDAPLIBS) |
62 |
AC_SUBST(LDAPINCLUDE) |
58 |
AC_SUBST(LDAPINCLUDE) |
63 |
EXTRAS="$EXTRAS check_ldap" |
59 |
AC_CHECK_FUNCS(ldap_set_option) |
64 |
@@ -170,7 +181,7 @@ |
60 |
@@ -209,6 +214,7 @@ |
65 |
AC_MSG_WARN([install LDAP libs to compile this plugin (see REQUIREMENTS).]) |
61 |
AC_MSG_WARN([install LDAP libs to compile this plugin (see REQUIREMENTS).]) |
66 |
fi |
62 |
fi |
67 |
LIBS="$_SAVEDLIBS" |
63 |
LIBS="$_SAVEDLIBS" |
68 |
- |
|
|
69 |
+fi |
64 |
+fi |
70 |
|
65 |
|
|
|
66 |
|
71 |
dnl Check for mysql libraries |
67 |
dnl Check for mysql libraries |
72 |
_SAVEDLIBS="$LIBS" |
68 |
@@ -251,7 +257,7 @@ |
73 |
@@ -209,7 +220,7 @@ |
|
|
74 |
AC_MSG_WARN([Skipping mysql plugin]) |
69 |
AC_MSG_WARN([Skipping mysql plugin]) |
75 |
AC_MSG_WARN([install mysql client libs to compile this plugin (see REQUIREMENTS).]) |
70 |
AC_MSG_WARN([install mysql client libs to compile this plugin (see REQUIREMENTS).]) |
76 |
fi |
71 |
fi |
Lines 79-122
Link Here
|
79 |
LIBS="$_SAVEDLIBS" |
74 |
LIBS="$_SAVEDLIBS" |
80 |
|
75 |
|
81 |
dnl Check for OpenSSL location |
76 |
dnl Check for OpenSSL location |
82 |
@@ -418,9 +429,24 @@ |
77 |
@@ -658,7 +664,7 @@ |
83 |
fi |
78 |
egrep -i ["^STAT +COMMAND +VSZ +RSS +UID +USER +PPID"] >/dev/null |
84 |
|
|
|
85 |
AC_PATH_PROG(PATH_TO_PS,ps) |
86 |
+dnl For FreeBSD |
87 |
+dnl STAT UCOMM VSZ RSS USER PPID COMMAND |
88 |
+if ps -axwo 'stat ucomm vsz rss user uid ppid command' 2>/dev/null | egrep -i ["^ *STAT +UCOMM +VSZ +RSS +USER +UID +PPID +COMMAND"] > /dev/null |
89 |
+then |
90 |
+ AC_DEFINE(USE_PS_VARS,1,[Define if 'ps' will be parsed with sscanf]) |
91 |
+ AC_DEFINE_UNQUOTED(PS_VARLIST,[procstat,&procuid,&procppid,procprog,&pos],[Variable list for sscanf of 'ps' output]) |
92 |
+ AC_DEFINE_UNQUOTED(PS_RAW_COMMAND,"$PATH_TO_PS -axwo 'stat uid ppid command'",[Verbatim command to execute for ps in check_netsaint]) |
93 |
+ EXTRAS="$EXTRAS check_nagios" |
94 |
+ AC_DEFINE_UNQUOTED(PS_COMMAND,"$PATH_TO_PS -axwo 'stat uid ppid ucomm command'",[Verbatim command to execute for ps in check_procs]) |
95 |
+ AC_DEFINE_UNQUOTED(PS_FORMAT,"%s %d %d %s %n",[Format string for scanning ps output in check_procs]) |
96 |
+ AC_DEFINE_UNQUOTED(VSZ_COMMAND,"$PATH_TO_PS -axwo 'vsz ucomm'",[Verbatim command to execute for ps in check_vsz]) |
97 |
+ AC_DEFINE_UNQUOTED(VSZ_FORMAT,"%d %s",[Format string for scanning ps output in check_vsz]) |
98 |
+ AC_DEFINE_UNQUOTED(RSS_COMMAND,"$PATH_TO_PS -axwo 'rss ucomm'",[Verbatim command to execute for ps in check_rss]) |
99 |
+ AC_DEFINE_UNQUOTED(RSS_FORMAT,"%d %s",[Format string for scanning ps output in check_rss]) |
100 |
+ echo " ps syntax... $PATH_TO_PS -axwo 'stat uid ppid ucomm command'" |
101 |
dnl For OpenBSD 3.2 & 3.3. Must come before ps -weo |
102 |
dnl STAT UCOMM VSZ RSS USER PPID COMMAND |
103 |
-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 |
104 |
+elif 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 |
105 |
then |
79 |
then |
106 |
AC_DEFINE(USE_PS_VARS,1,[Define if 'ps' will be parsed with sscanf]) |
80 |
ac_cv_ps_varlist="[procstat,&procuid,&procppid,&procvsz,&procrss,&procpcpu,procprog,&pos]" |
107 |
AC_DEFINE_UNQUOTED(PS_VARLIST,[procstat,&procuid,&procppid,procprog,&pos],[Variable list for sscanf of 'ps' output]) |
81 |
- ac_cv_ps_command="$PATH_TO_PS waxco 'state uid ppid vsz rss pcpu command command'" |
108 |
@@ -841,6 +867,8 @@ |
82 |
+ ac_cv_ps_command="$PATH_TO_PS -axwo 'state uid ppid vsz rss pcpu command command'" |
109 |
AC_DEFINE_UNQUOTED(WHO_COMMAND,"$PATH_TO_WHO",[path and arguments for invoking 'who']) |
83 |
ac_cv_ps_format="%s %d %d %d %d %f %s %n" |
110 |
fi |
84 |
ac_cv_ps_cols=8 |
|
|
85 |
AC_MSG_RESULT([$ac_cv_ps_command]) |
86 |
@@ -1184,6 +1190,8 @@ |
87 |
AC_DEFINE_UNQUOTED(WHO_COMMAND,"$ac_cv_path_to_who", |
88 |
[path and arguments for invoking 'who']) |
111 |
|
89 |
|
112 |
+AC_ARG_ENABLE(snmp,--enable-snmp compile check_hpjd and check_snmp) |
90 |
+AC_ARG_ENABLE(snmp,--enable-snmp compile check_hpjd and check_snmp) |
113 |
+if test x$enable_snmp = xyes; then |
91 |
+if test x$enable_snmp = xyes; then |
114 |
AC_PATH_PROG(PATH_TO_SNMPGET,snmpget) |
92 |
AC_PATH_PROG(PATH_TO_SNMPGET,snmpget) |
115 |
if test -x "$PATH_TO_SNMPGET" |
93 |
if test -x "$PATH_TO_SNMPGET" |
116 |
then |
94 |
then |
117 |
@@ -863,7 +891,10 @@ |
95 |
@@ -1206,7 +1214,10 @@ |
118 |
echo "** Tried $PERL - install Net::SNMP perl module if you want to" |
96 |
else |
119 |
echo " use the perl snmp plugins" |
97 |
AC_MSG_WARN([Tried $PERL - install Net::SNMP perl module if you want to use the perl snmp plugins]) |
120 |
fi |
98 |
fi |
121 |
+fi |
99 |
+fi |
122 |
|
100 |
|
Lines 124-133
Link Here
|
124 |
+if test x$enable_qstat = xyes; then |
102 |
+if test x$enable_qstat = xyes; then |
125 |
AC_PATH_PROG(PATH_TO_QUAKESTAT,quakestat) |
103 |
AC_PATH_PROG(PATH_TO_QUAKESTAT,quakestat) |
126 |
AC_PATH_PROG(PATH_TO_QSTAT,qstat) |
104 |
AC_PATH_PROG(PATH_TO_QSTAT,qstat) |
127 |
if test -x "$PATH_TO_QUAKESTAT" |
105 |
|
128 |
@@ -877,7 +908,10 @@ |
106 |
@@ -1228,7 +1239,10 @@ |
129 |
else |
107 |
AC_DEFINE_UNQUOTED(PATH_TO_QSTAT,"$ac_cv_path_to_qstat", |
130 |
echo "** Get qstat from http://www.activesw.com/people/steve/qstat.html in order to make check_game plugin" |
108 |
[path to qstat/quakestat]) |
131 |
fi |
109 |
fi |
132 |
+fi |
110 |
+fi |
133 |
|
111 |
|
Lines 136-145
Link Here
|
136 |
AC_PATH_PROG(PATH_TO_FPING,fping) |
114 |
AC_PATH_PROG(PATH_TO_FPING,fping) |
137 |
if test -x "$PATH_TO_FPING" |
115 |
if test -x "$PATH_TO_FPING" |
138 |
then |
116 |
then |
139 |
@@ -885,6 +919,7 @@ |
117 |
@@ -1236,6 +1250,7 @@ |
140 |
EXTRAS="$EXTRAS check_fping" |
118 |
EXTRAS="$EXTRAS check_fping" |
141 |
else |
119 |
else |
142 |
echo "** Get fping from http://www.fping.com in order to make check_fping plugin" |
120 |
AC_MSG_WARN([Get fping from http://www.fping.com in order to make check_fping plugin]) |
143 |
+fi |
121 |
+fi |
144 |
fi |
122 |
fi |
145 |
|
123 |
|