Sebastian Harl [Wed, 10 Oct 2007 18:36:53 +0000 (20:36 +0200)]
ipvs plugin: Use sstrerror() instead of strerror().
D'oh...
Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
Sebastian Harl [Wed, 10 Oct 2007 18:36:17 +0000 (20:36 +0200)]
configure, ipvs plugin: Check for ip_vs.h.
Disable the ipvs module, if neither net/ip_vs.h nor ip_vs.h could be
found. Added HAVE_*_H checks for each included system header in ipvs.c.
Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
Sebastian Harl [Wed, 10 Oct 2007 18:34:37 +0000 (20:34 +0200)]
ipvs: Added plugin to collect IPVS connection statistics.
This plugin collects detailed statistics for each IPVS service and it's
destinations. It is based on ipvsadm and libipvs by Wensong Zhang and
Peter Kese. The plugin requires a Linux (>= 2.6) kernel.
See http://www.linuxvirtualserver.org/software/index.html for more details
about IPVS.
A new DS type "connections" (value:COUNTER:0:U) has been added to
types.db.
Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
Florian Forster [Fri, 12 Oct 2007 07:32:23 +0000 (09:32 +0200)]
src/Makefile.am: Make manpage creation fail-safe.
Since Sebastian's patch ships the .pod files in the distribution, this may not
fail when perl-doc is not installed.
Sebastian Harl [Sun, 2 Sep 2007 10:44:41 +0000 (12:44 +0200)]
src/Makefile.am: Added all POD files to EXTRA_DIST.
Those files are basically the "sources" for the manpages and as such
should be included in a distribution.
Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
Florian Forster [Wed, 10 Oct 2007 14:13:28 +0000 (16:13 +0200)]
tcpconns plugin: Changed the plugin to collect all TCP states, nut just `established'.
Also the contrib/collection.cgi script has been updated.
Florian Forster [Tue, 9 Oct 2007 16:09:34 +0000 (18:09 +0200)]
ChangeLog: Documented the changes to the perl plugin..
..a little
Sebastian Harl [Sun, 7 Oct 2007 21:51:20 +0000 (23:51 +0200)]
perl plugin: Converted to use "complex" configuration.
The parsing of the syntax tree of the "Plugin perl" section is now done in
perl_config() allowing more flexible setups like passing configuration
options to Perl plugins.
Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
Sebastian Harl [Sun, 7 Oct 2007 21:50:30 +0000 (23:50 +0200)]
perl plugin: Added "EnableDebugger" config option.
This config option will pass control to the Perl debugger after the
interpreter has been initialized. This is exactly the same as invoking perl
with the "-d" command line switch.
Just as with perl's "-d" command line option you can supply an alternative
debugger. Pass the package name as an argument to the "EnableDebugger" option
See perldebug(1) for more details.
Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
Sebastian Harl [Mon, 8 Oct 2007 14:42:08 +0000 (16:42 +0200)]
perl plugin: Fixed an "unused variable" warning.
When compiling with debugging disabled, gcc complained about an unused
variable in init_pi(). -Werror thus caused the build to fail.
Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
Florian Forster [Tue, 9 Oct 2007 12:40:33 +0000 (14:40 +0200)]
tcpconns plugin: Added a new plugin that counts the number of TCP connections to specific ports.
Florian Forster [Fri, 5 Oct 2007 14:09:11 +0000 (16:09 +0200)]
Merge branch 'collectd-4.1'
Florian Forster [Thu, 4 Oct 2007 13:34:57 +0000 (15:34 +0200)]
snmp plugin: Improve the timing method, so that hosts are queried more steadily.
Florian Forster [Thu, 4 Oct 2007 13:12:50 +0000 (15:12 +0200)]
rrdtool plugin: Use the right variables when calling `rrd_update'..
*argl*
Florian Forster [Thu, 4 Oct 2007 13:09:24 +0000 (15:09 +0200)]
rrdtool plugin: Removed unused variables.
Florian Forster [Thu, 4 Oct 2007 10:26:26 +0000 (12:26 +0200)]
rrdtool plugin: Use the thread-safe `librrd_th' if available.
Florian Forster [Thu, 4 Oct 2007 08:31:00 +0000 (10:31 +0200)]
collectd-snmp(5): Added a note about the interpreted environment variables.
Florian Forster [Thu, 4 Oct 2007 06:44:41 +0000 (08:44 +0200)]
snmp plugin: Print a warning if querying a host takes longer than the confiured interval.
Sebastian Harl [Mon, 3 Sep 2007 09:09:15 +0000 (11:09 +0200)]
Makefile.am: Include version-gen.sh in a distribution as well.
Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
Sebastian Harl [Sun, 30 Sep 2007 22:10:56 +0000 (00:10 +0200)]
bindings/perl: Removed VERSION from all Makefile.PL's.
Signed-off-by: Sebastian Harl <sh@tokkee.org>
Sebastian Harl [Sun, 30 Sep 2007 22:10:21 +0000 (00:10 +0200)]
perl plugin: bootstrap Collectd when initializing Perl interpreter
This automatically makes all symbols available at (Perl) compile time,
thus making the API built into collectd.
Signed-off-by: Sebastian Harl <sh@tokkee.org>
Sebastian Harl [Sun, 30 Sep 2007 22:09:50 +0000 (00:09 +0200)]
perl plugin: Reimplemented plugin_{,un}register() in plain Perl.
As this involves only Perl data structures, it makes more sense to write
the algorithms in plain Perl as well. I suppose the perl interpreter can
do a better job optimizing the code :-)
Signed-off-by: Sebastian Harl <sh@tokkee.org>
Sebastian Harl [Sun, 30 Sep 2007 22:09:15 +0000 (00:09 +0200)]
perl plugin: Do not initialize the Perl interpreter until loading a module.
This makes further and more flexible configurations possible.
Signed-off-by: Sebastian Harl <sh@tokkee.org>
Sebastian Harl [Sun, 30 Sep 2007 22:08:43 +0000 (00:08 +0200)]
Moved contrib/PerlLib/ to bindings/perl/.
Added bindings/Makefile.am and bindings/perl/Collectd/Makefile.PL,
bindings/perl/Makefile.PL to integrate the Perl modules into the build
system and the official distribution.
Signed-off-by: Sebastian Harl <sh@tokkee.org>
Florian Forster [Sat, 29 Sep 2007 11:16:56 +0000 (13:16 +0200)]
collectd-snmp(5): Documented the `InstancePrefix' option and the new `Instance' behavior.
Florian Forster [Sat, 29 Sep 2007 11:15:27 +0000 (13:15 +0200)]
snmp plugin: Added the `InstancePrefix' option.
Florian Forster [Sat, 29 Sep 2007 10:34:22 +0000 (12:34 +0200)]
snmp plugin: Changed the table code so that an `instance' is optional.
Florian Forster [Fri, 28 Sep 2007 14:42:20 +0000 (16:42 +0200)]
Merge branch 'pull/collectd-4.1' into collectd-4.1
Florian Forster [Fri, 28 Sep 2007 14:40:06 +0000 (16:40 +0200)]
Merge branch 'collectd-4.1'
Conflicts:
ChangeLog
Florian Forster [Fri, 28 Sep 2007 13:55:44 +0000 (15:55 +0200)]
Bumped version to 4.1.2; Updated ChangeLog.
Florian Forster [Fri, 28 Sep 2007 13:46:46 +0000 (15:46 +0200)]
Merge branch 'collectd-4.0' into collectd-4.1
Conflicts:
ChangeLog
configure.in
contrib/PerlLib/Collectd.pm
Florian Forster [Fri, 28 Sep 2007 13:43:41 +0000 (15:43 +0200)]
Bumped version to 4.0.9; Updated ChangeLog.
Florian Forster [Fri, 28 Sep 2007 11:45:39 +0000 (13:45 +0200)]
Merge branch 'collectd-3.11' into collectd-4.0
Conflicts:
ChangeLog
configure.in
src/wireless.c
Florian Forster [Fri, 28 Sep 2007 11:00:23 +0000 (13:00 +0200)]
Bumped version to 3.11.7; Updated ChangeLog.
Florian Forster [Fri, 28 Sep 2007 10:41:21 +0000 (12:41 +0200)]
Merge branch 'ff/collection' into collectd-4.0
Florian Forster [Fri, 28 Sep 2007 10:41:17 +0000 (12:41 +0200)]
contrib/collection.cgi: Add a vertical legend to `meta_graph_memory'.
Florian Forster [Fri, 28 Sep 2007 10:32:28 +0000 (10:32 +0000)]
contrib/collection.cgi: Fix the `charge' and `current' graphs.
Florian Forster [Fri, 28 Sep 2007 10:19:19 +0000 (12:19 +0200)]
Merge branch 'pull/collectd-4.1' into collectd-4.1
Florian Forster [Fri, 28 Sep 2007 08:26:49 +0000 (10:26 +0200)]
collectd.conf(5): Make it more clear that rrdtool's `StepSize' and `HeartBeat' should not be set.
This has caused some problems with users of the snmp plugin.
Florian Forster [Thu, 27 Sep 2007 16:12:44 +0000 (16:12 +0000)]
snmp plugin: Improved the error messages in the init code.
Florian Forster [Thu, 27 Sep 2007 15:58:41 +0000 (15:58 +0000)]
snmp plugin: Fix a segfault when a host times out but more data should be queried.
Florian Forster [Thu, 27 Sep 2007 14:13:02 +0000 (16:13 +0200)]
snmp plugin: Handle `ASN_TIMETICKS' as `counter' if it's known by the SNMP library.
Florian Forster [Thu, 27 Sep 2007 13:34:13 +0000 (15:34 +0200)]
Merge branch 'collectd-4.1'
Florian Forster [Thu, 27 Sep 2007 13:34:00 +0000 (15:34 +0200)]
Merge branch 'collectd-4.0' into collectd-4.1
Sebastian Harl [Thu, 27 Sep 2007 10:25:14 +0000 (12:25 +0200)]
perl plugin: Fixed a possible buffer overflow in get_module_name().
A '\0' might have been written above the buffer array bounds.
Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
Florian Forster [Wed, 26 Sep 2007 15:18:31 +0000 (17:18 +0200)]
Merge branch 'pull/collectd-4.1' into collectd-4.1
Florian Forster [Wed, 26 Sep 2007 15:18:13 +0000 (17:18 +0200)]
build system: Fix detection of libraries when giving a directory.
Florian Forster [Sun, 23 Sep 2007 13:14:36 +0000 (15:14 +0200)]
Merge branch 'pull/collectd-4.1' into collectd-4.1
Florian Forster [Tue, 18 Sep 2007 18:51:38 +0000 (20:51 +0200)]
build system: Fixed the improved detection of the Net-SNMP library.
Florian Forster [Tue, 18 Sep 2007 11:45:36 +0000 (13:45 +0200)]
build system: Improve the detection of the Net-SNMP library.
Florian Forster [Mon, 17 Sep 2007 07:32:23 +0000 (09:32 +0200)]
collectd: Add the config option `Include' which includes other files.
This is done recursively so that you can have a depth of up to `n' (currently eight).
Florian Forster [Sat, 15 Sep 2007 10:30:15 +0000 (12:30 +0200)]
netlink plugin: Don't fail if `IFLA_STATS' doesn't exist for an interface.
Hopefully this fixes problems on my WRT ;)
Florian Forster [Sat, 15 Sep 2007 09:58:52 +0000 (11:58 +0200)]
wireless plugin: Correct the handling of cards returning signal and noise quality as percentage.
Florian Forster [Sat, 15 Sep 2007 09:01:59 +0000 (11:01 +0200)]
Merge branch 'collectd-4.1'
Florian Forster [Sat, 15 Sep 2007 09:01:40 +0000 (11:01 +0200)]
Merge branch 'collectd-4.0' into collectd-4.1
Florian Forster [Sat, 15 Sep 2007 09:01:19 +0000 (11:01 +0200)]
Merge branch 'collectd-3.11' into collectd-4.0
Conflicts:
src/apcups.c
nothing added to commit but untracked files present (use "git add" to track)
Florian Forster [Sat, 15 Sep 2007 08:58:53 +0000 (10:58 +0200)]
apcups plugin: Warn about the irritating name `apcups_charge_pct'.
Florian Forster [Sat, 15 Sep 2007 08:48:25 +0000 (10:48 +0200)]
netlink plugin: Fix build issues under Debian Sarge
or generally older Linux versions.
Florian Forster [Fri, 14 Sep 2007 07:51:29 +0000 (09:51 +0200)]
snmp plugin: Added the options `Scale' and `Shift' to Data-blocks..
..to correct the values returned by SNMP-agents.
Florian Forster [Fri, 14 Sep 2007 07:15:06 +0000 (09:15 +0200)]
Merge branch 'ff/apcups' into collectd-4.0
Florian Forster [Fri, 14 Sep 2007 07:11:04 +0000 (09:11 +0200)]
Bumped the version to 4.1.1
Florian Forster [Fri, 14 Sep 2007 06:32:37 +0000 (08:32 +0200)]
build system: Fix yet another issue with the detection of libupsclient.
Florian Forster [Thu, 13 Sep 2007 08:01:23 +0000 (10:01 +0200)]
Merge branch 'collectd-4.0' into collectd-4.1
Conflicts:
ChangeLog
Florian Forster [Thu, 13 Sep 2007 07:56:04 +0000 (09:56 +0200)]
apcups plugin: Fix reporting of the `load percent' data.
Florian Forster [Wed, 12 Sep 2007 12:57:43 +0000 (14:57 +0200)]
Merge branch 'collectd-4.0' into collectd-4.1
Conflicts:
contrib/PerlLib/Collectd.pm
nothing added to commit but untracked files present (use "git add" to track)
Florian Forster [Wed, 12 Sep 2007 12:45:30 +0000 (14:45 +0200)]
contrib/PerlLib/Collectd.pm: Bumbed the version to 4.0.8.
Florian Forster [Wed, 12 Sep 2007 09:15:54 +0000 (11:15 +0200)]
Merge branch 'collectd-4.0' into collectd-4.1
Conflicts:
ChangeLog
configure.in
Florian Forster [Wed, 12 Sep 2007 09:14:33 +0000 (11:14 +0200)]
Bumped version to 4.0.8; updated ChangeLog.
Sebastian Harl [Wed, 12 Sep 2007 08:55:35 +0000 (10:55 +0200)]
plugin.c: Print lt_dlopen() error messages to STDERR as well.
This makes sure the user will get the message on the terminal in any case.
Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
Sebastian Harl [Wed, 12 Sep 2007 08:54:57 +0000 (10:54 +0200)]
Removed some legacy calls to DEBUG().
Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
Florian Forster [Wed, 12 Sep 2007 07:14:45 +0000 (09:14 +0200)]
rrdtool plugin: Use `-b' (begin) when creating rrd-files.
When receiving data from a host that has a clock that lacks behind the servers
clock, the newly created rrd-files had a timestamp that was ten seconds in the
past from the server's point of view. If the client was, for example, 10:00
minutes late, there would therefore be 9:50 minutes of invalid data which cause
warnings, empty graphs and overall missery. This commit changes this behavior
to not use the default `begin' time but set it explicitely based on the
client's time.
Florian Forster [Tue, 11 Sep 2007 09:50:51 +0000 (11:50 +0200)]
Merge branch 'collectd-4.0' into collectd-4.1
Florian Forster [Tue, 11 Sep 2007 09:50:43 +0000 (11:50 +0200)]
ChangeLog: Documented the fix in the apcups plugin.
Florian Forster [Tue, 11 Sep 2007 09:46:07 +0000 (11:46 +0200)]
Merge branch 'uni/collectd-4.1' into collectd-4.1
Florian Forster [Tue, 11 Sep 2007 09:45:50 +0000 (11:45 +0200)]
Merge branch 'uni/collectd-4.0' into collectd-4.0
Florian Forster [Tue, 11 Sep 2007 09:14:56 +0000 (11:14 +0200)]
apcups plugin: Fix the types used in the plugin.
They still had an `apcups_' prefix which isn't legal anymore.
Florian Forster [Tue, 11 Sep 2007 09:11:25 +0000 (11:11 +0200)]
collectd: Make `mkdir' error messages more identifiable.
Florian Forster [Tue, 11 Sep 2007 09:09:32 +0000 (11:09 +0200)]
netlink plugin: Fix an error-message.
Florian Forster [Mon, 10 Sep 2007 08:49:51 +0000 (10:49 +0200)]
ChangeLog: Documented the changes since 4.1.0.
Florian Forster [Mon, 10 Sep 2007 08:43:49 +0000 (10:43 +0200)]
Merge branch 'collectd-4.0' into collectd-4.1
Conflicts:
ChangeLog
Florian Forster [Mon, 10 Sep 2007 08:43:19 +0000 (10:43 +0200)]
ChangeLog: Fix a merge bug.
Florian Forster [Mon, 10 Sep 2007 08:41:39 +0000 (10:41 +0200)]
ChangeLog: Added a note about the improved `sstrerror' function.
Florian Forster [Wed, 5 Sep 2007 07:30:01 +0000 (09:30 +0200)]
contrib/collection.cgi: Fix a bug in the `meta_graph_generic_stack' function.
Also add a meta-graph-handler for if_[rt]x_errors.
Florian Forster [Tue, 4 Sep 2007 21:46:12 +0000 (23:46 +0200)]
Merge branch 'pull/collectd-4.1' into collectd-4.1
Florian Forster [Tue, 4 Sep 2007 21:44:50 +0000 (23:44 +0200)]
build system: Include <adm/types.h> when checking for `libnetlink.h'.
Florian Forster [Tue, 4 Sep 2007 08:32:13 +0000 (10:32 +0200)]
netlink plugin: Use the defines to determine where the `libnetlink.h' is.
Florian Forster [Tue, 4 Sep 2007 08:31:38 +0000 (10:31 +0200)]
build system: Check for libnetlink.h in more than one directory.
And some minor cleanups..
Florian Forster [Tue, 4 Sep 2007 08:14:22 +0000 (10:14 +0200)]
build system: Some cosmetic fixes for the libupsclient.
Florian Forster [Mon, 3 Sep 2007 14:00:51 +0000 (16:00 +0200)]
Merge branch 'collectd-4.0' into collectd-4.1
Florian Forster [Mon, 3 Sep 2007 14:00:23 +0000 (16:00 +0200)]
Merge branch 'pull/collectd-4.0' into collectd-4.0
Florian Forster [Mon, 3 Sep 2007 14:00:11 +0000 (16:00 +0200)]
src/plugin.c: plugin_dispatch_values: Include the interval in the debugging output.
Florian Forster [Mon, 3 Sep 2007 13:59:08 +0000 (15:59 +0200)]
exec plugin: Set the real group, effective group, and real and effective user.
In that order. The manpage and the config template have been updated.
Florian Forster [Fri, 31 Aug 2007 09:52:31 +0000 (11:52 +0200)]
exec plugin: Call `setgid' first so argitary groups can be configured.
Florian Forster [Mon, 3 Sep 2007 12:44:53 +0000 (14:44 +0200)]
sstrerror: Be even more cautios with the return value of `strerror_r'..
I don't trust this GNU implementation one bit.. ;)
Florian Forster [Sun, 2 Sep 2007 17:43:03 +0000 (19:43 +0200)]
contrib/collection.cgi: Display MySQL traffic as bits/s, not bytes/s.
Florian Forster [Sun, 2 Sep 2007 17:28:25 +0000 (19:28 +0200)]
Merge branch 'collectd-4.0' into collectd-4.1
Florian Forster [Sun, 2 Sep 2007 17:28:09 +0000 (19:28 +0200)]
contrib/collection.cgi: Added meta graph handlers for nfs_procedure, ps_state, swap, mysql_commands, and mysql_handler.
Florian Forster [Sun, 2 Sep 2007 16:38:47 +0000 (18:38 +0200)]
src/common.c: Copy the error-string to the buffer - no matter which implementation is used.
Ulf Zimmermann [Sun, 2 Sep 2007 16:22:24 +0000 (18:22 +0200)]
ChangeLog: Fix a typo.
Florian Forster [Sun, 2 Sep 2007 16:15:36 +0000 (18:15 +0200)]
Merge branch 'collectd-4.0' into collectd-4.1
Conflicts:
contrib/collection.cgi