X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fcollectd.h;h=a5c81694753c4c8ecfce7f2d676a1d193534f2bf;hb=bb743c17dda8f0c51828c62a7b8ec98bdaa9bfcf;hp=d00dce326b568b2ff11526ca2bd6d17fc7aac39c;hpb=010d7b9e256e51184d9e4c30852b9f7594826511;p=collectd.git diff --git a/src/collectd.h b/src/collectd.h index d00dce32..a5c81694 100644 --- a/src/collectd.h +++ b/src/collectd.h @@ -1,6 +1,6 @@ /** * collectd - src/collectd.h - * Copyright (C) 2005 Florian octo Forster + * Copyright (C) 2005,2006 Florian octo Forster * * 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 @@ -128,19 +128,7 @@ # include #endif -#if HAVE_SYSLOG -# define syslog(...) syslog(__VA_ARGS__) -# if HAVE_OPENLOG -# define openlog(...) openlog(__VA_ARGS__) -# else -# define openlog(...) /**/ -# endif -# if HAVE_CLOSELOG -# define closelog(...) closelog(__VA_ARGS__) -# else -# define closelog(...) /**/ -# endif -#else +#if !HAVE_SYSLOG # define syslog(...) /**/ # define openlog(...) /**/ # define closelog(...) /**/ @@ -198,15 +186,28 @@ #define MODE_SERVER 0x01 #define MODE_CLIENT 0x02 #define MODE_LOCAL 0x04 +#define MODE_LOG 0x08 + +#ifndef COLLECTD_GRP_NAME +# define COLLECTD_GRP_NAME "collectd" +#endif #ifndef COLLECTD_STEP -# define COLLECTD_STEP 10 +# define COLLECTD_STEP "10" #endif #ifndef COLLECTD_HEARTBEAT # define COLLECTD_HEARTBEAT "25" #endif +#ifndef COLLECTD_ROWS +# define COLLECTD_ROWS "1200" +#endif + +#ifndef COLLECTD_XFF +# define COLLECTD_XFF 0.1 +#endif + extern time_t curtime; #ifdef HAVE_LIBRRD