collectd.git
17 years agoSpamAssassin plugin: Reclicense again und remove debugging die
Alexander Wirt [Thu, 7 Dec 2006 10:36:35 +0000 (11:36 +0100)]
SpamAssassin plugin: Reclicense again und remove debugging die

Due to some misunderstanding Artistic was not the right license so
I should GPL now instead of Artistic.
Additionally I removed a debugging "die" that should never have been checked
in into my svn repo (Thanks tokkee).

Signed-off-by: Alexander Wirt <formorer@formorer.de>
17 years agoSpamAssassin plugin: Update license foo and add timout
Alexander Wirt [Thu, 7 Dec 2006 10:15:28 +0000 (11:15 +0100)]
SpamAssassin plugin: Update license foo and add timout

Also updated example.cf to reflect the new timeout option
(default is 2 sec.). The whole thing is now dual licensed
(Artistic and Apache License).

Signed-off-by: Alexander Wirt <formorer@formorer.de>
17 years agoemail plugin: Added some information about this plugin and it's config options to...
Florian Forster [Wed, 6 Dec 2006 12:33:35 +0000 (13:33 +0100)]
email plugin: Added some information about this plugin and it's config options to the manpages.

Also updated the README file, fixed a little indentation in `src/collectd.h'
and force the base of the `SocketPerms' to be eight (i. e. assume octal numbers
when setting the permission).

17 years agoMerge branch 'master' of octo@verplant.org:/var/lib/git/collectd
Florian Forster [Wed, 6 Dec 2006 08:59:20 +0000 (09:59 +0100)]
Merge branch 'master' of octo@verplant.org:/var/lib/git/collectd

17 years agodns plugin: Documented plugin in the README file and the manpages.
Florian Forster [Wed, 6 Dec 2006 08:14:55 +0000 (09:14 +0100)]
dns plugin: Documented plugin in the README file and the manpages.

17 years agocontrib/collection.cgi: Added graphs for `opcode' RRD-files (from the dns plugin)
Florian Forster [Wed, 6 Dec 2006 07:55:09 +0000 (08:55 +0100)]
contrib/collection.cgi: Added graphs for `opcode' RRD-files (from the dns plugin)

17 years agosrc/utils_dns.c: Implemented a handler for `DLT_LINUX_SLL'.
Florian Forster [Tue, 5 Dec 2006 20:42:16 +0000 (21:42 +0100)]
src/utils_dns.c: Implemented a handler for `DLT_LINUX_SLL'.

This is the ``Linux cooked capture encapsulation'', which is at least returned
when capturing the `any' device under Linux. This patch will strip off the
header and pass the packet to the IPv4 or IPv6 handler, whichever one is
ppropriate.

17 years agoMerge branch 'aw/spamassassin'
Florian Forster [Tue, 5 Dec 2006 19:59:14 +0000 (20:59 +0100)]
Merge branch 'aw/spamassassin'

17 years agoMerge branch 'ls/shutdown'
Florian Forster [Tue, 5 Dec 2006 19:53:45 +0000 (20:53 +0100)]
Merge branch 'ls/shutdown'

17 years agosensors plugin: declare variables only if SENSORS_HAVE_READ
Lubos Stanek [Tue, 5 Dec 2006 18:09:33 +0000 (19:09 +0100)]
sensors plugin: declare variables only if SENSORS_HAVE_READ

Signed-off-by: Stanek Lubos <kolektor@atlas.cz>
17 years agoMerge branch 'ls/shutdown'
Florian Forster [Tue, 5 Dec 2006 17:08:15 +0000 (18:08 +0100)]
Merge branch 'ls/shutdown'

17 years agosensors plugin: fix shutdown for SENSORS_HAVE_READ
Lubo¹ Stanìk [Tue, 5 Dec 2006 15:34:28 +0000 (16:34 +0100)]
sensors plugin: fix shutdown for SENSORS_HAVE_READ

Sorry, too many changes for me to observe at once.

Signed-off-by: Stanek Lubos <kolektor@atlas.cz>
17 years agosensors plugin: shutdown implementation
Lubo¹ Stanìk [Tue, 5 Dec 2006 15:23:10 +0000 (16:23 +0100)]
sensors plugin: shutdown implementation

Signed-off-by: Stanek Lubos <kolektor@atlas.cz>
17 years agosensors plugin: SENSORS_HAVE_READ unification
Lubo¹ Stanìk [Tue, 5 Dec 2006 15:15:55 +0000 (16:15 +0100)]
sensors plugin: SENSORS_HAVE_READ unification

Signed-off-by: Stanek Lubos <kolektor@atlas.cz>
17 years agoMerge branch 'sh/shutdown'
Florian Forster [Tue, 5 Dec 2006 17:00:57 +0000 (18:00 +0100)]
Merge branch 'sh/shutdown'

17 years agoemail plugin: Shutdown cleanly.
Sebastian Harl [Mon, 4 Dec 2006 12:53:16 +0000 (13:53 +0100)]
email plugin: Shutdown cleanly.

Using a shutdown function the email plugin closes any sockets, terminates all
running threads and removes the UNIX socket.

Signed-off-by: Sebastian Harl <sh@tokkee.org>
17 years agoemail plugin: "Calculate" UNIX_PATH_MAX if it is not defined.
Sebastian Harl [Mon, 4 Dec 2006 22:26:18 +0000 (23:26 +0100)]
email plugin: "Calculate" UNIX_PATH_MAX if it is not defined.

Some systems (e.g. Darwin) do not seem to define UNIX_PATH_MAX at all. Thus I
calculate it from the size of the sun_path character array of struct
sockaddr_un in this case.

Signed-off-by: Sebastian Harl <sh@tokkee.org>
17 years agoemail plugin: Make UNIX socket path configurable at compile time.
Sebastian Harl [Mon, 4 Dec 2006 22:58:44 +0000 (23:58 +0100)]
email plugin: Make UNIX socket path configurable at compile time.

The prefix for the UNIX socket can be configured using the
COLLECTD_SOCKET_PREFIX macro. "email" will be prepended to it.

If you configure collectd using

  CFLAGS="-DCOLLECTD_SOCKET_PREFIX='\"$path-\"'" ./configure

the socket will be found at "$path-email".

Signed-off-by: Sebastian Harl <sh@tokkee.org>
17 years agodns plugin: Remove unnecessary poll code and use the (blocking) `pcap_loop' function...
Florian Forster [Mon, 4 Dec 2006 21:47:34 +0000 (22:47 +0100)]
dns plugin: Remove unnecessary poll code and use the (blocking) `pcap_loop' function instead.

Not only does this simplify things *a lot* on *BSD and Mac OS X, because you
can't always call `poll' on their filedescriptors, it also simplifies the code
a lot and thus removes potential error sources.

17 years agodns plugin: Use the standard member names for `struct in6_addr' accesses.
Florian Forster [Mon, 4 Dec 2006 20:17:49 +0000 (21:17 +0100)]
dns plugin: Use the standard member names for `struct in6_addr' accesses.

The 32bit members apparently are Linux or glibc specific, so don't use them.

17 years agoImported Alexander's SpamAssassin-plugin to contrib/SpamAssassin/
Florian Forster [Mon, 4 Dec 2006 12:13:17 +0000 (13:13 +0100)]
Imported Alexander's SpamAssassin-plugin to contrib/SpamAssassin/

17 years agoconfigure.in: Set the default case for `--with--libpthread' to `yes'.
Florian Forster [Mon, 4 Dec 2006 11:56:37 +0000 (12:56 +0100)]
configure.in: Set the default case for `--with--libpthread' to `yes'.

Also removed the `regex' output at the end of the configure run, because it was
empty.

17 years agoplugin.[ch]: Added support for an optional plugin shutdown function.
Sebastian Harl [Mon, 4 Dec 2006 10:30:29 +0000 (11:30 +0100)]
plugin.[ch]: Added support for an optional plugin shutdown function.

A plugin may register a shutdown function using plugin_register_shutdown ().
This function is called when collectd terminates either during normal
termination or after SIGINT or SIGTERM have been received.

Signed-off-by: Sebastian Harl <sh@tokkee.org>
17 years agodns plugin: Fixed a compile error if pcap.h is not found.
Sebastian Harl [Mon, 4 Dec 2006 10:04:17 +0000 (11:04 +0100)]
dns plugin: Fixed a compile error if pcap.h is not found.

If pcap.h is not found, the compiler complains about some "defined but not
used" warnings. As we're using -Werror this causes the build to abort.

Signed-off-by: Sebastian Harl <sh@tokkee.org>
17 years agoChangeLog: Collected the changes so far.
Florian Forster [Sun, 3 Dec 2006 18:29:58 +0000 (19:29 +0100)]
ChangeLog: Collected the changes so far.

The new version needs to be released soon!

17 years agoMerge branch 'ff/processes'
Florian Forster [Sun, 3 Dec 2006 18:05:15 +0000 (19:05 +0100)]
Merge branch 'ff/processes'

17 years agoemail plugin: Limit the `MaxConns' option by a hardcoded value.
Florian Forster [Sun, 3 Dec 2006 17:43:53 +0000 (18:43 +0100)]
email plugin: Limit the `MaxConns' option by a hardcoded value.

Because typos (and ``typos'', i. e. dumb users) happen, it's better to not
allow INT_MAX connections. The problem is that on 32bit machines this would
 a) create 2147483648 threads
 b) allocate (at least) 512 GBytes of memory
which would result in certain death of either the daemon or the system.

This patch limits the number of connections (and thus threads and allocated
memory) to 16384, which ought to be enough for most people. Those, who need
more connections (and can accomplish this, even though there are quite narrow
OS limits) will need to recompile themselves.

17 years agoemail plugin: Made socket settings configurable.
Sebastian Harl [Sun, 3 Dec 2006 13:11:21 +0000 (14:11 +0100)]
email plugin: Made socket settings configurable.

Added config file support to the email plugin.

The following options are available:
* "SocketGroup <group name>"
  Set the group the UNIX socket belongs to to <group name>.
* "SocketPerms <perms>"
  Set the permissions of the UNIX socket to <perms>. No validation is done.
  The user has to make sure reasonable values are given.
* "MaxConns <conns>"
  The maximum number of concurrent connections is set to <conns>.

<perms> and <conns> may be given as decimal (no prefix), octal (prefix "0") or
sedecimal (a.k.a. hexadecimal, prefix "0x") values.

Signed-off-by: Sebastian Harl <sh@tokkee.org>
17 years agoemail plugin: Make it possible to build the plugin write-only.
Florian Forster [Sun, 3 Dec 2006 09:38:52 +0000 (10:38 +0100)]
email plugin: Make it possible to build the plugin write-only.

So far the plugin simply imported `pthread.h'. If this headerfile (or the
library for that case) was not present, building the plugin would fail. This
patch makes `libpthread' a soft dependency, i. e. it's only necessary if you
want to read from the socket. Without `libpthread' being available the plugin
can still be used in server processes.

17 years agoMerge branches 'ff/dns' and 'sh/email' into next
Florian Forster [Sat, 2 Dec 2006 18:17:50 +0000 (19:17 +0100)]
Merge branches 'ff/dns' and 'sh/email' into next

Conflicts:

configure.in
src/Makefile.am

17 years agodns plugin: Improved config checks for the pthread library.
Florian Forster [Sat, 2 Dec 2006 18:11:22 +0000 (19:11 +0100)]
dns plugin: Improved config checks for the pthread library.

The checks for the pthread-library have been extended to match the other
libraries being used. The dns plugin (in particular `utils_dns.c') has been
verified to build without `libpcap' being present.

17 years agodns plugin: Added the dns plugin to the sample `collectd.conf'.
Florian Forster [Sat, 2 Dec 2006 18:09:32 +0000 (19:09 +0100)]
dns plugin: Added the dns plugin to the sample `collectd.conf'.

17 years agoemail plugin: Use strtok_r() instead of strtok().
Sebastian Harl [Thu, 30 Nov 2006 11:02:46 +0000 (12:02 +0100)]
email plugin: Use strtok_r() instead of strtok().

strtok() internally uses a static buffer and thus is not thread-safe.

Signed-off-by: Sebastian Harl <sh@tokkee.org>
17 years agoemail plugin: Change owner and mode of the UNIX socket if possible.
Sebastian Harl [Thu, 30 Nov 2006 11:02:10 +0000 (12:02 +0100)]
email plugin: Change owner and mode of the UNIX socket if possible.

Set the owner and mode to COLLECTD_GRP_NAME (defaulting to "collectd") and 0770
respectively. A couple of different daemons running as different users might
want to connect to it.

Signed-off-by: Sebastian Harl <sh@tokkee.org>
17 years agoemail plugin: Minor code cleanup.
Sebastian Harl [Thu, 30 Nov 2006 11:01:32 +0000 (12:01 +0100)]
email plugin: Minor code cleanup.

Removed debugging output and whitespaces at end of lines.

Signed-off-by: Sebastian Harl <sh@tokkee.org>
17 years agosrc/utils_ignorelist.c: Fix build-problems when building without regex support.
Florian Forster [Sat, 2 Dec 2006 16:51:58 +0000 (17:51 +0100)]
src/utils_ignorelist.c: Fix build-problems when building without regex support.

17 years agodns plugin: Check for `libpthread' and link the plugin against it.
Florian Forster [Sat, 2 Dec 2006 16:51:16 +0000 (17:51 +0100)]
dns plugin: Check for `libpthread' and link the plugin against it.

17 years agodns plugin: Use `pthread_sigmask' rather than `signal'.
Florian Forster [Sat, 2 Dec 2006 16:50:37 +0000 (17:50 +0100)]
dns plugin: Use `pthread_sigmask' rather than `signal'.

17 years agodns plugin: Use threads rather than two processes and a pipe.
Florian Forster [Sat, 2 Dec 2006 15:30:38 +0000 (16:30 +0100)]
dns plugin: Use threads rather than two processes and a pipe.

This is not only much simpler, code wise, but also more elegant and hopefully
faster. This code is alpha quality at best.

17 years agoNew plugin "email" to collectd ham, spam, ... statistics
Sebastian Harl [Tue, 28 Nov 2006 12:39:51 +0000 (13:39 +0100)]
New plugin "email" to collectd ham, spam, ... statistics

This plugin collects email count and size for each type (e.g. ham, spam,
virus, ...) of emails, spam score values and the count of successful spam
checks (e.g.  BAYES_99, SUBJECT_DRUG_GAP_C, ...).

These information are provided by external programs which communicate with the
plugin thru a UNIX socket and a simple line-based protocol:

/* e-mail type (e.g. ham, spam, virus, ...) and size */
e:<type>:<bytes>

/* spam score */
s:<value>

/* successful spam checks */
c:<type1>[,<type2>,...]

At most MAX_CONNS (currently set to 5) clients can connect to the plugin
simultaneously. Each connection is handled by a separate thread. Any input
line is limited to 256 characters (including the newline character) which
ought to be enough for anybody[tm] by definition. "c"-lines have to be split
up if they grow longer.

Signed-off-by: Sebastian Harl <sh@tokkee.org>
17 years agoconfigure.in: Removed `src/libconfig' from the list of subdirs requireing configuration.
Florian Forster [Tue, 28 Nov 2006 14:42:56 +0000 (15:42 +0100)]
configure.in: Removed `src/libconfig' from the list of subdirs requireing configuration.

18 years agoMerge branch 'ff/dns'
Florian Forster [Tue, 21 Nov 2006 17:14:36 +0000 (18:14 +0100)]
Merge branch 'ff/dns'

Conflicts:

configure.in
contrib/collection.cgi

18 years agodf plugin: Match `spec_device' rather than `device' when matching the `Device' ignore...
Lubos Stanek [Tue, 21 Nov 2006 16:13:56 +0000 (17:13 +0100)]
df plugin: Match `spec_device' rather than `device' when matching the `Device' ignorelist.

18 years agosrc/Makefile.am: Install the `collectd.conf' with restricted permissions, 0640.
Florian Forster [Tue, 21 Nov 2006 16:10:52 +0000 (17:10 +0100)]
src/Makefile.am: Install the `collectd.conf' with restricted permissions, 0640.

Thanks to Lubos for suggesting this :)

18 years agodf plugin: Fix a nasty bug in the config routine. It effectively disabled the `Ignore...
Lubos Stanek [Tue, 21 Nov 2006 16:00:54 +0000 (17:00 +0100)]
df plugin: Fix a nasty bug in the config routine. It effectively disabled the `IgnoreSelected' option.

18 years agosensors plugin: Declare static arrays only if they're being used, i. e. if libsensors...
Florian Forster [Tue, 21 Nov 2006 10:08:51 +0000 (11:08 +0100)]
sensors plugin: Declare static arrays only if they're being used, i. e. if libsensors exists.

18 years agoprocesses plugin: Implemented detailed process statistics for Darwin/Mac OS X
Florian Forster [Tue, 21 Nov 2006 10:03:57 +0000 (11:03 +0100)]
processes plugin: Implemented detailed process statistics for Darwin/Mac OS X

18 years agocollectd.conf(5): Documented the new selection options of the df-plugin.
Florian Forster [Mon, 20 Nov 2006 18:49:09 +0000 (19:49 +0100)]
collectd.conf(5): Documented the new selection options of the df-plugin.

18 years agoconfigure.in: Remove the `--with-regex' option and check for `regex.h' everywhere.
Florian Forster [Mon, 20 Nov 2006 18:18:53 +0000 (19:18 +0100)]
configure.in: Remove the `--with-regex' option and check for `regex.h' everywhere.

18 years agodf plugin: Make use of the new ignorelist functionality.
Florian Forster [Mon, 20 Nov 2006 17:16:34 +0000 (18:16 +0100)]
df plugin: Make use of the new ignorelist functionality.

18 years agosrc/utils_ignorelist.c: Allow the `entry' argument to be NULL/empty.
Florian Forster [Mon, 20 Nov 2006 17:15:39 +0000 (18:15 +0100)]
src/utils_ignorelist.c: Allow the `entry' argument to be NULL/empty.

Also assert the object to be non-empty.

18 years agosrc/utils_ignorelist.[ch]: Remove the `ignorelist_num' function and associated code.
Florian Forster [Mon, 20 Nov 2006 16:47:26 +0000 (17:47 +0100)]
src/utils_ignorelist.[ch]: Remove the `ignorelist_num' function and associated code.

18 years agosrc/utils_ignorelist.[ch]: Renamed some functions. Internal changes.
Florian Forster [Mon, 20 Nov 2006 16:41:30 +0000 (17:41 +0100)]
src/utils_ignorelist.[ch]: Renamed some functions. Internal changes.

Mostly renamed variables, but also changed some return values and inserted
asserts where appropriate.

18 years agoIgnorelist: Renamed `src/config_list.[ch]' to `src/utils_ignorelist.[ch]'.
Florian Forster [Sat, 18 Nov 2006 12:44:23 +0000 (13:44 +0100)]
Ignorelist: Renamed `src/config_list.[ch]' to `src/utils_ignorelist.[ch]'.

The interface has been changed to use the `ignorelist'-prefix rather than
`configlist', which is a confusing term for this functionality.

18 years agoMore improvementa on the ignorelist functionality.
Lubos Stanek [Fri, 17 Nov 2006 20:15:14 +0000 (21:15 +0100)]
More improvementa on the ignorelist functionality.

I am sending the updated version of config_list.
I repaired the error freeing unallocated memory, modified regex for dynamically
allocated error message buffer and replaced '|' with '/'.

18 years agoImprove and generalize the ignorelist functionality.
Lubos Stanek [Fri, 17 Nov 2006 19:54:16 +0000 (20:54 +0100)]
Improve and generalize the ignorelist functionality.

18 years agoChange contrib/init.d-rh7 to sleep for a second between restarts.
Florian Forster [Wed, 8 Nov 2006 14:04:59 +0000 (15:04 +0100)]
Change contrib/init.d-rh7 to sleep for a second between restarts.

18 years agoBreak out of the `nanosleep' loop if `loop' is set to non-zero.
Florian Forster [Tue, 7 Nov 2006 19:52:29 +0000 (20:52 +0100)]
Break out of the `nanosleep' loop if `loop' is set to non-zero.

18 years agoplugin_read_all: Check the `loop' variable after each iteration and return early...
Florian Forster [Mon, 6 Nov 2006 18:34:53 +0000 (19:34 +0100)]
plugin_read_all: Check the `loop' variable after each iteration and return early if the daemon is shutting down.

Lubos Stanek has reported that the daemon may stop too slow, resulting in it
being killed by impatient init-scripts. With this patch `plugin_read_all'
checks the `loop' variable before entering each plugin's read-function. If the
loop-variable is set to non-zero it will return early, allowing the daemon to
shutdown more instantly.

18 years agosensors plugin: Improved the documentation in the sample configfile and the `collectd...
Florian Forster [Sun, 5 Nov 2006 17:27:13 +0000 (18:27 +0100)]
sensors plugin: Improved the documentation in the sample configfile and the `collectd.conf(5)' manpage.

18 years agosensors plugin: Some code cleanup.
Florian Forster [Sun, 5 Nov 2006 14:08:34 +0000 (15:08 +0100)]
sensors plugin: Some code cleanup.

Very long lines have been broken into several shorter ones. `strncmp' has been
replaced with `strcmp' where reasonable. Variables have been renamed and all
variable declarations have been moved to the top of the block, as required by
ANSI C prior to C99.

18 years agoMerge branch 'master' into ls/sensors
Florian Forster [Sun, 5 Nov 2006 12:16:07 +0000 (13:16 +0100)]
Merge branch 'master' into ls/sensors

18 years agoMerge branch 'processes'
Florian Forster [Sun, 5 Nov 2006 12:15:43 +0000 (13:15 +0100)]
Merge branch 'processes'

18 years agoMerge branch 'master' into ff/dns
Florian Forster [Sun, 5 Nov 2006 12:10:09 +0000 (13:10 +0100)]
Merge branch 'master' into ff/dns

18 years agodns plugin: Corrected the handling of signals, i. e. don't catch them.
Florian Forster [Sun, 5 Nov 2006 12:05:50 +0000 (13:05 +0100)]
dns plugin: Corrected the handling of signals, i. e. don't catch them.

18 years agoMerge branch 'collectd-3.10'
Florian Forster [Sat, 4 Nov 2006 12:56:25 +0000 (13:56 +0100)]
Merge branch 'collectd-3.10'

18 years agoBumped version to 3.10.3; Updated ChangeLog. collectd-3.10.3
Florian Forster [Sat, 4 Nov 2006 12:49:07 +0000 (13:49 +0100)]
Bumped version to 3.10.3; Updated ChangeLog.

18 years agoMerge branch 'collectd-3.10'
Florian Forster [Sat, 4 Nov 2006 12:18:06 +0000 (13:18 +0100)]
Merge branch 'collectd-3.10'

18 years agontpd plugin: Use the `NI_MAXHOST' define for the fixed-size buffer `peername'.
Lubos Stanek [Sat, 4 Nov 2006 12:17:07 +0000 (13:17 +0100)]
ntpd plugin: Use the `NI_MAXHOST' define for the fixed-size buffer `peername'.

18 years agontpd plugin: Fix buffer reallocation when the message is send in more than one packet.
Lubos Stanek [Sat, 4 Nov 2006 12:14:11 +0000 (13:14 +0100)]
ntpd plugin: Fix buffer reallocation when the message is send in more than one packet.

18 years agoMerge branch 'collectd-3.10'
Florian Forster [Wed, 1 Nov 2006 15:39:51 +0000 (16:39 +0100)]
Merge branch 'collectd-3.10'

18 years agodebian/: Removed one last unneccessary file. collectd-3.10.2
Florian Forster [Wed, 1 Nov 2006 15:20:51 +0000 (16:20 +0100)]
debian/: Removed one last unneccessary file.

18 years agodebian/: Imported the files from Sebastian's Debian package, part 2.
Florian Forster [Wed, 1 Nov 2006 15:19:41 +0000 (16:19 +0100)]
debian/: Imported the files from Sebastian's Debian package, part 2.

18 years agodebian/: Imported the files from Sebastian's Debian package.
Florian Forster [Wed, 1 Nov 2006 15:17:53 +0000 (16:17 +0100)]
debian/: Imported the files from Sebastian's Debian package.

18 years agoconfigure.in, utils_mount.c: Improved the detection of the different `getmntent'...
Florian Forster [Wed, 1 Nov 2006 15:12:14 +0000 (16:12 +0100)]
configure.in, utils_mount.c: Improved the detection of the different `getmntent' variants.

The check provided by `autoconf' has been completely removed, since it doesn't
provide the information we need and it's internals seem to change more often
than is practical.

18 years agoBumped version to 3.10.2; Updated ChangeLog.
Florian Forster [Wed, 1 Nov 2006 10:46:42 +0000 (11:46 +0100)]
Bumped version to 3.10.2; Updated ChangeLog.

18 years agoMerge branch 'ff/mysql'
Florian Forster [Wed, 1 Nov 2006 10:34:16 +0000 (11:34 +0100)]
Merge branch 'ff/mysql'

18 years agomysql plugin: Don't give up when connecting to the database fails during `init'.
Florian Forster [Wed, 1 Nov 2006 10:32:13 +0000 (11:32 +0100)]
mysql plugin: Don't give up when connecting to the database fails during `init'.

Instead a connection attempt is made in increasing intervals, up to one day.

18 years agoMerge branch 'ff/ntpd'
Florian Forster [Wed, 1 Nov 2006 10:09:47 +0000 (11:09 +0100)]
Merge branch 'ff/ntpd'

18 years agosensors plugin: Improved the extended naming.
Lubos Stanek [Wed, 1 Nov 2006 10:05:57 +0000 (11:05 +0100)]
sensors plugin: Improved the extended naming.

And changed indentation to be the same as anywhere else in the program.

18 years agocollectd.conf.pod: Corrected typos and punctuations.
Lubos Stanek [Wed, 1 Nov 2006 09:56:15 +0000 (10:56 +0100)]
collectd.conf.pod: Corrected typos and punctuations.

18 years agocollectd.conf.in: Correct the example entry for the sensors plugin.
Lubos Stanek [Wed, 1 Nov 2006 09:52:28 +0000 (10:52 +0100)]
collectd.conf.in: Correct the example entry for the sensors plugin.

18 years agontpd plugin: Pass a `struct sockaddr' to `getnameinfo', rather than a `struct in_addr'.
Florian Forster [Wed, 1 Nov 2006 08:43:35 +0000 (09:43 +0100)]
ntpd plugin: Pass a `struct sockaddr' to `getnameinfo', rather than a `struct in_addr'.

Thanks to Lubos Stanek for pointing me in the right direction :)

18 years agoMerge branch 'master' into ff/dns
Florian Forster [Sat, 28 Oct 2006 08:16:44 +0000 (10:16 +0200)]
Merge branch 'master' into ff/dns

18 years agoMerge branch 'collectd-3.10'
Florian Forster [Thu, 26 Oct 2006 20:33:18 +0000 (22:33 +0200)]
Merge branch 'collectd-3.10'

18 years agoMerge branches 'ff/ping', 'ff/macosx-swap' and 'ff/netbsd' into collectd-3.10
Florian Forster [Thu, 26 Oct 2006 20:32:19 +0000 (22:32 +0200)]
Merge branches 'ff/ping', 'ff/macosx-swap' and 'ff/netbsd' into collectd-3.10

18 years agocollection.cgi: Label the values displayed as `Temperature' in the temperature graph.
Florian Forster [Thu, 26 Oct 2006 20:29:30 +0000 (22:29 +0200)]
collection.cgi: Label the values displayed as `Temperature' in the temperature graph.

18 years agocollectd(1): Improved the information about sensors plugin's DSes.
Florian Forster [Thu, 26 Oct 2006 20:27:59 +0000 (22:27 +0200)]
collectd(1): Improved the information about sensors plugin's DSes.

18 years agodns plugin: Create traffic graphs for captured DNS packets.
Florian Forster [Wed, 25 Oct 2006 15:19:15 +0000 (17:19 +0200)]
dns plugin: Create traffic graphs for captured DNS packets.

18 years agosensors plugin: Improve the support for multiple chips and add an ignore functionality.
Lubos Stanek [Wed, 25 Oct 2006 14:23:42 +0000 (16:23 +0200)]
sensors plugin: Improve the support for multiple chips and add an ignore functionality.

Date: Tue, 24 Oct 2006 19:09:35 +0200
From: Lubo?? Stan??k <lubek@users.sourceforge.net>
To: collectd@verplant.org
Subject: Re: [collectd] 3.10.1 - proposed patch to extend sensors plugin

Enhancements:
- precise sensor feature selection (chip-bus-address/type-feature) in the
  ExtendedSensorNaming mode
- more sensor features (finite list)
- honor sensors.conf's ignored
- config Sensor option
- config IgnoreSelected option
- config ExtendedSensorNaming option
- modified DS'es to include proper information about type in the
  ExtendedSensorNaming mode
- /type- differs from yours because of the conflict between the type and the
  old DS in the ExtendedSensorNaming mode
- the contrib/collection.cgi is modified to support both modes

18 years agodns plugin: Collect and transfer byte counters for queries and replies.
Florian Forster [Wed, 25 Oct 2006 14:18:29 +0000 (16:18 +0200)]
dns plugin: Collect and transfer byte counters for queries and replies.

18 years agoRenamed more variables and functions and such from `named' -> `dns'
Florian Forster [Wed, 25 Oct 2006 13:45:55 +0000 (15:45 +0200)]
Renamed more variables and functions and such from `named' -> `dns'

18 years agoRenamed the `named'-plugin to `dns'-plugin.
Florian Forster [Wed, 25 Oct 2006 13:43:10 +0000 (15:43 +0200)]
Renamed the `named'-plugin to `dns'-plugin.

18 years agosrc/utils_mount.c: Correct syntax errors in error-strings.
Florian Forster [Mon, 23 Oct 2006 21:35:43 +0000 (23:35 +0200)]
src/utils_mount.c: Correct syntax errors in error-strings.

18 years agoswap plugin: Removed unused variable `status' which aborted the build with gcc.
Florian Forster [Mon, 23 Oct 2006 21:34:16 +0000 (23:34 +0200)]
swap plugin: Removed unused variable `status' which aborted the build with gcc.

18 years agosrc/utils_mount.c: Prefer `getvfsstat' over `getfsstat' if both are present.
Florian Forster [Mon, 23 Oct 2006 16:17:07 +0000 (18:17 +0200)]
src/utils_mount.c: Prefer `getvfsstat' over `getfsstat' if both are present.

Apparently the `getfsstat' syscall is deprecated, so don't use it unless there
is no alternative.

18 years agosrc/urils_mount.c: Use `getvfsstat' on NetBSD, if available.
Florian Forster [Mon, 23 Oct 2006 16:16:29 +0000 (18:16 +0200)]
src/urils_mount.c: Use `getvfsstat' on NetBSD, if available.

18 years agoprocesses plugin: Only define `ps_list_register' if it is actually used.
Florian Forster [Mon, 23 Oct 2006 11:43:22 +0000 (13:43 +0200)]
processes plugin: Only define `ps_list_register' if it is actually used.

18 years agoping plugin: Add the hosts during initialization, not when reading the config file.
Florian Forster [Sun, 22 Oct 2006 16:42:45 +0000 (18:42 +0200)]
ping plugin: Add the hosts during initialization, not when reading the config file.

Since adding a host to liboping might block when no nameserver can be reached
or another problem occures (normally this means network misconfiguration) it's
not the best idea to do this when reading the config file. At that point we
didn't fork to the background yet, so the boot process may hang which is not good.

Also, hosts that cannot be added right away are tried again in increasing intervals.

18 years agoMerge branch 'sh-pidfile'
Florian Forster [Sun, 22 Oct 2006 16:32:58 +0000 (18:32 +0200)]
Merge branch 'sh-pidfile'