Code

collectd.git
17 years agolibvirtstats plugin: Minor cleanups.
Florian Forster [Wed, 7 Nov 2007 22:07:24 +0000 (23:07 +0100)]
libvirtstats plugin: Minor cleanups.

17 years agosrc/Makefile.am: Fix "make dist" to include utils_threshold.h
Chris Lalancette [Wed, 7 Nov 2007 07:39:59 +0000 (08:39 +0100)]
src/Makefile.am: Fix "make dist" to include utils_threshold.h

Hello,

Attached is a trivial Makefile patch so that when using "make dist", you
actually get the src/utils_threshold.h file, which is needed to successfully
build.

Signed-off-by: Chris Lalancette <clalance@redhat.com>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
17 years agolibvirtstats plugin: Add the `HostnameFormat' option.
Richard Jones [Tue, 6 Nov 2007 18:46:29 +0000 (19:46 +0100)]
libvirtstats plugin: Add the `HostnameFormat' option.

This is something I missed out of the previous patch: I want a way to log
guests using their UUID instead of their name (more useful for us because of
the migration and other issues outlined before).

This adds:

   <Plugin libvirtstats>
     HostnameFormat "uuid"
   </Plugin>

to let us do that. You can do other things as well such as:

   HostnameFormat "name uuid"

to get "foo:1234-1234-1234-1234" as the hostname.

Rich.

17 years agoMerge branch 'rj/libvirtstats'
Florian Forster [Tue, 6 Nov 2007 17:23:45 +0000 (18:23 +0100)]
Merge branch 'rj/libvirtstats'

Conflicts:

AUTHORS

17 years agoconfigure.in: Fixed spaces followed by tabs and trailing whitespaces.
Florian Forster [Tue, 6 Nov 2007 17:22:15 +0000 (18:22 +0100)]
configure.in: Fixed spaces followed by tabs and trailing whitespaces.

17 years agolibvirtstats plugin: Added a plugin to collect virtual host statistics.
Richard Jones [Tue, 6 Nov 2007 15:49:19 +0000 (15:49 +0000)]
libvirtstats plugin: Added a plugin to collect virtual host statistics.

  - rebased to git
  - includes updates to the manpage
  - ignorelist code now fixed
  - removed debugging messages

Attached is a plugin allowing collectd to use libvirt to collect CPU, disk and
network statistics for domains.

Usage

Signed-off-by: Florian Forster <octo@huhu.verplant.org>
17 years agouuid plugin: Add a plugin which sets the hostname to an UUID.
Richard Jones [Tue, 6 Nov 2007 14:09:59 +0000 (14:09 +0000)]
uuid plugin: Add a plugin which sets the hostname to an UUID.

Florian Forster wrote:
> Just out of curiosity: Why don't hostnames work for you?

For guests there's the question of what we put in the hostname field. The
previous plugin (libvirtstats) puts the guest's name in this field, but there
are some problems with this:

   physicalserver1 <--- (hostname of physical server)
     |
      \--- database <--- (name of guest)
      \--- web

   physicalserver2
     |
      \--- database
      \--- web

   coldbackupserver
     |
     (no guests)

Guest names aren't really unique. Different physical servers may have guests
with overlapping names as in the example above. Also guest names aren't fixed.
Xen in particular renames guests at will. For example if a guest is about to
migrate then Xen renames the guest as 'migrating-foo' and if the guest is about
to shutdown Xen renames it as 'Zombie-foo'. The administrator of the physical
server can also rename guests.

While you're migrating you'll have an intermediate situation like this:

   physicalserver1
     |
      \--- migrating-database
      \--- migrating-web     |
                             | migration
   coldbackupserver          |
     |                       V
      \--- database
      \--- web

During live migrations the old instance ('migrating-foo') is still running.

The UUID is unique across physical servers, and is copied by migration and
preserved across shutdowns so if you care about which guest your stats "really"
came from then only the UUID tells you this.

Guests also have a hostname which is separate from the guest's name (the
guest's name is stored in the hypervisor, the hostname is stored inside the
guest's kernel). However it's not feasible to access the guest's hostname from
the hypervisor since this would involve some sort of snooping into the guest
kernel. The guest might be running Windows or FreeBSD etc. The only feasible
way to get this is to run an instance of collectd inside each guest, but then
the uuid plugin will also work in this scenario and can get the UUID since it
is exposed inside the guest either through an emulated BIOS or in
/sys/hypervisor/uuid.

Rich.

Signed-off-by: Florian Forster <octo@huhu.verplant.org>
17 years agoexec plugin: Allow arguments to be passed to the executed scripts.
Florian Forster [Sun, 4 Nov 2007 21:18:49 +0000 (22:18 +0100)]
exec plugin: Allow arguments to be passed to the executed scripts.

Untested! Also, you can use the new config option `NagiosExec' to execute
Nagios scripts. The not yet implemented `NotificationExec' is supposed to
dispatch notifications to executables.

17 years agoexec plugin: Added markers to fold methods in vim.
Florian Forster [Sun, 4 Nov 2007 13:19:30 +0000 (14:19 +0100)]
exec plugin: Added markers to fold methods in vim.

17 years agosrc/utils_threshold.c: Added creation of a notification.
Florian Forster [Thu, 1 Nov 2007 11:27:56 +0000 (12:27 +0100)]
src/utils_threshold.c: Added creation of a notification.

17 years agosrc/utils_threshold.[ch]: Added `ut_check_threshold' to check values against the...
Florian Forster [Thu, 1 Nov 2007 10:50:14 +0000 (11:50 +0100)]
src/utils_threshold.[ch]: Added `ut_check_threshold' to check values against the configures thesholds.

This function is called from `plugin_dispatch_values' and prints a warning when
the values is outside of the configured threshold.

17 years agosrc/configfile.c: Handle the `<Threshold>' block correctly.
Florian Forster [Thu, 1 Nov 2007 00:39:44 +0000 (01:39 +0100)]
src/configfile.c: Handle the `<Threshold>' block correctly.

I. e. pass it to `ut_config'.

17 years agosrc/utils_threshold.[ch]: Added the header file and initialize the AVL tree.
Florian Forster [Thu, 1 Nov 2007 00:39:13 +0000 (01:39 +0100)]
src/utils_threshold.[ch]: Added the header file and initialize the AVL tree.

17 years agoMerge branch 'collectd-4.2'
Florian Forster [Tue, 30 Oct 2007 16:19:41 +0000 (16:19 +0000)]
Merge branch 'collectd-4.2'

17 years agoMerge branch 'collectd-4.1' into collectd-4.2
Florian Forster [Tue, 30 Oct 2007 16:19:04 +0000 (16:19 +0000)]
Merge branch 'collectd-4.1' into collectd-4.2

Conflicts:

src/collectd-snmp.pod

17 years agotypes.db: Fix a typo: s/humitidy/humidity/
Florian Forster [Tue, 30 Oct 2007 16:17:43 +0000 (16:17 +0000)]
types.db: Fix a typo: s/humitidy/humidity/

17 years agorrdtool plugin: Wait for the ``queue thread'' to exit _after_ signaling it to exit..
Florian Forster [Fri, 12 Oct 2007 20:59:15 +0000 (22:59 +0200)]
rrdtool plugin: Wait for the ``queue thread'' to exit _after_ signaling it to exit..

17 years agocollectd-snmp(5): Fix typos.
Florian Forster [Mon, 29 Oct 2007 16:42:13 +0000 (17:42 +0100)]
collectd-snmp(5): Fix typos.

17 years agosrc/utils_threshold.c: Added configuration code for threshold values.
Florian Forster [Sun, 28 Oct 2007 19:15:43 +0000 (20:15 +0100)]
src/utils_threshold.c: Added configuration code for threshold values.

The new module `utils_threshold' is supposed to check values and create and
dispatch a notification when the value is not within the threshold.

So far the code is only able to parse a configuration - and even that is
untested so far. It compiles, though ;)

17 years agosrc/utils_cache.c: Initialize the mutex correctly.
Florian Forster [Sun, 28 Oct 2007 19:07:28 +0000 (20:07 +0100)]
src/utils_cache.c: Initialize the mutex correctly.

17 years agosrc/plugin.[ch]: Added a notification type and auxiliary functions.
Florian Forster [Sun, 28 Oct 2007 17:45:46 +0000 (18:45 +0100)]
src/plugin.[ch]: Added a notification type and auxiliary functions.

17 years agosrc/utils_cache.c: Detect when a counter wraps around
Florian Forster [Sun, 28 Oct 2007 16:48:29 +0000 (17:48 +0100)]
src/utils_cache.c: Detect when a counter wraps around

and calculate the difference correctly.

17 years agocollectd.conf: Added nginx module.
Sebastian Harl [Sun, 28 Oct 2007 14:40:28 +0000 (15:40 +0100)]
collectd.conf: Added nginx module.

Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
17 years agosrc/utils_cache.[ch]: Added a global cache for all values that are dispatched.
Florian Forster [Sun, 28 Oct 2007 15:46:58 +0000 (16:46 +0100)]
src/utils_cache.[ch]: Added a global cache for all values that are dispatched.

The cache translates counter values to gauge values using the last counter
value available. This can then be used to check against threshold values, as
we'll need to do for monitoring functionality.

Right now the cache doesn't do much: It sits there and caches the values, but
is not yet ever queried. The already implemented (but so far unused) function
`uc_get_rate' returns an array of gauge_t values.

The longterm goal is to have the network, rrdtool and unixsock plugins use this
cache, too. This will require some `plugin specific' data with appropriate
control structures and, which is likely the hardest part, some clever locking
for all that.

17 years agoperl plugin: Set $0 to "collectd".
Sebastian Harl [Sun, 28 Oct 2007 09:50:24 +0000 (10:50 +0100)]
perl plugin: Set $0 to "collectd".

perl_parse() has to set it to "-e" which is not very meaningful. It would
be even nicer to set it to argv[0] but this is not available from inside
the plugin.

Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
17 years agocollectd.h: Removed legacy definition of operation modes.
Sebastian Harl [Sun, 28 Oct 2007 08:58:18 +0000 (09:58 +0100)]
collectd.h: Removed legacy definition of operation modes.

Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
17 years agoplugin.h: Make DEBUG() a noop when compiling without debugging support.
Sebastian Harl [Sun, 28 Oct 2007 08:57:17 +0000 (09:57 +0100)]
plugin.h: Make DEBUG() a noop when compiling without debugging support.

This saves a couple of useless calls to plugin_log() which the compiler
does not detect and remove itself.

A couple of DEBUG()'s in the apcups, hddtemp, mbmon and ntpd plugins have
been upgraded to INFO()'s. All of them provide error messages of failed
system / libc calls which should be available to the user somehow.
Besides, they use a local string buffer which generates an "unused
variable" warning if DEBUG() expands to a noop.

Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
17 years agoChangeLog: Fix some spelling errors.
Florian Forster [Sat, 27 Oct 2007 10:00:18 +0000 (12:00 +0200)]
ChangeLog: Fix some spelling errors.

17 years agoBuild system: Removed the check for `libm'. collectd-4.2.0
Florian Forster [Sat, 27 Oct 2007 09:21:52 +0000 (11:21 +0200)]
Build system: Removed the check for `libm'.

It didn't work (there's no `ext' function) and wasn't used anywhere..

17 years agoMerge branch 'collectd-4.1'
Florian Forster [Sat, 27 Oct 2007 09:09:25 +0000 (11:09 +0200)]
Merge branch 'collectd-4.1'

17 years agoBumped version to 4.2.0; Updated ChangeLog.
Florian Forster [Sat, 27 Oct 2007 09:02:03 +0000 (11:02 +0200)]
Bumped version to 4.2.0; Updated ChangeLog.

17 years agoBuild system: Changed the detection of the sensors library to work like other libraries.
Florian Forster [Sat, 27 Oct 2007 08:52:38 +0000 (10:52 +0200)]
Build system: Changed the detection of the sensors library to work like other libraries.

17 years agoREADME: Added section about configuring, building and installing collectd.
Sebastian Harl [Fri, 26 Oct 2007 13:07:50 +0000 (15:07 +0200)]
README: Added section about configuring, building and installing collectd.

This section contains basic information about the "--enabled-<plugin>"
configuration option as well as adopting the installation target.

Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
17 years agocollectd.conf(5): Fix a typo.
Florian Forster [Fri, 26 Oct 2007 12:39:27 +0000 (14:39 +0200)]
collectd.conf(5): Fix a typo.

17 years agoChangeLog: Added a note about the new nginx plugin.
Florian Forster [Fri, 26 Oct 2007 08:52:48 +0000 (10:52 +0200)]
ChangeLog: Added a note about the new nginx plugin.

17 years agosrc/common.c: Serialize access to `strerror' if `strerror_r' doesn't exist.
Florian Forster [Fri, 26 Oct 2007 08:50:43 +0000 (10:50 +0200)]
src/common.c: Serialize access to `strerror' if `strerror_r' doesn't exist.

Apparently this is a problem under Solaris 9..

17 years agoBuild system: Fixed a bug in the detection of the snmp library.
Ronan Cadet [Fri, 26 Oct 2007 08:28:37 +0000 (10:28 +0200)]
Build system: Fixed a bug in the detection of the snmp library.

Hello,

During the creation of a rpm on Mandriva 2007.1 from tar.bz2 sources, and by
activate almost all options, I found something that seems a bug to me in the
configure file, line 33251 (concerning the snmp plugin)

17 years agoMerge branch 'collectd-4.1'
Florian Forster [Fri, 26 Oct 2007 08:08:28 +0000 (10:08 +0200)]
Merge branch 'collectd-4.1'

17 years agologfile plugin: Implemented an option to prefix logged lines with a timestamp.
Florian Forster [Fri, 26 Oct 2007 08:07:58 +0000 (10:07 +0200)]
logfile plugin: Implemented an option to prefix logged lines with a timestamp.

17 years agoBuild system: Set the appropriate CPPFLAGS and LDFLAGS when checking for librrd and...
Florian Forster [Thu, 25 Oct 2007 21:13:27 +0000 (23:13 +0200)]
Build system: Set the appropriate CPPFLAGS and LDFLAGS when checking for librrd and it's header.

17 years agorrdtool plugin: Include the `rrd.h' header file in `rrdtool.c', not `collectd.h'.
Florian Forster [Thu, 25 Oct 2007 21:11:54 +0000 (23:11 +0200)]
rrdtool plugin: Include the `rrd.h' header file in `rrdtool.c', not `collectd.h'.

This caused an error when --with-rrdtool was used to have the header file in a
non-standard directory, because the appropriate CFLAGS were not passed to all
plugins.

17 years agotypes.db: Raise the maximum value of `ps_cputime' from 1s/1s to 16s/1s..
Florian Forster [Thu, 25 Oct 2007 18:05:08 +0000 (20:05 +0200)]
types.db: Raise the maximum value of `ps_cputime' from 1s/1s to 16s/1s..

This should work with machines with up to 16 processors..

17 years agoChangeLog: Documented the new tcpconns plugin and the changes to the snmp plugin.
Florian Forster [Thu, 25 Oct 2007 13:32:26 +0000 (15:32 +0200)]
ChangeLog: Documented the new tcpconns plugin and the changes to the snmp plugin.

17 years agoREADME: Improved the dependency list a little.
Florian Forster [Thu, 25 Oct 2007 09:42:37 +0000 (11:42 +0200)]
README: Improved the dependency list a little.

17 years agoChangeLog: Fixed many many typos.
Florian Forster [Thu, 25 Oct 2007 09:36:00 +0000 (11:36 +0200)]
ChangeLog: Fixed many many typos.

17 years agoFixed some typos in the manpages.
Sebastian Harl [Wed, 24 Oct 2007 22:29:28 +0000 (00:29 +0200)]
Fixed some typos in the manpages.

Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
17 years agoMerge branch 'collectd-4.1'
Florian Forster [Wed, 24 Oct 2007 19:36:44 +0000 (21:36 +0200)]
Merge branch 'collectd-4.1'

Conflicts:

ChangeLog
contrib/PerlLib/Collectd.pm

17 years agoBumped version to 4.1.3; Updated ChangeLog. collectd-4.1.3
Florian Forster [Wed, 24 Oct 2007 18:51:51 +0000 (20:51 +0200)]
Bumped version to 4.1.3; Updated ChangeLog.

17 years agocontrib/PerlLib/Collectd.pm: Bumped version to 4.1.3.
Florian Forster [Wed, 24 Oct 2007 18:49:33 +0000 (20:49 +0200)]
contrib/PerlLib/Collectd.pm: Bumped version to 4.1.3.

17 years agoMerge branch 'collectd-4.1'
Florian Forster [Wed, 24 Oct 2007 18:11:05 +0000 (20:11 +0200)]
Merge branch 'collectd-4.1'

17 years agoconfigure.in: Added "rrdtool" to the module summary.
Sebastian Harl [Mon, 22 Oct 2007 22:05:17 +0000 (00:05 +0200)]
configure.in: Added "rrdtool" to the module summary.

Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
17 years agocollectd-perl(5): Added note about multi-threading.
Sebastian Harl [Mon, 22 Oct 2007 22:04:38 +0000 (00:04 +0200)]
collectd-perl(5): Added note about multi-threading.

A new section "BUGS" has been added to the manpage with a short note about
Perl and multithreading.

Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
17 years agoperl plugin: Improved value list conversion.
Sebastian Harl [Sat, 20 Oct 2007 13:42:33 +0000 (15:42 +0200)]
perl plugin: Improved value list conversion.

The perl plugin used to store an internal list of data-source types for
each data-set registered by Perl plugins to get fast access to this
information (which is required to correctly convert a Perl data-set to a
data_set_t struct). However, this prevented Perl plugins to use data-sets
defined in types.db. This patch fixes this issue by requesting the
data-set definition from collectd.

Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
17 years agoperl plugin: Fixed handling of erroneous configuration options.
Sebastian Harl [Tue, 16 Oct 2007 23:14:18 +0000 (01:14 +0200)]
perl plugin: Fixed handling of erroneous configuration options.

An empty block was used instead of returning from the perl_config_*()
functions in case of an error. I wonder how that has happened... :-/

Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
17 years agoperl plugin: Improved "IncludeDir" configuration option.
Sebastian Harl [Tue, 16 Oct 2007 23:13:35 +0000 (01:13 +0200)]
perl plugin: Improved "IncludeDir" configuration option.

The "Do not initialize the Perl interpreter until loading a module."
commit removed support for adding include directories after the Perl
interpreter has been initialized. This patch re-enables it.

Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
17 years agocollectd-perl(5): Updated documentation.
Sebastian Harl [Tue, 16 Oct 2007 23:12:37 +0000 (01:12 +0200)]
collectd-perl(5): Updated documentation.

 * moved configuration documentation from collectd.conf(5) to
   collectd-perl(5)

 * added documentation for the EnableDebugger configuration option

 * added documentation about how to write own plugins

 * added exports and examples section

Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
17 years agocollectd.conf.in: Fixed some missing quotes and words..
Florian Forster [Wed, 24 Oct 2007 17:59:22 +0000 (19:59 +0200)]
collectd.conf.in: Fixed some missing quotes and words..

17 years agoMerge branch 'ad/memcached'
Florian Forster [Wed, 24 Oct 2007 17:57:56 +0000 (19:57 +0200)]
Merge branch 'ad/memcached'

17 years agoAUTHORS, ChangeLog: Added notes about the memcached plugin.
Florian Forster [Wed, 24 Oct 2007 17:57:35 +0000 (19:57 +0200)]
AUTHORS, ChangeLog: Added notes about the memcached plugin.

17 years agocollectd.conf.in: Added the `memcached' plugin.
Florian Forster [Wed, 24 Oct 2007 17:50:35 +0000 (19:50 +0200)]
collectd.conf.in: Added the `memcached' plugin.

17 years agoMerge branch 'pull/master'
Florian Forster [Wed, 24 Oct 2007 17:21:33 +0000 (19:21 +0200)]
Merge branch 'pull/master'

17 years agocollectd.conf(5): Documented the new memcached plugin.
Florian Forster [Tue, 23 Oct 2007 15:05:55 +0000 (17:05 +0200)]
collectd.conf(5): Documented the new memcached plugin.

17 years agoMerge branch 'master' into ad/memcached
Florian Forster [Tue, 23 Oct 2007 14:34:17 +0000 (16:34 +0200)]
Merge branch 'master' into ad/memcached

Conflicts:

src/types.db

17 years agocollectd.conf(5): Documented the new nginx plugin.
Florian Forster [Tue, 23 Oct 2007 14:33:49 +0000 (16:33 +0200)]
collectd.conf(5): Documented the new nginx plugin.

17 years agomemcached plugin: Corrected the copyright notice and removed unnecessary header files.
Florian Forster [Tue, 23 Oct 2007 14:20:09 +0000 (16:20 +0200)]
memcached plugin: Corrected the copyright notice and removed unnecessary header files.

17 years agoemail plugin: Include `stddef.h' which defines the `offsetof' macro.
Florian Forster [Tue, 23 Oct 2007 14:10:47 +0000 (16:10 +0200)]
email plugin: Include `stddef.h' which defines the `offsetof' macro.

17 years agomemcached plugin: Some of the data definitions have been torn appart.
Florian Forster [Tue, 23 Oct 2007 14:10:11 +0000 (16:10 +0200)]
memcached plugin: Some of the data definitions have been torn appart.

17 years agomemcached plugin: Added a plugin to query stats from memcached servers.
Antony Dovgal [Tue, 23 Oct 2007 12:18:16 +0000 (14:18 +0200)]
memcached plugin: Added a plugin to query stats from memcached servers.

17 years agonginx plugin: Changed to the version 4 plugin infrastructure.
Florian Forster [Tue, 23 Oct 2007 11:56:57 +0000 (13:56 +0200)]
nginx plugin: Changed to the version 4 plugin infrastructure.

17 years agoMerge branch 'ff/nginx'
Florian Forster [Tue, 23 Oct 2007 11:33:41 +0000 (13:33 +0200)]
Merge branch 'ff/nginx'

Conflicts:

configure.in
src/Makefile.am

17 years agotcpconns plugin: Added support for Mac OS X (and possibly FreeBSD).
Florian Forster [Mon, 22 Oct 2007 21:03:12 +0000 (23:03 +0200)]
tcpconns plugin: Added support for Mac OS X (and possibly FreeBSD).

17 years agonginx plugin: Added a plugin to collect `nginx' statistics.
Florian Forster [Fri, 19 Oct 2007 08:02:32 +0000 (10:02 +0200)]
nginx plugin: Added a plugin to collect `nginx' statistics.

nginx is a lightweight webserver and (reverse) proxy and apparently very
popular in Russia. This plugin queries it's status page, parses it and submits
it to collectd, very similar to the apache plugin.

17 years agoMerge branch 'pull/master'
Florian Forster [Fri, 19 Oct 2007 07:23:57 +0000 (09:23 +0200)]
Merge branch 'pull/master'

17 years agocontrib/README: Documented the exec script and the SNMP config.
Florian Forster [Mon, 15 Oct 2007 15:30:18 +0000 (17:30 +0200)]
contrib/README: Documented the exec script and the SNMP config.

17 years agocontrib/exec-smartctl: Added documentation to the script.
Florian Forster [Mon, 15 Oct 2007 15:29:56 +0000 (17:29 +0200)]
contrib/exec-smartctl: Added documentation to the script.

17 years agoMerge branch 'pull/master'
Florian Forster [Sat, 13 Oct 2007 15:16:32 +0000 (17:16 +0200)]
Merge branch 'pull/master'

17 years agocontrib/exec-smartctl: Added a sample exec script which parses the hdd temperature...
Florian Forster [Sat, 13 Oct 2007 15:14:54 +0000 (17:14 +0200)]
contrib/exec-smartctl: Added a sample exec script which parses the hdd temperature using smartctl.

17 years agorrdtool plugin: Add a debugging message into the `queue thread'..
Florian Forster [Fri, 12 Oct 2007 21:16:05 +0000 (23:16 +0200)]
rrdtool plugin: Add a debugging message into the `queue thread'..

17 years agorrdtool plugin: Wait for the ``queue thread'' to exit _after_ signaling it to exit..
Florian Forster [Fri, 12 Oct 2007 20:59:15 +0000 (22:59 +0200)]
rrdtool plugin: Wait for the ``queue thread'' to exit _after_ signaling it to exit..

17 years agoMerge branch 'pull/master'
Florian Forster [Fri, 12 Oct 2007 20:33:11 +0000 (22:33 +0200)]
Merge branch 'pull/master'

17 years agocontrib/snmp-data.conf: Added a sample data configuration for the SNMP plugin.
Florian Forster [Fri, 12 Oct 2007 20:31:51 +0000 (22:31 +0200)]
contrib/snmp-data.conf: Added a sample data configuration for the SNMP plugin.

17 years agoipvs plugin: Fix a feaking stupid typo..
Florian Forster [Fri, 12 Oct 2007 17:10:19 +0000 (19:10 +0200)]
ipvs plugin: Fix a feaking stupid typo..

17 years agoMerge branch 'collectd-4.1'
Florian Forster [Fri, 12 Oct 2007 16:59:29 +0000 (18:59 +0200)]
Merge branch 'collectd-4.1'

Conflicts:

ChangeLog

17 years agoMerge branch 'ff/tcpconns'
Florian Forster [Fri, 12 Oct 2007 16:57:51 +0000 (18:57 +0200)]
Merge branch 'ff/tcpconns'

17 years agocollectd.conf.in: Added sample configuration for the tcpconns plugin.
Florian Forster [Fri, 12 Oct 2007 16:57:04 +0000 (18:57 +0200)]
collectd.conf.in: Added sample configuration for the tcpconns plugin.

17 years agoipvs plugin: Assurd that `sockfd >= 0'.
Florian Forster [Fri, 12 Oct 2007 16:48:21 +0000 (18:48 +0200)]
ipvs plugin: Assurd that `sockfd >= 0'.

The init-function should return non-zero in that case and the plugin should be
disabled, but I'd rather not rely on such conventions too much..

17 years agoAdded documentation about ipvs to README, ChangeLog and collectd.conf.in.
Sebastian Harl [Fri, 12 Oct 2007 14:51:04 +0000 (16:51 +0200)]
Added documentation about ipvs to README, ChangeLog and collectd.conf.in.

Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
17 years agoipvs plugin: Check for correct IPVS version in cipvs_init().
Sebastian Harl [Fri, 12 Oct 2007 14:14:25 +0000 (16:14 +0200)]
ipvs plugin: Check for correct IPVS version in cipvs_init().

I took over the required minimum version (1.1.4) as used in ipvsadm 1.24
for Linux kernels >= 2.6.

Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
17 years agoipvs plugin: Replaced ipvs_strerror() with sstrerror().
Sebastian Harl [Fri, 12 Oct 2007 12:32:20 +0000 (14:32 +0200)]
ipvs plugin: Replaced ipvs_strerror() with sstrerror().

ipvs_strerror() handles a few special cases in libipvs which are not
relevant in this plugin.

Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
17 years agoipvs plugin: Get IP_VS_SO_GET_INFO in ip_vs_get_services().
Sebastian Harl [Fri, 12 Oct 2007 12:31:29 +0000 (14:31 +0200)]
ipvs plugin: Get IP_VS_SO_GET_INFO in ip_vs_get_services().

IP_VS_SO_GET_INFO also provides the number of services which might change after
initializing the plugin. Also, the globale variable ipvs_info could be removed
as ip_vs_get_services() is the only function using these information.

Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
17 years agoipvs plugin: Fixed a memory leak in cipvs_submit_services().
Sebastian Harl [Wed, 10 Oct 2007 18:37:26 +0000 (20:37 +0200)]
ipvs plugin: Fixed a memory leak in cipvs_submit_services().

The ip_vs_get_dests pointer has not been freed... :-/

Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
17 years agoipvs plugin: Use sstrerror() instead of strerror().
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>
17 years agoconfigure, ipvs plugin: Check for ip_vs.h.
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>
17 years agoipvs: Added plugin to collect IPVS connection statistics.
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>
17 years agoBeautifying some more debug messages..
Florian Forster [Fri, 12 Oct 2007 16:35:10 +0000 (18:35 +0200)]
Beautifying some more debug messages..

17 years agoMerge branch 'collectd-4.0' into collectd-4.1
Florian Forster [Fri, 12 Oct 2007 16:33:59 +0000 (18:33 +0200)]
Merge branch 'collectd-4.0' into collectd-4.1

Conflicts:

src/rrdtool.c

17 years agoBeautifying many debug messages..
Florian Forster [Fri, 12 Oct 2007 16:32:53 +0000 (18:32 +0200)]
Beautifying many debug messages..

17 years agorrdtool plugin: Wait for the `queue thread' to exit..
Florian Forster [Fri, 12 Oct 2007 16:22:51 +0000 (18:22 +0200)]
rrdtool plugin: Wait for the `queue thread' to exit..

..before returning from the shutdown function.

17 years agonetwork plugin: Flush the buffer in the `shutdown' function..
Florian Forster [Fri, 12 Oct 2007 16:20:25 +0000 (18:20 +0200)]
network plugin: Flush the buffer in the `shutdown' function..

17 years agoxmms plugin: Return `-1' when values could be read but are weird.
Florian Forster [Fri, 12 Oct 2007 16:09:29 +0000 (18:09 +0200)]
xmms plugin: Return `-1' when values could be read but are weird.