projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Updated manpage: Added information about additional RRAs. (soon to be obsolete)
[collectd.git]
/
src
/
collectd.h
diff --git
a/src/collectd.h
b/src/collectd.h
index
a986c0b
..
5c21325
100644
(file)
--- a/
src/collectd.h
+++ b/
src/collectd.h
@@
-95,6
+95,12
@@
# endif
#endif
# endif
#endif
+#if HAVE_ASSERT_H
+# include <assert.h>
+#else
+# define assert(...) /* nop */
+#endif
+
#if HAVE_DIRENT_H
# include <dirent.h>
# define NAMLEN(dirent) strlen((dirent)->d_name)
#if HAVE_DIRENT_H
# include <dirent.h>
# define NAMLEN(dirent) strlen((dirent)->d_name)
@@
-181,6
+187,10
@@
#define PIDFILE PREFIX "/var/run/" PACKAGE_NAME ".pid"
#endif
#define PIDFILE PREFIX "/var/run/" PACKAGE_NAME ".pid"
#endif
+#ifndef LOGFILE
+#define LOGFILE PREFIX"/var/log/"PACKAGE_NAME"/"PACKAGE_NAME".log"
+#endif
+
#ifndef PLUGINDIR
#define PLUGINDIR PREFIX "/lib/" PACKAGE_NAME
#endif
#ifndef PLUGINDIR
#define PLUGINDIR PREFIX "/lib/" PACKAGE_NAME
#endif
@@
-189,8
+199,19
@@
#define MODE_CLIENT 0x02
#define MODE_LOCAL 0x04
#define MODE_CLIENT 0x02
#define MODE_LOCAL 0x04
+#ifndef COLLECTD_STEP
+# define COLLECTD_STEP "10"
+#endif
+
+#ifndef COLLECTD_HEARTBEAT
+# define COLLECTD_HEARTBEAT "25"
+#endif
+
extern time_t curtime;
extern time_t curtime;
+
+#ifdef HAVE_LIBRRD
extern int operating_mode;
extern int operating_mode;
+#endif
/* int main (int argc, char **argv); */
/* int main (int argc, char **argv); */