collectd.git
12 years agocollectd_insert.sql: Let values_update_childs() return table names.
Sebastian Harl [Wed, 14 Nov 2012 18:36:00 +0000 (19:36 +0100)]
collectd_insert.sql: Let values_update_childs() return table names.

The function will now return a set of the names of child tables that have been
created.

12 years agocollectd_insert.sql: Added view 'collectd'.
Sebastian Harl [Thu, 25 Oct 2012 10:37:02 +0000 (12:37 +0200)]
collectd_insert.sql: Added view 'collectd'.

This view provides a join of the 'identifiers' and 'values' tables plus an
additional column with the serialized collectd identifier.

12 years agopostgresql plugin: Added 'CommitInterval' config option.
Sebastian Harl [Thu, 25 Oct 2012 09:00:09 +0000 (11:00 +0200)]
postgresql plugin: Added 'CommitInterval' config option.

If specified, this option causes a writer to put several updates into a single
transaction. This transaction will last for the specified amount of time (in
seconds). By default, each update would be executed in a separate transaction
causing quite some overhead.

12 years agopostgresql plugin: Fixed config key check for <Writer> block.
Sebastian Harl [Wed, 24 Oct 2012 16:33:28 +0000 (18:33 +0200)]
postgresql plugin: Fixed config key check for <Writer> block.

A missing "else" caused incorrect “Ignoring unknown config key "Statement"”
warning messages.

12 years agopostgresql plugin: Updated copyright information.
Sebastian Harl [Sun, 19 Aug 2012 19:48:21 +0000 (21:48 +0200)]
postgresql plugin: Updated copyright information.

12 years agocontrib/postgresql/collectd_insert.sql: Added values_update_childs().
Sebastian Harl [Sun, 19 Aug 2012 19:44:35 +0000 (21:44 +0200)]
contrib/postgresql/collectd_insert.sql: Added values_update_childs().

This function may be used to create the child tables (for the "values" table)
for the next couple of days (if they don't exist already).

12 years agopostgresql plugin: Fixed a possibly uninitialized variable warning.
Sebastian Harl [Sun, 19 Aug 2012 19:43:42 +0000 (21:43 +0200)]
postgresql plugin: Fixed a possibly uninitialized variable warning.

This was identified by 'gcc -O2'.

12 years agocontrib/postgresql/collectd_insert.sql: Added sample writer setup.
Sebastian Harl [Sun, 19 Aug 2012 12:25:41 +0000 (14:25 +0200)]
contrib/postgresql/collectd_insert.sql: Added sample writer setup.

12 years agopostgresql plugin: Pass an array of data-source types to writers.
Sebastian Harl [Sun, 19 Aug 2012 12:14:03 +0000 (14:14 +0200)]
postgresql plugin: Pass an array of data-source types to writers.

The array includes the stringified version of the data-source type, i.e.,
'gauge', 'counter', etc. This will enable the writer to treat different types
differently. However, when having 'StoreRates' enabled (the default) all types
will be 'gauge'. So, in most cases, this won't be used but it has been added
for completeness and to be safe for the future.

12 years agopostgresql plugin: Added 'StoreRates' feature to writers.
Sebastian Harl [Sun, 19 Aug 2012 10:38:21 +0000 (12:38 +0200)]
postgresql plugin: Added 'StoreRates' feature to writers.

Similar to other write plugins, this option causes counter values to be
converted to rates before submitting them to the database. The option defaults
to true.

12 years agopostgresql plugin: Format time in ISO 8601 format when writing data.
Sebastian Harl [Sat, 18 Aug 2012 16:12:43 +0000 (18:12 +0200)]
postgresql plugin: Format time in ISO 8601 format when writing data.

This way, the value may directly be used as a timestamp value in PostgreSQL.

12 years agoutils_time: Added cdtime_to_iso8601() function.
Sebastian Harl [Sat, 18 Aug 2012 16:11:39 +0000 (18:11 +0200)]
utils_time: Added cdtime_to_iso8601() function.

This function formats a cdtime_t value in ISO 8601 format (and ensures that
the string is null terminated).

12 years agopostgresql plugin: Added generic support for writing values to a database.
Sebastian Harl [Sat, 18 Aug 2012 15:23:42 +0000 (17:23 +0200)]
postgresql plugin: Added generic support for writing values to a database.

This has been implemented by requiring the user to specify an SQL statement to
be used for storing a value-list in PostgreSQL. Usually, this should be done
by creating custom functions to take care of that.

The user specified statement will then be called by collectd with eight
arguments: time, host, plugin, plugin instance (or NULL), type, type instance
(or NULL), array of value names (data source names) and an array of the
values.

Two elements have been added to the config parser: A <Writer> block may be
used to name an SQL statement (specified using the 'Statement' option) to be
used for writing data. In a <Database> block, the new option 'Writer' may be
used to apply a writer to a database connection.

The current approach has two benefits: for one, a user may chose whatever
database layout best suits her needs. Also, it is very easy to experiment with
different approaches on how to structure the data in a database without the
need to modify the plugin. This can be done in SQL, which (hopefully) is the
language that people working with PostgreSQL databases like most ;-)
If it happens to turn out that some approach is rather superior, it may still
be re-implemented in a specific plugin in later versions.

12 years agoannotate meta data to json objects
Mark Wong [Thu, 20 Jan 2011 23:18:14 +0000 (15:18 -0800)]
annotate meta data to json objects

Run through any metadata and annotate them to json objects when they are
created.

12 years agoMerge pull request #96 from mstap/master
Florian Forster [Sat, 30 Jun 2012 01:09:57 +0000 (18:09 -0700)]
Merge pull request #96 from mstap/master

add collectd systemd service file

12 years agodescribe collectd.service in contrib/README
Michael Stapelberg [Fri, 29 Jun 2012 23:23:55 +0000 (01:23 +0200)]
describe collectd.service in contrib/README

12 years agoAdd collectd systemd unit file
Michael Stapelberg [Fri, 29 Jun 2012 16:45:49 +0000 (18:45 +0200)]
Add collectd systemd unit file

12 years agooracle plugin: Replace the o_config_set_string() function.
Florian Forster [Thu, 14 Jun 2012 12:48:15 +0000 (14:48 +0200)]
oracle plugin: Replace the o_config_set_string() function.

12 years agooracle plugin: Implement the "Host" option.
Florian Forster [Thu, 14 Jun 2012 12:46:03 +0000 (14:46 +0200)]
oracle plugin: Implement the "Host" option.

12 years agovarnish plugin: Make argument "stats" const. collectd-5.1.0
Florian Forster [Mon, 2 Apr 2012 08:14:12 +0000 (10:14 +0200)]
varnish plugin: Make argument "stats" const.

12 years agoethstat plugin: Fix a typo.
Florian Forster [Mon, 2 Apr 2012 08:04:23 +0000 (10:04 +0200)]
ethstat plugin: Fix a typo.

12 years agoBump version to 5.1.0; Update ChangeLog.
Florian Forster [Sun, 1 Apr 2012 15:15:20 +0000 (17:15 +0200)]
Bump version to 5.1.0; Update ChangeLog.

12 years agoMerge branch 'collectd-5.0'
Florian Forster [Sun, 1 Apr 2012 10:07:20 +0000 (12:07 +0200)]
Merge branch 'collectd-5.0'

12 years agoMerge branch 'collectd-4.10' into collectd-5.0 collectd-5.0.4
Florian Forster [Sun, 1 Apr 2012 10:07:09 +0000 (12:07 +0200)]
Merge branch 'collectd-4.10' into collectd-5.0

Conflicts:
ChangeLog

12 years agoChangeLog: Correct date. collectd-4.10.7
Florian Forster [Sun, 1 Apr 2012 10:06:42 +0000 (12:06 +0200)]
ChangeLog: Correct date.

12 years agoBump version to 5.0.4; Update ChangeLog.
Florian Forster [Sun, 1 Apr 2012 10:06:24 +0000 (12:06 +0200)]
Bump version to 5.0.4; Update ChangeLog.

12 years agoMerge branch 'collectd-4.10' into collectd-5.0
Florian Forster [Sun, 1 Apr 2012 10:01:58 +0000 (12:01 +0200)]
Merge branch 'collectd-4.10' into collectd-5.0

Conflicts:
ChangeLog
src/collectd.conf.pod
src/common.c
src/network.c
src/processes.c
version-gen.sh

12 years agoBump version to 4.10.7; Update ChangeLog.
Florian Forster [Sun, 1 Apr 2012 09:51:38 +0000 (11:51 +0200)]
Bump version to 4.10.7; Update ChangeLog.

12 years agoRevert "Proposal fix for large "MaxPacketSize" use."
Florian Forster [Sat, 31 Mar 2012 15:27:14 +0000 (17:27 +0200)]
Revert "Proposal fix for large "MaxPacketSize" use."

This reverts commit 12213f8dfeee3feb3846aa658def0bb79c1211d0.

12 years agonetwork plugin: Do not forward received notifications.
Florian Forster [Fri, 23 Mar 2012 21:21:43 +0000 (22:21 +0100)]
network plugin: Do not forward received notifications.

The network plugin would send out all notifications it got through its
callback, even the ones it received itself and even when forwarding was
disabled.

With this patch the network plugin will only transmit notifications created
locally -- forwarding of notifications is not implemented due to missing
loop-detection. For loop-detection we would have to keep track of the last
timestamp of each notifications, and since each host/plugin/type/-instance
field may be empty, this is not as straight forward as with value lists. If
someone needs this, they will need to invest some work I'm afraid.

12 years agoMerge pull request #56 from octo/ci/nfs
Florian Forster [Fri, 23 Mar 2012 13:17:00 +0000 (06:17 -0700)]
Merge pull request #56 from octo/ci/nfs

NFS plugin: Add Solaris support.

12 years agoMerge branch 'ff/zfs'
Florian Forster [Fri, 23 Mar 2012 12:53:39 +0000 (13:53 +0100)]
Merge branch 'ff/zfs'

12 years agozfs_arc plugin: Move reading of kstat values into separate functions.
Florian Forster [Fri, 23 Mar 2012 12:52:51 +0000 (13:52 +0100)]
zfs_arc plugin: Move reading of kstat values into separate functions.

This way error handling can be done in a central place and we can do this more
carefully overall.

12 years agoMerge pull request #60 from octo/ar/zfs
Florian Forster [Fri, 23 Mar 2012 12:48:19 +0000 (05:48 -0700)]
Merge pull request #60 from octo/ar/zfs

more zfs kstat values

12 years agozfs_arc plugin: Add copyright header for Aurelien Rougemont.
Florian Forster [Thu, 22 Mar 2012 08:05:12 +0000 (09:05 +0100)]
zfs_arc plugin: Add copyright header for Aurelien Rougemont.

12 years agoProposal fix for large "MaxPacketSize" use.
Cyril Feraudet [Mon, 19 Mar 2012 10:08:06 +0000 (11:08 +0100)]
Proposal fix for large "MaxPacketSize" use.

When we use a "MaxPacketSize" over two thousand of octets (to pass huge
message in notification for example), buffer may not be flushed for a
while.
By flushing buffer when there is about 1400 octets, we're sure there is
no data too longer in.

12 years agozfs_arc plugin: Fix the "hash collision" and "mutex miss" metrics.
Florian Forster [Wed, 21 Mar 2012 06:41:38 +0000 (07:41 +0100)]
zfs_arc plugin: Fix the "hash collision" and "mutex miss" metrics.

12 years agozfs_arc plugin: Fix typo in variable name.
Florian Forster [Tue, 20 Mar 2012 21:40:39 +0000 (22:40 +0100)]
zfs_arc plugin: Fix typo in variable name.

12 years agozfs_arc plugin: Introduce the single-valued "mutex_operation" type.
Florian Forster [Tue, 20 Mar 2012 21:39:39 +0000 (22:39 +0100)]
zfs_arc plugin: Introduce the single-valued "mutex_operation" type.

12 years agozfs_arc plugin: Introduce the single-valued "cache_eviction" type.
Florian Forster [Tue, 20 Mar 2012 21:32:14 +0000 (22:32 +0100)]
zfs_arc plugin: Introduce the single-valued "cache_eviction" type.

12 years agozfs_arc plugin: Convert to use DERIVE.
Florian Forster [Tue, 20 Mar 2012 21:29:59 +0000 (22:29 +0100)]
zfs_arc plugin: Convert to use DERIVE.

12 years agoadd types for deleted, evict, hash, mutex
Aurelien Rougemont [Thu, 1 Mar 2012 13:48:45 +0000 (14:48 +0100)]
add types for deleted, evict, hash, mutex

Signed-off-by: Florian Forster <octo@collectd.org>
12 years agoadd hash_collisions, deleted, mutex_miss, evict_*
Aurelien Rougemont [Thu, 1 Mar 2012 13:40:10 +0000 (14:40 +0100)]
add hash_collisions, deleted, mutex_miss, evict_*

12 years agoFixed Solaris compilation errors
Cosmin Ioiart [Mon, 19 Mar 2012 09:56:03 +0000 (10:56 +0100)]
Fixed Solaris compilation errors

The value returned by get_kstat_value is of type long long whereas values is a union. Fixed the code so that the value gets assigned to one of the union members, in this case counter.

12 years agoFixed solaris configure script generation errors
Cosmin Ioiart [Mon, 19 Mar 2012 09:54:57 +0000 (10:54 +0100)]
Fixed solaris configure script generation errors

The brackets in configure.in and the changes in version-gen.sh are needed in order for the build.sh script to generate the configure script correctly. Else the generated script won't work.

12 years agosrc/common.h: Add comment about return value of read_file_contents().
Florian Forster [Mon, 19 Mar 2012 09:47:22 +0000 (10:47 +0100)]
src/common.h: Add comment about return value of read_file_contents().

12 years agonfs plugin: Minor coding style fixes.
Florian Forster [Sun, 18 Mar 2012 10:35:13 +0000 (11:35 +0100)]
nfs plugin: Minor coding style fixes.

12 years agonfs plugin: Remove duplicated code.
Florian Forster [Sun, 18 Mar 2012 10:27:03 +0000 (11:27 +0100)]
nfs plugin: Remove duplicated code.

Changes include:

* Calculate nfs[234]_procedures_names_num at compile time.
* Made nfs_procedures_submit() more versatile, so it can be used from the Linux
  and the Solaris code.
* Switched to plugin_dispatch_values_secure(), since the code is using the same
  value_list_t for multiple values.
* Broke out nfs_submit_fields() from the Linux code. This removed quite a bit
  of code duplication between the v2/v3 code.
* Broke out nfs_read_kstat() which does the get_kstat_value() call in a loop
  rather than duplicating all the NFS procedure names.

12 years agoEnable modules for Solaris
Cosmin Ioiart [Thu, 8 Mar 2012 10:12:53 +0000 (11:12 +0100)]
Enable modules for Solaris

Enabling nfs,processes and protocols modules for Solaris when running the
configure script.

12 years agoFix Linux compilation errors
Cosmin Ioiart [Tue, 13 Mar 2012 07:38:16 +0000 (08:38 +0100)]
Fix Linux compilation errors

Fixed compilation errors for the linux platform

12 years agoAdded safe-guard for kstat libraries
Cosmin Ioiart [Thu, 23 Feb 2012 14:34:32 +0000 (15:34 +0100)]
Added safe-guard for kstat libraries

12 years agoAdded Solaris support for nfs3 and nfs4 (client/server)
Cosmin Ioiart [Thu, 23 Feb 2012 13:47:47 +0000 (14:47 +0100)]
Added Solaris support for nfs3 and nfs4 (client/server)

12 years agotcpconns plugin: Include <bsd/nlist.h> rather than <nlist.h>.
Florian Forster [Sun, 18 Mar 2012 08:14:54 +0000 (09:14 +0100)]
tcpconns plugin: Include <bsd/nlist.h> rather than <nlist.h>.

It appears that <nlist.h> is being deprecated / moved.
This hopefully fixes Debian bug #664429.

12 years agoMerge branch 'jr/varnish'
Florian Forster [Sat, 17 Mar 2012 10:45:44 +0000 (11:45 +0100)]
Merge branch 'jr/varnish'

12 years agoMerge pull request #48 from octo/pk/processes
Florian Forster [Sat, 17 Mar 2012 10:41:47 +0000 (03:41 -0700)]
Merge pull request #48 from octo/pk/processes

Fix processes plugin under FreeBSD.

12 years agoprocesses plugin: Minimize whitespace-only changes.
Florian Forster [Sat, 17 Mar 2012 10:41:04 +0000 (11:41 +0100)]
processes plugin: Minimize whitespace-only changes.

12 years agoprocesses plugin: Some more minor coding style fixes.
Florian Forster [Sat, 17 Mar 2012 10:34:43 +0000 (11:34 +0100)]
processes plugin: Some more minor coding style fixes.

12 years agoMerge pull request #52 from octo/cf/ethstat
Florian Forster [Sat, 17 Mar 2012 10:20:22 +0000 (03:20 -0700)]
Merge pull request #52 from octo/cf/ethstat

ethstat support

12 years agoethstat plugin: Implement the "MappedOnly" option.
Florian Forster [Sat, 17 Mar 2012 10:18:57 +0000 (11:18 +0100)]
ethstat plugin: Implement the "MappedOnly" option.

12 years agoethstat plugin: Fix indentation. It was a mess, sorry.
Florian Forster [Sat, 17 Mar 2012 09:54:37 +0000 (10:54 +0100)]
ethstat plugin: Fix indentation. It was a mess, sorry.

12 years agosrc/common.c: parse_value: Strip trailing whitespace before parsing.
Florian Forster [Fri, 16 Mar 2012 17:26:08 +0000 (18:26 +0100)]
src/common.c: parse_value: Strip trailing whitespace before parsing.

This hopefully avoids the annoying "trailing garbage" message when the buffer
only contains a newline or space at the end.

12 years agocollectd.conf(5): Document the "Hits" and "Hysteresis" threshold options.
Florian Forster [Fri, 16 Mar 2012 16:44:50 +0000 (17:44 +0100)]
collectd.conf(5): Document the "Hits" and "Hysteresis" threshold options.

Fixes GitHub issue #53.

12 years agoMakefile adds dependency on $(LIBLTDL), which is valued "-lltdl"
Clemens Lang [Sat, 10 Mar 2012 01:30:26 +0000 (02:30 +0100)]
Makefile adds dependency on $(LIBLTDL), which is valued "-lltdl"

When building on OS X, the collectd build failed, because the collectd target
has a dependency on "-lltdl", which is the value the variable $(LIBLTDL) has.
Obviously, this should be the file name instead. I am however not sure how to
specify the correct filename in this case.

Fixes GitHub issue #54.

Signed-off-by: Florian Forster <octo@collectd.org>
12 years agoethstat plugin: Implement the "Map" option.
Florian Forster [Mon, 12 Mar 2012 12:35:38 +0000 (13:35 +0100)]
ethstat plugin: Implement the "Map" option.

12 years agoethstat plugin: Add documentation.
Florian Forster [Mon, 12 Mar 2012 06:38:19 +0000 (07:38 +0100)]
ethstat plugin: Add documentation.

12 years agoethstat plugin: Use the system header files if available.
Florian Forster [Sun, 11 Mar 2012 18:22:06 +0000 (19:22 +0100)]
ethstat plugin: Use the system header files if available.

And disable the plugin when they are not.

12 years agoethstat module: Fix allocation of "ifacelist".
Florian Forster [Sun, 11 Mar 2012 14:53:39 +0000 (15:53 +0100)]
ethstat module: Fix allocation of "ifacelist".

And remove uses of strcpy(3).

12 years agoethstat plugin: Fix includes.
Florian Forster [Sun, 11 Mar 2012 14:49:55 +0000 (15:49 +0100)]
ethstat plugin: Fix includes.

12 years agoethstat plugin: Collect performance statistics from NICs.
Cyril Feraudet [Tue, 4 Oct 2011 13:00:04 +0000 (15:00 +0200)]
ethstat plugin: Collect performance statistics from NICs.

Hi all,

For my needs at work I wrote a plugin for collectd and I wish to share it with
you.

This plugins, temporary called ethstat and wrote in C, collect lot of
performance counter about network interface as "ethtool -S ethX" do by asking
NIC driver module.

At the moment this plugin work only under Linux. Any help would be great for
make it working under Solaris, AIX and co ...

If you think this plugin may be included to collectd sources, what is the
procedure to do it ?

Regards,
Cyril Feraudet

To be added to configuration file to make it work :

LoadPlugin ethstat

<Plugin ethstat>
 Iface "eth0"
 #Iface "eth1"
 #Iface "eth2"
 #Iface "eth3"
</Plugin>

Signed-off-by: Florian Forster <octo@collectd.org>
12 years agovarnish plugin: Simplify the v2/v3 define structs.
Florian Forster [Sun, 11 Mar 2012 14:14:40 +0000 (15:14 +0100)]
varnish plugin: Simplify the v2/v3 define structs.

This somewhat duplicates the code in the read callback, but it's easier to read
than having four or so defines in one function.

Addresses GitHub issue #14.

12 years agovarnish plugin: Closed VSM
Jérôme Renard [Tue, 20 Dec 2011 14:22:55 +0000 (15:22 +0100)]
varnish plugin: Closed VSM

12 years agovarnish plugin: Switched to AC_CHECK_HEADERS
Jérôme Renard [Wed, 26 Oct 2011 23:20:47 +0000 (01:20 +0200)]
varnish plugin: Switched to AC_CHECK_HEADERS

12 years agovarnish plugin: Fixed wrong function name
Jérôme Renard [Wed, 26 Oct 2011 23:02:39 +0000 (01:02 +0200)]
varnish plugin: Fixed wrong function name

12 years agovarnish plugin: Added basic Varnish 3.0 support
Jérôme Renard [Wed, 26 Oct 2011 21:15:00 +0000 (23:15 +0200)]
varnish plugin: Added basic Varnish 3.0 support

12 years agovarnish plugin: Added Varnish version detection flag
Jérôme Renard [Wed, 26 Oct 2011 19:14:15 +0000 (21:14 +0200)]
varnish plugin: Added Varnish version detection flag

12 years agoamqp plugin: Fix compabitility with current librabbitmq.
Florian Forster [Sun, 11 Mar 2012 13:47:24 +0000 (14:47 +0100)]
amqp plugin: Fix compabitility with current librabbitmq.

In particular, add compatibility to the 0.9.1 and current development version.
Unfortunately, no version macro exists, so we need to do some autoconf trickery
:(

Fixes GitHub issue #6.

12 years agoMerge pull request #44 from octo/ff/perl
Florian Forster [Sun, 11 Mar 2012 12:11:33 +0000 (05:11 -0700)]
Merge pull request #44 from octo/ff/perl

Fix race condition in the Perl plugin.

12 years agocollectd.conf(5): Improve the network plugin's documentation.
Florian Forster [Sun, 11 Mar 2012 12:04:13 +0000 (13:04 +0100)]
collectd.conf(5): Improve the network plugin's documentation.

The example given was confusing since it didn't make it clear enough, that only
one "Server" stanza is required.

Resolves GitHub issue #19.

12 years agonetwork plugin: Fix compiler warnings.
Florian Forster [Sun, 11 Mar 2012 11:57:10 +0000 (12:57 +0100)]
network plugin: Fix compiler warnings.

Resolves GitHub issue #49.

12 years agosnmp plugin: Keep track of signedness of ASN values.
Florian Forster [Sun, 11 Mar 2012 11:13:37 +0000 (12:13 +0100)]
snmp plugin: Keep track of signedness of ASN values.

Prior to this, the signed variant was used when casting to gauge_t. This caused
problems with values larger than 2^31-1, since they were casted to negative
values.

Hopefully fixes GitHub issue #50.

12 years agoprocesses plugin: A few coding style fixes for the FreeBSD code.
Florian Forster [Sun, 19 Feb 2012 22:01:35 +0000 (23:01 +0100)]
processes plugin: A few coding style fixes for the FreeBSD code.

Change-Id: I3469a605c0dc0b7ce51049636ab3f82b03fdfa17

12 years agocollectd-5.0.1-mine.patch some processes.c fixes for FreeBSD
Phil Kulin [Sun, 8 Jan 2012 16:50:27 +0000 (19:50 +0300)]
collectd-5.0.1-mine.patch some processes.c fixes for FreeBSD

I welcome from rainy Ingermanland!

Our thoughts are now occupied by Putin and vodka, however...

I have paid attention to a little incorrect data which is given out by
a processes plugin on my beautifull FreeBSD system.
I have corrected them and in process have made absolutely slightly
have improved accuracy and productivity of a processes plugin for
FreeBSD systems.

- Fix strange plural call of getpagesize(). Has entered a global
variable and initialization procedure for FreeBSD
- Data was summarized on all processes including threads. It led to
absolutely uncertain result. Fix based on codebase of FreeBSD top
programm. KERN_PROC_ALL attribute keep for future purposes.
- Gets command argument failed for some processes as system and some
other. It led to error messages to console. Fix based on codebase of
FreeBSD top programm.
- System and user CPU times turned out from the sum of miliseconds
and... Oh! microseconds in one glass with overflow possibility. Fixed.

My girlfriend has left me for such Christmas vacation, but I am
assured that have made good business.

Patch in mail attachment.

--
Non nobis Domine non nobis sed Nomini Tuo da gloriam
Phil Kulin

Change-Id: Ib88faadf5a0fd335b426e9024b0a2e438ddbaf1f
Signed-off-by: Florian Forster <octo@collectd.org>
12 years agowrite_mongodb plugin: Fix reconnection behavior.
Florian Forster [Fri, 9 Mar 2012 15:58:15 +0000 (16:58 +0100)]
write_mongodb plugin: Fix reconnection behavior.

The previous code would never detect a disconnect and act appropriately. In the
process, manual tracking of the connection state is removed in favor of
mongo_is_connected().

12 years agowrite_mongodb plugin: Export DS names and DS types.
Florian Forster [Wed, 7 Mar 2012 10:10:06 +0000 (11:10 +0100)]
write_mongodb plugin: Export DS names and DS types.

The values are exported as an array now. This is very close to the way data is
exported as JSON.

12 years agoMerge pull request #43 from octo/ff/numa
Florian Forster [Wed, 7 Mar 2012 09:54:36 +0000 (01:54 -0800)]
Merge pull request #43 from octo/ff/numa

numa plugin: Add plugin for Non-Uniform Memory Access (NUMA).

12 years agocollectd.conf.in: Add the numa plugin.
Florian Forster [Wed, 7 Mar 2012 09:53:21 +0000 (10:53 +0100)]
collectd.conf.in: Add the numa plugin.

12 years agowrite_mongodb plugin: Actually store time as "date" type.
Florian Forster [Mon, 5 Mar 2012 09:35:58 +0000 (10:35 +0100)]
write_mongodb plugin: Actually store time as "date" type.

12 years agoFixed memory leak in collectdclient library.
Jason Schmidlapp [Thu, 1 Mar 2012 01:27:50 +0000 (20:27 -0500)]
Fixed memory leak in collectdclient library.

Signed-off-by: Florian Forster <octo@collectd.org>
12 years agoperl plugin: Fix a race condition.
Florian Forster [Sun, 4 Mar 2012 10:10:20 +0000 (11:10 +0100)]
perl plugin: Fix a race condition.

This hopefully fixes GitHub issue #9.

12 years agonuma plugin: Add plugin for Non-Uniform Memory Access (NUMA).
Florian Forster [Sun, 4 Mar 2012 09:41:11 +0000 (10:41 +0100)]
numa plugin: Add plugin for Non-Uniform Memory Access (NUMA).

Change-Id: I2610c7d8f73082154672114ad82001c6bd1b6f14

12 years agoMerge pull request #40 from octo/db/processes
Florian Forster [Thu, 1 Mar 2012 09:57:02 +0000 (01:57 -0800)]
Merge pull request #40 from octo/db/processes

Add support for processes with spaces in their names.

12 years agoprocesses plugin: Support processes with spaces in their names.
Florian Forster [Thu, 1 Mar 2012 08:56:56 +0000 (09:56 +0100)]
processes plugin: Support processes with spaces in their names.

… without replacing the space in the process name. This is done by using
an equivalent of strchr() and strrchr() to determine the boundaries of
the second "field".

Change-Id: Id4c1a84c0544554fae05623457d2a7a3e0630db2

12 years agoprocesses plugin: Support processes with spaces in their name.
Darrell Bishop [Sat, 5 Nov 2011 08:29:00 +0000 (09:29 +0100)]
processes plugin: Support processes with spaces in their name.

Fixes GitHub issue #11.

Change-Id: Ifa9db0e020f19da43bbf49bba0626e70c16dc30f

12 years agowrite_mongodb plugin: Actually implement the "Timeout" option.
Florian Forster [Wed, 29 Feb 2012 22:11:26 +0000 (23:11 +0100)]
write_mongodb plugin: Actually implement the "Timeout" option.

Change-Id: I8eb1bc53a15cd301d663e55a5ea71e46013f04c5

12 years agocollectd.conf(5): Add documentation for the write_mongodb plugin.
Florian Forster [Wed, 29 Feb 2012 22:09:58 +0000 (23:09 +0100)]
collectd.conf(5): Add documentation for the write_mongodb plugin.

Resolves GitHub issue #37.

Change-Id: I9b2ff533003e379f0eb81de256a946fdf8851661

12 years agoconntrack plugin: Strip newlie before calling parse_value().
Florian Forster [Wed, 29 Feb 2012 19:47:08 +0000 (20:47 +0100)]
conntrack plugin: Strip newlie before calling parse_value().

Change-Id: Ifa4db20a6b937912db77a214d2c0ef3eeebfa164

12 years agoUse parse_value in the conntrack plugin and submit the result even if it's zero
Louis Opter [Tue, 28 Feb 2012 17:23:06 +0000 (18:23 +0100)]
Use parse_value in the conntrack plugin and submit the result even if it's zero

Dear collectd,

Please find attached a patch for the conntrack plugin.

The patch is about two things:

1. submit the value even if it is zero (which is a legitimate value according
   to types.db);
2. use parse_value and a value_t instead of directly using a double and atof(3).

The first point was important because it meant that the metric was not created
when the initial value was zero. (It could also lead to holes in your graphs).

The parse_value return value is correctly checked, note that the parsed file
ends with a \n which mean that parse_value always complain when running in
debug/info maybe we should replace it with a \0 before handing the buffer to
parse_value() ?

Thanks

--
Louis Opter

Signed-off-by: Florian Forster <octo@collectd.org>
12 years agoFix buffer size for memcached stats answer
Timon [Tue, 28 Feb 2012 11:10:35 +0000 (17:10 +0600)]
Fix buffer size for memcached stats answer

Typical stats answer has ~1900 bytes length.
$ memcached-tool localhost:11211 stats | wc -c
1863
But buffer for this answer was only 1024 bytes length.

Signed-off-by: Florian Forster <octo@collectd.org>
12 years agoMerge pull request #36 from octo/mh/softraid
Florian Forster [Tue, 28 Feb 2012 09:12:09 +0000 (01:12 -0800)]
Merge pull request #36 from octo/mh/softraid

Merge the "md" plugin, collecting disk counts from Linux software-RAID devices.

12 years agoAUTHORS, README: Add Michael Hanselmann / the md plugin.
Florian Forster [Tue, 28 Feb 2012 09:10:10 +0000 (10:10 +0100)]
AUTHORS, README: Add Michael Hanselmann / the md plugin.