![]() |
Icinga-core 1.4.0
next gen monitoring
|
00001 /* include/config.h. Generated from config.h.in by configure. */ 00002 /************************************************************************ 00003 * 00004 * Icinga Config Header File 00005 * 00006 * Copyright (c) 1999-2009 Ethan Galstad (egalstad@nagios.org) 00007 * Copyright (c) 2009-2011 Nagios Core Development Team and Community Contributors 00008 * Copyright (c) 2009-2011 Icinga Development Team (http://www.icinga.org) 00009 * 00010 * This program is free software; you can redistribute it and/or modify 00011 * it under the terms of the GNU General Public License version 2 as 00012 * published by the Free Software Foundation. 00013 * 00014 * This program is distributed in the hope that it will be useful, 00015 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00016 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00017 * GNU General Public License for more details. 00018 * 00019 * You should have received a copy of the GNU General Public License 00020 * along with this program; if not, write to the Free Software 00021 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00022 ************************************************************************/ 00023 00024 00025 /***** ICINGA STUFF *****/ 00026 00027 #define DEFAULT_ICINGA_USER "icinga" 00028 #define DEFAULT_ICINGA_GROUP "icinga" 00029 00030 /* stop gcc from bitching about implicit asprintf declarations */ 00031 #define _GNU_SOURCE 1 00032 00033 /* check if gcc3 */ 00034 #if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 2) 00035 /* #undef GCCTOOOLD */ 00036 #else 00037 #define GCCTOOOLD 1 00038 #endif 00039 00040 /* Event broker integration */ 00041 #define USE_EVENT_BROKER 00042 00043 /* Embed a PERL interpreter into Nagios with optional cache for compiled code (contributed by Stephen Davies) */ 00044 /* #undef EMBEDDEDPERL */ 00045 /* #undef THREADEDPERL */ 00046 /* 0 = cache, 1 = do not cache */ 00047 #define DO_CLEAN "1" 00048 00049 /* commands used by CGIs */ 00050 #define TRACEROUTE_COMMAND "" 00051 /* #undef PING_COMMAND */ 00052 /* #undef PING_PACKETS_FIRST */ 00053 00054 /* Debugging options */ 00055 /* function entry and exit */ 00056 /* #undef DEBUG0 */ 00057 /* general info messages */ 00058 /* #undef DEBUG1 */ 00059 /* warning messages */ 00060 /* #undef DEBUG2 */ 00061 /* service and host checks, other events */ 00062 /* #undef DEBUG3 */ 00063 /* service and host notifications */ 00064 /* #undef DEBUG4 */ 00065 /* SQL queries (defunct) */ 00066 /* #undef DEBUG5 */ 00067 00068 /* I/O implementations */ 00069 #define USE_XSDDEFAULT 00070 #define USE_XCDDEFAULT 00071 #define USE_XRDDEFAULT 00072 #define USE_XODTEMPLATE 00073 #define USE_XPDDEFAULT 00074 #define USE_XDDDEFAULT 00075 00076 /***** CGI COMPILE OPTIONS *****/ 00077 /* should we compile and use the statusmap CGI? */ 00078 #define USE_STATUSMAP 00079 /* should we compile and use the statuswrl CGI? */ 00080 #define USE_STATUSWRL 00081 /* should we compile and use the trends CGI? */ 00082 #define USE_TRENDS 00083 /* should we compile and use the histogram CGI? */ 00084 #define USE_HISTOGRAM 00085 00086 00087 /***** FUNCTION DEFINITIONS *****/ 00088 00089 #define HAVE_SETENV 1 00090 #define HAVE_UNSETENV 1 00091 /* #undef HAVE_SOCKET */ 00092 #define HAVE_STRDUP 1 00093 #define HAVE_STRSTR 1 00094 #define HAVE_STRTOUL 1 00095 #define HAVE_INITGROUPS 1 00096 /* #undef HAVE_GETLOADAVG */ 00097 #define HAVE_GDIMAGECREATETRUECOLOR 1 00098 00099 00100 00101 /***** ASPRINTF() AND FRIENDS *****/ 00102 00103 /* #undef HAVE_VSNPRINTF */ 00104 /* #undef HAVE_SNPRINTF */ 00105 /* #undef HAVE_ASPRINTF */ 00106 /* #undef HAVE_VASPRINTF */ 00107 #define HAVE_C99_VSNPRINTF 1 00108 #define HAVE_VA_COPY 1 00109 /* #undef HAVE___VA_COPY */ 00110 00111 00112 00113 /***** MISC DEFINITIONS *****/ 00114 00115 #define USE_NANOSLEEP 00116 #define STDC_HEADERS 1 00117 #define HAVE_TM_ZONE 1 00118 /* #undef HAVE_TZNAME */ 00119 /* #undef USE_PROC */ 00120 #define SOCKET_SIZE_TYPE size_t 00121 #define GETGROUPS_T gid_t 00122 #define RETSIGTYPE void 00123 00124 00125 00126 /***** HEADER FILES *****/ 00127 00128 #include <stdio.h> 00129 #include <stdlib.h> 00130 00131 /* needed for the time_t structures we use later... */ 00132 /* this include must come before sys/resource.h or we can have problems on some OSes */ 00133 #define TIME_WITH_SYS_TIME 1 00134 #define HAVE_SYS_TIME_H 1 00135 #if TIME_WITH_SYS_TIME 00136 #include <sys/time.h> 00137 #include <time.h> 00138 #else 00139 #if HAVE_SYS_TIME_H 00140 #include <sys/time.h> 00141 #else 00142 #include <time.h> 00143 #endif 00144 #endif 00145 00146 #define HAVE_SYS_RESOURCE_H 1 00147 #ifdef HAVE_SYS_RESOURCE_H 00148 #include <sys/resource.h> 00149 #endif 00150 00151 #define HAVE_LIMITS_H 1 00152 #ifdef HAVE_LIMITS_H 00153 #include <limits.h> 00154 #endif 00155 00156 #define HAVE_PWD_H 1 00157 #ifdef HAVE_PWD_H 00158 #include <pwd.h> 00159 #endif 00160 00161 #define HAVE_GRP_H 1 00162 #ifdef HAVE_GRP_H 00163 #include <grp.h> 00164 #endif 00165 00166 #define HAVE_STRINGS_H 1 00167 #ifdef HAVE_STRINGS_H 00168 #include <strings.h> 00169 #endif 00170 00171 #define HAVE_STRING_H 1 00172 #ifdef HAVE_STRINGS_H 00173 #include <string.h> 00174 #endif 00175 00176 #define HAVE_UNISTD_H 1 00177 #ifdef HAVE_UNISTD_H 00178 #include <unistd.h> 00179 #endif 00180 00181 #define HAVE_SYSLOG_H 1 00182 #ifdef HAVE_SYSLOG_H 00183 #include <syslog.h> 00184 #endif 00185 00186 #define HAVE_SIGNAL_H 1 00187 #ifdef HAVE_SIGNAL_H 00188 #include <signal.h> 00189 #endif 00190 00191 #define HAVE_SYS_STAT_H 1 00192 #ifdef HAVE_SYS_STAT_H 00193 #include <sys/stat.h> 00194 #endif 00195 00196 #define HAVE_SYS_MMAN_H 1 00197 #ifdef HAVE_SYS_MMAN_H 00198 #include <sys/mman.h> 00199 #endif 00200 00201 #define HAVE_FCNTL_H 1 00202 #ifdef HAVE_FCNTL_H 00203 #include <fcntl.h> 00204 #endif 00205 00206 #define HAVE_STDARG_H 1 00207 #ifdef HAVE_STDARG_H 00208 #include <stdarg.h> 00209 #endif 00210 00211 #define HAVE_SYS_TYPES_H 1 00212 #ifdef HAVE_SYS_TYPES_H 00213 #include <sys/types.h> 00214 #endif 00215 00216 #define HAVE_SYS_WAIT_H 1 00217 #ifdef HAVE_SYS_WAIT_H 00218 #include <sys/wait.h> 00219 #endif 00220 00221 #define HAVE_ERRNO_H 1 00222 #ifdef HAVE_ERRNO_H 00223 #include <errno.h> 00224 #endif 00225 00226 #define HAVE_SYS_TIMEB_H 1 00227 #if HAVE_SYS_TIMEB_H 00228 #include <sys/timeb.h> 00229 #endif 00230 00231 #define HAVE_SYS_IPC_H 1 00232 #ifdef HAVE_SYS_IPC_H 00233 #include <sys/ipc.h> 00234 #endif 00235 00236 #define HAVE_SYS_MSG_H 1 00237 #ifdef HAVE_SYS_MSG_H 00238 #include <sys/msg.h> 00239 #endif 00240 00241 #define HAVE_MATH_H 1 00242 #ifdef HAVE_MATH_H 00243 #include <math.h> 00244 #endif 00245 00246 #define HAVE_CTYPE_H 1 00247 #ifdef HAVE_CTYPE_H 00248 #include <ctype.h> 00249 #endif 00250 00251 #define HAVE_DIRENT_H 1 00252 #ifdef HAVE_DIRENT_H 00253 #include <dirent.h> 00254 #endif 00255 00256 #define HAVE_PTHREAD_H 1 00257 #ifdef HAVE_PTHREAD_H 00258 #include <pthread.h> 00259 #endif 00260 00261 #define HAVE_REGEX_H 1 00262 #ifdef HAVE_REGEX_H 00263 #include <regex.h> 00264 00265 #define HAVE_SYS_SOCKET_H 1 00266 #ifdef HAVE_SYS_SOCKET_H 00267 #include <sys/socket.h> 00268 #endif 00269 00270 /* #undef HAVE_SOCKET */ 00271 #ifdef HAVE_SOCKET_H 00272 #include <socket.h> 00273 #endif 00274 00275 #define HAVE_NETINET_IN_H 1 00276 #ifdef HAVE_NETINET_IN_H 00277 #include <netinet/in.h> 00278 #endif 00279 00280 #define HAVE_ARPA_INET_H 1 00281 #ifdef HAVE_ARPA_INET_H 00282 #include <arpa/inet.h> 00283 #endif 00284 00285 #define HAVE_NETDB_H 1 00286 #ifdef HAVE_NETDB_H 00287 #include <netdb.h> 00288 #endif 00289 00290 #define HAVE_LIBGEN_H 1 00291 #ifdef HAVE_LIBGEN_H 00292 #include <libgen.h> 00293 #endif 00294 00295 #define HAVE_SYS_UN_H 1 00296 #ifdef HAVE_SYS_UN_H 00297 #include <sys/un.h> 00298 #endif 00299 00300 #define HAVE_SYS_POLL_H 1 00301 #ifdef HAVE_SYS_POLL_H 00302 #include <sys/poll.h> 00303 #endif 00304 00305 #define HAVE_GETOPT_H 1 00306 #ifdef HAVE_GETOPT_H 00307 #include <getopt.h> 00308 #endif 00309 00310 /* #undef HAVE_LINUX_MODULE_H */ 00311 #ifdef HAVE_LINUX_MODULE_H 00312 #include <linux/module.h> 00313 #endif 00314 00315 /* #undef HAVE_SSL */ 00316 #ifdef HAVE_SSL 00317 #include <rsa.h> 00318 #include <crypto.h> 00319 #include <dh.h> 00320 #include <pem.h> 00321 #include <ssl.h> 00322 #include <err.h> 00323 #include <rand.h> 00324 #endif 00325 00326 00327 /* configure script should allow user to override ltdl choice, but this will do for now... */ 00328 /* #undef USE_LTDL */ 00329 #define HAVE_LTDL_H 00330 #ifdef HAVE_LTDL_H 00331 #define USE_LTDL 00332 #endif 00333 00334 #ifdef USE_LTDL 00335 #include <ltdl.h> 00336 #else 00337 /* #undef HAVE_DLFCN_H */ 00338 #ifdef HAVE_DLFCN_H 00339 #include <dlfcn.h> 00340 #endif 00341 #endif 00342 00343 00344 /* moved to end to prevent AIX compiler warnings */ 00345 #ifndef RTLD_GLOBAL 00346 #define RTLD_GLOBAL 0 00347 #endif 00348 00349 #ifndef RTLD_NOW 00350 #define RTLD_NOW 0 00351 #endif 00352 00353 00354 /***** MARO DEFINITIONS *****/ 00355 00356 /* this needs to come after all system include files, so we don't accidentally attempt to redefine it */ 00357 #ifndef WEXITSTATUS 00358 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) 00359 #endif 00360 #ifndef WIFEXITED 00361 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 00362 #endif 00363 00364 /* define to use state based escalation ranges */ 00365 /* #undef USE_ST_BASED_ESCAL_RANGES */ 00366 00367 /* Define to 1 if you have the <dbi/dbi.h> header file. */ 00368 #define HAVE_DBI_DBI_H "1" 00369 #define USE_LIBDBI 1 00370 00371 /* define to 1 if you have the libpq-fe.h header file. */ 00372 /* #undef HAVE_LIBPQ_FE_H */ 00373 /* #undef USE_PGSQL */ 00374 00375 /* oracle */ 00376 /* #undef USE_ORACLE */ 00377 /* #undef HAVE_ORACLE */ 00378 #ifdef USE_ORACLE 00379 #define HAVE_ORACLE 1 00380 #endif 00381 00382 #endif