/* common/config.h. Generated automatically by configure. */ /************************************************************************ * * NetSaint Config Header File * Written By: Ethan Galstad (netsaint@netsaint.org) * Last Modified: 10-15-2001 * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. ************************************************************************/ #include #include #define DEFAULT_NETSAINT_USER "netsaint" #define DEFAULT_NETSAINT_GROUP "netsaint" /* Be very verbose during program debugging... */ /* #undef DEBUG0 */ /* function entry and exit */ /* #undef DEBUG1 */ /* general info messages */ /* #undef DEBUG2 */ /* warning messages */ /* #undef DEBUG3 */ /* service and host checks, other events */ /* #undef DEBUG4 */ /* service and host notifications */ /* #undef DEBUG5 */ /* SQL queries */ /* Embed a PERL interpreter into NetSaint with optional cache for compiled code (contribued by Stephen Davies) */ /* #undef EMBEDDEDPERL */ /* #undef THREADEDPERL */ #define DO_CLEAN "1" /* 0 = cache, 1 = do not cache */ #define TRACEROUTE_COMMAND "/usr/sbin/traceroute" #define PING_COMMAND "/sbin/ping -n -c %d %s" #define PING_PACKETS_FIRST "/sbin/ping -n -c %d %s" /* Status data I/O implementations... */ #define USE_XSDDEFAULT 1 /* #undef USE_XSDDB */ /* #undef USE_XSDMYSQL */ /* #undef USE_XSDPGSQL */ /* Comment data I/O implementations... */ #define USE_XCDDEFAULT 1 /* #undef USE_XCDDB */ /* #undef USE_XCDMYSQL */ /* #undef USE_XCDPGSQL */ /* Extended data I/O implementations... */ #define USE_XEDDEFAULT 1 /* #undef USE_XEDDB */ /* #undef USE_XEDMYSQL */ /* #undef USE_XEDPGSQL */ /* Retention data I/O implementations... */ #define USE_XRDDEFAULT 1 /* #undef USE_XRDDB */ /* #undef USE_XRDMYSQL */ /* #undef USE_XRDPGSQL */ /* Object data I/O implementations... */ #define USE_XODDEFAULT 1 /* #undef USE_XODTEMPLATE */ /* #undef USE_XODDB */ /* #undef USE_XODMYSQL */ /* #undef USE_XODPGSQL */ /* Should we track performance data? */ /* #undef USE_PERFDATA */ /* Performance data I/O implementations... */ /* #undef USE_XPDDEFAULT */ /* #undef USE_XPDDB */ /* #undef USE_XPDMYSQL */ #define STDC_HEADERS 1 #define HAVE_SYSLOG_H 1 /* #undef HAVE_SOCKET */ #define HAVE_STRDUP 1 #define HAVE_STRSTR 1 #define HAVE_STRTOUL 1 #define HAVE_INITGROUPS 1 /* #undef HAVE_GETLOADAVG */ /* #undef HAVE_SYS_LOADAVG_H */ /* #undef HAVE_SYS_SYSCTL_H */ /* #undef HAVE_LINUX_SYSCTL_H */ #define HAVE_LIMITS_H 1 #define HAVE_SYS_RESOURCE_H 1 #define HAVE_GETOPT_H 1 #define HAVE_PWD_H 1 #define HAVE_GRP_H 1 #define HAVE_TM_ZONE 1 /* #undef HAVE_TZNAME */ /* #undef USE_PROC */ #define SOCKET_SIZE_TYPE size_t #define GETGROUPS_T gid_t #define RETSIGTYPE void #define HAVE_STRINGS_H 1 #define HAVE_STRING_H 1 #ifdef HAVE_STRINGS_H #include #endif #ifdef HAVE_STRINGS_H #include #endif #define HAVE_UNISTD_H 1 #ifdef HAVE_UNISTD_H #include #endif #define HAVE_SYSLOG_H 1 #ifdef HAVE_SYSLOG_H #include #endif #define HAVE_SIGNAL_H 1 #ifdef HAVE_SIGNAL_H #include #endif #define HAVE_SYS_STAT_H 1 #ifdef HAVE_SYS_STAT_H #include #endif #define HAVE_FCNTL_H 1 #ifdef HAVE_FCNTL_H #include #endif #define HAVE_SYS_TYPES_H 1 #ifdef HAVE_SYS_TYPES_H #include #endif #define HAVE_SYS_WAIT_H 1 #ifdef HAVE_SYS_WAIT_H #include #endif #ifndef WEXITSTATUS # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) #endif #ifndef WIFEXITED # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) #endif #define HAVE_ERRNO_H 1 #ifdef HAVE_ERRNO_H #include #endif /* needed for the time_t structures we use later... */ #define TIME_WITH_SYS_TIME 1 #define HAVE_SYS_TIME_H 1 #if TIME_WITH_SYS_TIME # include # include #else # if HAVE_SYS_TIME_H # include # else # include # endif #endif #define HAVE_SYS_IPC_H 1 #ifdef HAVE_SYS_IPC_H #include #endif #define HAVE_SYS_MSG_H 1 #ifdef HAVE_SYS_MSG_H #include #endif #define HAVE_MATH_H 1 #ifdef HAVE_MATH_H #include #endif #define HAVE_CTYPE_H 1 #ifdef HAVE_CTYPE_H #include #endif