collectd.git
9 years agoadd credits for new plugins
Marc Fournier [Mon, 17 Nov 2014 08:47:33 +0000 (09:47 +0100)]
add credits for new plugins

9 years agosmart: mention support lib in README
Marc Fournier [Mon, 17 Nov 2014 08:47:04 +0000 (09:47 +0100)]
smart: mention support lib in README

9 years agoadapt contrib script
Pierre-Yves Ritschard [Sat, 15 Nov 2014 09:47:05 +0000 (10:47 +0100)]
adapt contrib script

9 years agoMerge pull request #796 from mfournier/write_redis-colon-mistake
Pierre-Yves Ritschard [Sat, 15 Nov 2014 14:45:00 +0000 (15:45 +0100)]
Merge pull request #796 from mfournier/write_redis-colon-mistake

write_redis: re-add colon dropped in b7984797 + manpage

9 years agoMerge pull request #719 from mfournier/openldap-improvements-rebased
Pierre-Yves Ritschard [Sat, 15 Nov 2014 09:52:47 +0000 (10:52 +0100)]
Merge pull request #719 from mfournier/openldap-improvements-rebased

Openldap plugin

9 years agoMerge pull request #795 from vincentbernat/fix/libstatgrab
Pierre-Yves Ritschard [Sat, 15 Nov 2014 09:51:49 +0000 (10:51 +0100)]
Merge pull request #795 from vincentbernat/fix/libstatgrab

libstatgrab: fix sg_init() invocation for libstatgrab >= 0.9

9 years agoMerge pull request #797 from vincentbernat/feature/libatasmart
Pierre-Yves Ritschard [Sat, 15 Nov 2014 09:49:32 +0000 (10:49 +0100)]
Merge pull request #797 from vincentbernat/feature/libatasmart

smart: add a SMART plugin

9 years agoMerge pull request #800 from pyr/feature/riemann-batch
Pierre-Yves Ritschard [Sat, 15 Nov 2014 09:49:17 +0000 (10:49 +0100)]
Merge pull request #800 from pyr/feature/riemann-batch

Add a batching mechanism for riemann TCP writes

9 years agoMerge pull request #798 from pyr/feature/upstart-job
Pierre-Yves Ritschard [Sat, 15 Nov 2014 09:47:49 +0000 (10:47 +0100)]
Merge pull request #798 from pyr/feature/upstart-job

Support both systemd and upstart.

9 years agowrite_redis: avoid passing a float/double to redisCommand()
Marc Fournier [Fri, 14 Nov 2014 21:04:16 +0000 (22:04 +0100)]
write_redis: avoid passing a float/double to redisCommand()

... as it seems to not be well supported by hiredis 0.10.1 on Debian
7.0, leading to a segfault. Storing the string representation in a
variable instead is the compromise I found to make the plugin work on
this system.

9 years agolibstatgrab: fix sg_get_disk_io_stats() invocation for libstatgrab >= 0.9
Vincent Bernat [Thu, 13 Nov 2014 16:57:46 +0000 (17:57 +0100)]
libstatgrab: fix sg_get_disk_io_stats() invocation for libstatgrab >= 0.9

In those versions, `sg_get_disk_io_stats()` need to be invoked a pointer
to size_t instead of pointer to int. Such a requirement is detected at
configure-time.

Fixes: #445

9 years agoopenldap: add mention in README
Marc Fournier [Wed, 12 Nov 2014 17:05:33 +0000 (18:05 +0100)]
openldap: add mention in README

9 years agoopenldap: relicence to MIT
Marc Fournier [Wed, 12 Nov 2014 16:55:26 +0000 (17:55 +0100)]
openldap: relicence to MIT

... with Kimo's agreement. Also add myself to copyright holders.

9 years agosmart: when threshold is valid, also test for "less or equal"
Vincent Bernat [Wed, 12 Nov 2014 14:39:42 +0000 (15:39 +0100)]
smart: when threshold is valid, also test for "less or equal"

When the threshold is 0, a value of 0 should hit the threshold.

9 years agoLink aggregation.so to libm.so
Bjørn Nordbø [Wed, 12 Nov 2014 11:27:43 +0000 (12:27 +0100)]
Link aggregation.so to libm.so

Conflicts:
src/Makefile.am

9 years agolibstatgrab: fix sg_get_user_stats() invocation for libstatgrab >= 0.9
Vincent Bernat [Wed, 12 Nov 2014 12:19:05 +0000 (13:19 +0100)]
libstatgrab: fix sg_get_user_stats() invocation for libstatgrab >= 0.9

In those versions, `sg_get_user_stats()` need to be invoked with an
additional argument. The need for such an argument is detected at
configure-time.

Fixes: #445

9 years agolibstatgrab: fix sg_init() invocation for libstatgrab >= 0.9
Vincent Bernat [Fri, 7 Nov 2014 22:46:45 +0000 (23:46 +0100)]
libstatgrab: fix sg_init() invocation for libstatgrab >= 0.9

In those versions, `sg_init()` need to be invoked with an additional
argument. The need for such an argument is detected at configure-time.

Fixes: #445

9 years agoMerge pull request #803 from bnordbo/aggregation-libm
Pierre-Yves Ritschard [Wed, 12 Nov 2014 11:35:00 +0000 (12:35 +0100)]
Merge pull request #803 from bnordbo/aggregation-libm

Link aggregation.so to libm.so

9 years agoLink aggregation.so to libm.so
Bjørn Nordbø [Wed, 12 Nov 2014 11:27:43 +0000 (12:27 +0100)]
Link aggregation.so to libm.so

9 years agoindentation
Fabien Wernli [Wed, 12 Nov 2014 11:06:09 +0000 (12:06 +0100)]
indentation

Change-Id: I0201ac6e3c6e3c9bfcf55b74df6f13b9d961a90e

9 years agoallow for 'ReportByCpu false' and 'ValuesPercentage false'
Fabien Wernli [Wed, 12 Nov 2014 10:21:43 +0000 (11:21 +0100)]
allow for 'ReportByCpu false' and 'ValuesPercentage false'
this will allow for aggregating total cpu values while keeping derives
(ticks)

Change-Id: Ic22a1b52a5897c18398fa25095a0f3ebcc403ee1

9 years agoMerge pull request #765 from tokkee/sh/write-err
Pierre-Yves Ritschard [Tue, 11 Nov 2014 18:39:58 +0000 (19:39 +0100)]
Merge pull request #765 from tokkee/sh/write-err

Use the complain mechanism to report write failures.

9 years agoAdd a batching mechanism for riemann TCP writes
Pierre-Yves Ritschard [Tue, 11 Nov 2014 15:09:48 +0000 (16:09 +0100)]
Add a batching mechanism for riemann TCP writes

This does not batch notifications.

9 years agonetwork: don't enable gcrypt thread callbacks when gcrypt recent enough
Vincent Bernat [Fri, 7 Nov 2014 14:20:22 +0000 (15:20 +0100)]
network: don't enable gcrypt thread callbacks when gcrypt recent enough

From `gcrypt.h`:

> NOTE: Since Libgcrypt 1.6 the thread callbacks are not anymore used.
> However we keep it to allow for some source code compatibility if used
> in the standard way.

Otherwise, we get a deprecation warning which is turned into an error:

```
  CC       libcollectdclient_la-network_buffer.lo
../../../src/libcollectdclient/network_buffer.c:58:15: error: 'gcry_thread_cbs' is deprecated (declared at /usr/include/gcrypt.h:213) [-Werror=deprecated-declarations]
 GCRY_THREAD_OPTION_PTHREAD_IMPL;
```

Fixes: #632

9 years agoMerge pull request #793 from vincentbernat/fix/gcrypt-deprecated
Pierre-Yves Ritschard [Tue, 11 Nov 2014 11:13:30 +0000 (12:13 +0100)]
Merge pull request #793 from vincentbernat/fix/gcrypt-deprecated

network: don't enable gcrypt thread callbacks when gcrypt recent enough

9 years agoadd write_redis to manpage
Marc Fournier [Tue, 11 Nov 2014 10:39:40 +0000 (11:39 +0100)]
add write_redis to manpage

9 years agoMerge pull request #792 from vincentbernat/fix/out-of-tree-build
Pierre-Yves Ritschard [Tue, 11 Nov 2014 10:27:35 +0000 (11:27 +0100)]
Merge pull request #792 from vincentbernat/fix/out-of-tree-build

build: fix out-of-tree build

9 years agoSupport both systemd and upstart.
Pierre-Yves Ritschard [Fri, 7 Nov 2014 12:56:21 +0000 (13:56 +0100)]
Support both systemd and upstart.

This checks appropriate environment variables. When supervised
by either upstart or systemd, collectd will not daemonize but
will signal readyness with the appropriate method.

This allows collectd to be either configured with `expect stop`
in upstart or `Type=notify` with systemd.

The rationale for this is detailed here: http://spootnik.org/entries/2014/11/09_pid-tracking-in-modern-init-systems.html

9 years agosmart: add notifications when a value is below the threshold
Vincent Bernat [Mon, 10 Nov 2014 10:36:58 +0000 (11:36 +0100)]
smart: add notifications when a value is below the threshold

9 years agosmart: add a SMART plugin
Vincent Bernat [Fri, 7 Nov 2014 14:13:27 +0000 (15:13 +0100)]
smart: add a SMART plugin

This plugin uses libatasmart:
 http://0pointer.de/blog/projects/being-smart.html

As libatasmart is Linux-only, the plugin is therefore Linux-only
too. The disks are discovered through libudev.

Each SMART attribute is extracted. The current value, worst value,
threshold value (if any) are recorded. Those are normalized
values (between 0 and 255, higher is better). For some values, it makes
more sense to record the raw value. libatasmart is converting this raw
value to something sensible. We record that form. Sometimes, this is
just the raw value but sometimes this is converted to another scale (for
example, the temperature). People should know what each attribute means
before using those values. Otherwise, the normalized values are better.

Four values are (power-on time, power cycle count, bad sectors and
temperature) are also recorded on their own. Those are usually the
values that the user care about the most.

Here is an excerpt of the plugin output with the CSV plugin (the SSD
disk on my laptop doesn't provide a temperature sensor):

    .
    └── zoro.exoscale.ch
        └── smart-sda
            ├── smart_attribute-attribute-173-2014-11-10
            ├── smart_attribute-attribute-174-2014-11-10
            ├── smart_attribute-available-reserved-space-2014-11-10
            ├── smart_attribute-end-to-end-error-2014-11-10
            ├── smart_attribute-erase-fail-count-2014-11-10
            ├── smart_attribute-power-cycle-count-2014-11-10
            ├── smart_attribute-power-on-hours-2014-11-10
            ├── smart_attribute-power-on-seconds-2-2014-11-10
            ├── smart_attribute-program-fail-count-2014-11-10
            ├── smart_attribute-reallocated-sector-count-2014-11-10
            ├── smart_attribute-reported-uncorrect-2014-11-10
            ├── smart_attribute-total-lbas-read-2014-11-10
            ├── smart_attribute-total-lbas-written-2014-11-10
            ├── smart_attribute-udma-crc-error-count-2014-11-10
            ├── smart_attribute-unused-reserved-blocks-2014-11-10
            ├── smart_attribute-used-reserved-blocks-chip-2014-11-10
            ├── smart_badsectors-2014-11-10
            ├── smart_powercycles-2014-11-10
            └── smart_poweron-2014-11-10

    $ cat zoro.exoscale.ch/smart-sda/smart_attribute-total-lbas-read-2014-11-10
    epoch,current,worst,threshold,pretty
    1415613266.376,100.000000,100.000000,0.000000,281018.000000
    1415613276.395,100.000000,100.000000,0.000000,281018.000000
    1415613286.384,100.000000,100.000000,0.000000,281051.000000
    1415613296.383,100.000000,100.000000,0.000000,281051.000000

9 years agowrite_redis: fix format of commands sent to redis
Marc Fournier [Mon, 10 Nov 2014 06:58:13 +0000 (07:58 +0100)]
write_redis: fix format of commands sent to redis

The commands getting submitted to redis now look like this:
"ZADD" "collectd/hostname/entropy/entropy" "1415602051.335973024" "1415602051.335973024:823"
"SADD" "collectd/values" "hostname/entropy/entropy"

... which is the same as in the initial implementation, except for the
added decimals in the timestamp (the plugin was developped before
high-precision timestamps support was added to collectd).

9 years agoredis: add missing constant
Marc Fournier [Mon, 10 Nov 2014 06:57:48 +0000 (07:57 +0100)]
redis: add missing constant

9 years agowrite_redis: re-add colon dropped in b7984797
Marc Fournier [Sat, 8 Nov 2014 23:16:11 +0000 (00:16 +0100)]
write_redis: re-add colon dropped in b7984797

When running f3706b0b87, the following command gets sent to redis:
  "ZADD" "collectd/hostname/entropy/entropy" "1415487432.000000" "1415487432:932"
Meaning the value actually stored, and later returned by redis is:
"<timstamp>:<value>".

b7984797 accidentally dropped the comma separating the timestamp and the
value, which leads the plugin to store a somewhat confusing value in
redis:
  "ZADD" "collectd/hostname/entropy/entropy" "1415487432.000000" "1415487432932"

9 years agowrite_redis: re-add colon dropped in b7984797
Marc Fournier [Sat, 8 Nov 2014 23:16:11 +0000 (00:16 +0100)]
write_redis: re-add colon dropped in b7984797

When running f3706b0b87, the following command gets sent to redis:
  "ZADD" "collectd/hostname/entropy/entropy" "1415487432.000000" "1415487432:932"
Meaning the value actually stored, and later returned by redis is:
"<timstamp>:<value>".

b7984797 accidentally dropped the comma separating the timestamp and the
value, which leads the plugin to store a somewhat confusing value in
redis:
  "ZADD" "collectd/hostname/entropy/entropy" "1415487432.000000" "1415487432932"

9 years agoFix memory leak in redis.c
Michael Spiegle [Fri, 10 Jan 2014 00:48:47 +0000 (00:48 +0000)]
Fix memory leak in redis.c

9 years agoAdd memory_lua data type
Guillem Anguera [Thu, 28 Nov 2013 09:49:18 +0000 (10:49 +0100)]
Add memory_lua data type

9 years agoSet the right order to parse the redis info.
Guillem Anguera [Wed, 27 Nov 2013 14:26:58 +0000 (15:26 +0100)]
Set the right order to parse the redis info.

9 years agoremove all credis left. Migrate write_redis too.
Victor Seva [Thu, 14 Nov 2013 10:59:32 +0000 (11:59 +0100)]
remove all credis left. Migrate write_redis too.

Conflicts:
README

9 years agoRevert types for redis.c plugin.
Andrés J. Díaz [Thu, 14 Nov 2013 13:57:17 +0000 (14:57 +0100)]
Revert types for redis.c plugin.

9 years agouse timeval. keep timeout in milliseconds for backwards compatibility.
Victor Seva [Thu, 14 Nov 2013 12:37:08 +0000 (13:37 +0100)]
use timeval. keep timeout in milliseconds for backwards compatibility.

9 years agoSwitch redis.c plugin from credis to hiredis.
Andrés J. Díaz [Thu, 7 Nov 2013 08:57:53 +0000 (09:57 +0100)]
Switch redis.c plugin from credis to hiredis.

Change the entire redis.c plugin to use libhiredis (tested with
libhiredis0.10) instead on credis. The libhiredis is supported in a number
of distributions like Debian or Ubuntu.

This patch keeps the same functionality that the old redis.c does.

Conflicts:
src/redis.c
src/types.db

9 years agoredhat initscript: add timeout when stopping the daemon
Marc Fournier [Fri, 7 Nov 2014 16:37:40 +0000 (17:37 +0100)]
redhat initscript: add timeout when stopping the daemon

This mitigates the risk of having 2 daemons running simultaneously
during a short period, on restart.

The debian package's initscript does the same thing, using the same
timeout value.

9 years agoignore new dirs
Pierre-Yves Ritschard [Fri, 7 Nov 2014 16:37:09 +0000 (17:37 +0100)]
ignore new dirs

9 years agoDefine _DEFAULT_SOURCE in addition to _BSD_SOURCE
Pierre-Yves Ritschard [Fri, 7 Nov 2014 16:34:32 +0000 (17:34 +0100)]
Define _DEFAULT_SOURCE in addition to _BSD_SOURCE

This enables forward compatibility with the ongoing
deprecation of _BSD_SOURCE.

9 years agoMerge pull request #794 from vincentbernat/fix/kafka-warning
Pierre-Yves Ritschard [Fri, 7 Nov 2014 15:27:08 +0000 (16:27 +0100)]
Merge pull request #794 from vincentbernat/fix/kafka-warning

kafka: fix compilation for older versions of librdkafka

9 years agokafka: fix compilation for older versions of librdkafka
Vincent Bernat [Fri, 7 Nov 2014 14:51:58 +0000 (15:51 +0100)]
kafka: fix compilation for older versions of librdkafka

Since commit f505691270f2317291c372fd5f004a4ffbce9f9a, kafka module was
broken. Enable definition of `kafka_log()` when using kafka logger
callback as well.

9 years agonetwork: don't enable gcrypt thread callbacks when gcrypt recent enough
Vincent Bernat [Fri, 7 Nov 2014 14:20:22 +0000 (15:20 +0100)]
network: don't enable gcrypt thread callbacks when gcrypt recent enough

From `gcrypt.h`:

> NOTE: Since Libgcrypt 1.6 the thread callbacks are not anymore used.
> However we keep it to allow for some source code compatibility if used
> in the standard way.

Otherwise, we get a deprecation warning which is turned into an error:

```
  CC       libcollectdclient_la-network_buffer.lo
../../../src/libcollectdclient/network_buffer.c:58:15: error: 'gcry_thread_cbs' is deprecated (declared at /usr/include/gcrypt.h:213) [-Werror=deprecated-declarations]
 GCRY_THREAD_OPTION_PTHREAD_IMPL;
```

Fixes: #632

9 years agobuild: fix out-of-tree build
Vincent Bernat [Fri, 7 Nov 2014 14:40:37 +0000 (15:40 +0100)]
build: fix out-of-tree build

When building collectd out of tree, `srcdir` and `builddir` are
different. We ask to search path in `$(top_srcdir)/src` since this is
needed to find `liboconfig/config.h`. Also fix search path for
libcollectdclient where only one header is in `builddir` while the
remaining are in `srcdir`.

9 years agoMerge pull request #791 from mfournier/fix-lvm-merge-conflict-mistake
Marc Fournier [Thu, 6 Nov 2014 20:08:37 +0000 (21:08 +0100)]
Merge pull request #791 from mfournier/fix-lvm-merge-conflict-mistake

lvm: remove duplicate call to lvm_submit()

9 years agolvm: remove duplicate call to lvm_submit()
Marc Fournier [Wed, 5 Nov 2014 15:18:03 +0000 (16:18 +0100)]
lvm: remove duplicate call to lvm_submit()

This got added by accident when solving the merge conflict in 103f05e0.

It led to the plugin triggering the classical "uc_update: Value too old"
error message.

9 years agoMerge pull request #764 from tokkee/sh/collectd-5.3
Pierre-Yves Ritschard [Tue, 4 Nov 2014 16:41:38 +0000 (17:41 +0100)]
Merge pull request #764 from tokkee/sh/collectd-5.3

write_graphite plugin: Improved error reporting when connecting to the server.

9 years agofix grammar in plugin loading error message
Katelyn Perry [Mon, 3 Nov 2014 23:11:14 +0000 (17:11 -0600)]
fix grammar in plugin loading error message

"cause for this problem are" => "cause for this problem is"

9 years agologfile: avoid total silence in case of a misconfiguration
Marc Fournier [Tue, 24 Jun 2014 15:47:08 +0000 (17:47 +0200)]
logfile: avoid total silence in case of a misconfiguration

Basically the same patch that was applied to syslog.c in 84c38056

9 years agocorrect typo in error message
Marc Fournier [Tue, 24 Jun 2014 15:48:26 +0000 (17:48 +0200)]
correct typo in error message

9 years agoSyslog: if we can't find the loglevel specified by the configuration string default...
Wilfried Goesgens [Sat, 7 Jun 2014 10:01:32 +0000 (12:01 +0200)]
Syslog: if we can't find the loglevel specified by the configuration string default to 'info' and warn about the unknown configuration option. no way to make syslog totaly silent anymore.

9 years agos/libvirt/virt/ in doc & rpm specfile
Marc Fournier [Mon, 3 Nov 2014 10:24:38 +0000 (11:24 +0100)]
s/libvirt/virt/ in doc & rpm specfile

... as this plugin was renamed in 62f94860.

9 years agobuild: update reference to files moved in 216c6246
Marc Fournier [Mon, 3 Nov 2014 09:23:32 +0000 (10:23 +0100)]
build: update reference to files moved in 216c6246

Fixes #785

9 years agoMerge pull request #772 from mschenck/write_tsdb-type-type_instance-differentiate
Marc Fournier [Fri, 31 Oct 2014 14:21:25 +0000 (15:21 +0100)]
Merge pull request #772 from mschenck/write_tsdb-type-type_instance-differentiate

Including vl->type, even when vl->type_instance is available to avoid ov...

9 years agoopenldap: remove reference to shared LDFLAGS
Marc Fournier [Fri, 31 Oct 2014 13:23:11 +0000 (14:23 +0100)]
openldap: remove reference to shared LDFLAGS

following changes done in 4de560d2c.

9 years agocurl_json: fix the array access implemented in f1e1e37e
Wilfried Goesgens [Thu, 30 Oct 2014 20:32:17 +0000 (21:32 +0100)]
curl_json: fix the array access implemented in f1e1e37e

In the avl-tree we store two different structs, cj_key_t for the value
we search, c_avl_tree_t for sub-nodes.
The old version does assume when it will find a key, and when a tree,
which doesn't have to be right in all cases.
Therefore we utilize the magic to revalidate this cast.
Being able to tell tree from key, we now can also implement array access
on the right most node of the tree-path.

9 years agoMerge pull request #778 from landryb/openbsd_fix_processes_plugin
Pierre-Yves Ritschard [Thu, 30 Oct 2014 13:03:31 +0000 (14:03 +0100)]
Merge pull request #778 from landryb/openbsd_fix_processes_plugin

Fix the processes plugin on OpenBSD (#776)

9 years agoMerge pull request #779 from landryb/openbsd_build_fixes
Pierre-Yves Ritschard [Thu, 30 Oct 2014 13:03:10 +0000 (14:03 +0100)]
Merge pull request #779 from landryb/openbsd_build_fixes

Openbsd build fixes

9 years agovarnish: add some detail & references to manpage
Marc Fournier [Wed, 29 Oct 2014 15:16:46 +0000 (16:16 +0100)]
varnish: add some detail & references to manpage

9 years agovarnish: manpage & example cleanup
Marc Fournier [Tue, 28 Oct 2014 23:38:21 +0000 (00:38 +0100)]
varnish: manpage & example cleanup

Consitently alphabetically ordered options and ensured all version
limitations are mentioned.

9 years agovarnish: correct an erroneous type
Marc Fournier [Tue, 28 Oct 2014 18:24:45 +0000 (19:24 +0100)]
varnish: correct an erroneous type

Affects Varnish 3 only.

9 years agovarnish: monitor VSM usage stats, made available in V4
Marc Fournier [Tue, 28 Oct 2014 17:35:55 +0000 (18:35 +0100)]
varnish: monitor VSM usage stats, made available in V4

9 years agovarnish: monitor 2 purge-relatad metrics added in V4
Marc Fournier [Tue, 28 Oct 2014 17:28:56 +0000 (18:28 +0100)]
varnish: monitor 2 purge-relatad metrics added in V4

9 years agovarnish: add a couple of metrics available both in V3 & V4
Marc Fournier [Tue, 28 Oct 2014 16:55:41 +0000 (17:55 +0100)]
varnish: add a couple of metrics available both in V3 & V4

9 years agovarnish: adapt to metrics renames & deprecations in varnish4
Marc Fournier [Tue, 28 Oct 2014 14:46:20 +0000 (15:46 +0100)]
varnish: adapt to metrics renames & deprecations in varnish4

Summary of changes:
- connections: "accepted" & "dropped" are now found in the session section
- dirdns: doesn't exist in varnish 4 anymore
- objects: "n_obj*" were removed from varnish 4
- ban: "obj", "req" & "completed" bans were added. As a lot of new
  "tested" metrics are available, so we only collectd the overall total
  now
- session: metrics from "connections" and "threads" categories were
  moved here
- struct: "n_sess*" were removed
- totals: new, more detailed *bytes metrics were made available
- threads: new metrics were made available. "queued" was moved the
  session section.

9 years agovarnish: bare minimum changes to support varnish4
Marc Fournier [Tue, 28 Oct 2014 07:32:53 +0000 (08:32 +0100)]
varnish: bare minimum changes to support varnish4

9 years agoconfigure: add varnish4 presence detection
Marc Fournier [Tue, 28 Oct 2014 07:22:02 +0000 (08:22 +0100)]
configure: add varnish4 presence detection

9 years agoRecent NetBSD versions also use a TAILQ.
Landry Breuil [Mon, 27 Oct 2014 09:13:42 +0000 (10:13 +0100)]
Recent NetBSD versions also use a TAILQ.

9 years agoUse cpu_stage() where expected in the CAN_USE_SYSCTL, HAVE_LIBSTATGRAB and HAVE_SYSCT...
Landry Breuil [Mon, 27 Oct 2014 08:38:31 +0000 (09:38 +0100)]
Use cpu_stage() where expected in the CAN_USE_SYSCTL, HAVE_LIBSTATGRAB and HAVE_SYSCTLBYNAME codepaths.

cpu_state() isnt a function.

9 years agoinpt_queue is a TAILQ on OpenBSD
Landry Breuil [Mon, 27 Oct 2014 08:37:58 +0000 (09:37 +0100)]
inpt_queue is a TAILQ on OpenBSD

9 years agoLink collectd-tg with -lpthread if available
Landry Breuil [Mon, 27 Oct 2014 08:36:28 +0000 (09:36 +0100)]
Link collectd-tg with -lpthread if available

otherwise linking fails with undefined refs to pthread_mutex_* functions

9 years agoFix swapctl() argument count detection on OpenBSD.
Landry Breuil [Mon, 27 Oct 2014 08:12:26 +0000 (09:12 +0100)]
Fix swapctl() argument count detection on OpenBSD.

on OpenBSD swapctl() takes three arguments, but is defined in unistd.h
and also needs sys/param.h.

http://www.openbsd.org/cgi-bin/man.cgi/OpenBSD-current/man2/swapctl.2

we need to add those headers to both detections to make sure the test
on 'swapctl takes two arguments' correctly fails.

9 years agoInclude pthread.h in plugin.h to get pthread_t definition.
Landry Breuil [Mon, 27 Oct 2014 07:38:53 +0000 (08:38 +0100)]
Include pthread.h in plugin.h to get pthread_t definition.

9 years agoFix the processes plugin on OpenBSD (#776)
Landry Breuil [Mon, 27 Oct 2014 07:37:14 +0000 (08:37 +0100)]
Fix the processes plugin on OpenBSD (#776)

Properly check for struct kinfo_proc members in configure.ac
Use kvm_getprocs() like it was done on FreeBSD

9 years agoMerge remote-tracking branch 'origin/pr/488'
Marc Fournier [Sun, 26 Oct 2014 18:45:02 +0000 (19:45 +0100)]
Merge remote-tracking branch 'origin/pr/488'

9 years agoLet the config parser accept unquoted IPv6 addresses.
Sebastian Harl [Sat, 23 Nov 2013 12:55:32 +0000 (13:55 +0100)]
Let the config parser accept unquoted IPv6 addresses.

The parser supports raw IPv6 addresses, optional address and port (as
[<addr>]:<port>), and embedded IPv4 addresses.

Based on "Common Patterns" found in the flex manual.

9 years agoMerge pull request #774 from trenkel/master
Sebastian Harl [Sat, 25 Oct 2014 07:17:37 +0000 (09:17 +0200)]
Merge pull request #774 from trenkel/master

Adding get_dataset() to python

9 years agopython: Add get_dataset() to the man page.
Sven Trenkel [Thu, 23 Oct 2014 19:01:13 +0000 (19:01 +0000)]
python: Add get_dataset() to the man page.

9 years agoAdd get_dataset() as a way to get the definition of a dataset from python.
Sven Trenkel [Thu, 23 Oct 2014 16:58:50 +0000 (16:58 +0000)]
Add get_dataset() as a way to get the definition of a dataset from python.
https://github.com/collectd/collectd/issues/771

9 years agoIncluding vl->type, even when vl->type_instance is available to avoid over-writing...
Michael Schenck [Tue, 21 Oct 2014 17:31:40 +0000 (13:31 -0400)]
Including vl->type, even when vl->type_instance is available to avoid over-writing values (i.e. with the 'df' plugin)

9 years agomysql: correct 2 data types in innodb counters
Marc Fournier [Mon, 20 Oct 2014 14:49:04 +0000 (16:49 +0200)]
mysql: correct 2 data types in innodb counters

Thanks to @ekilby for spotting this mistake ! Fixes #757

9 years agoUse the complain mechanism to report write failures.
Sebastian Harl [Sun, 19 Oct 2014 18:25:50 +0000 (20:25 +0200)]
Use the complain mechanism to report write failures.

This ensures that we don't spam the log for each submitted value. Instead, an
exponential backup is used to report permanent errors starting at one message
per second.

9 years agowrite_graphite plugin: Improved error reporting when connecting to the server.
Sebastian Harl [Sun, 19 Oct 2014 16:22:09 +0000 (18:22 +0200)]
write_graphite plugin: Improved error reporting when connecting to the server.

9 years agomissed the output_name
Michael Schenck [Tue, 7 Oct 2014 02:48:09 +0000 (22:48 -0400)]
missed the output_name

9 years agoAdded support for the last two additional columns in add-linux-io-time
Michael Schenck [Tue, 7 Oct 2014 02:40:24 +0000 (22:40 -0400)]
Added support for the last two additional columns in add-linux-io-time

9 years agoMerge pull request #751 from ptbrowne/prepend-sys-path
trenkel [Wed, 1 Oct 2014 14:10:10 +0000 (16:10 +0200)]
Merge pull request #751 from ptbrowne/prepend-sys-path

feat(python-plugin): prepend instead of append ModulePath to sys.path

9 years agodoc(collectd-python): update
Patrick Browne [Wed, 1 Oct 2014 09:18:40 +0000 (11:18 +0200)]
doc(collectd-python): update

9 years agofeat(python-plugin): prepend instead of append ModulePath to sys.path
Patrick Browne [Tue, 30 Sep 2014 08:31:05 +0000 (10:31 +0200)]
feat(python-plugin): prepend instead of append ModulePath to sys.path

When importing a module, you expect the plugin repertory to have higher priority
than your site-packages. It will prevent hard to debug clashing module names problems.
At least, if there is a problem, it will fail more loudly than "module did not register
any config callback"

9 years agocpu plugin: Don't report empty cpu states.
Florian Forster [Fri, 26 Sep 2014 02:10:32 +0000 (19:10 -0700)]
cpu plugin: Don't report empty cpu states.

9 years agostatsd: clarify/simplify documentation & example
Marc Fournier [Thu, 25 Sep 2014 16:54:56 +0000 (18:54 +0200)]
statsd: clarify/simplify documentation & example

9 years agosrc/Makefile.am: Make sure plugins only export "module_register".
Florian Forster [Tue, 23 Sep 2014 14:52:04 +0000 (07:52 -0700)]
src/Makefile.am: Make sure plugins only export "module_register".

While there, put the LDFLAGS shared between all plugins into a separate
variable.

9 years agoMerge remote-tracking branch 'github/pr/697'
Florian Forster [Tue, 23 Sep 2014 14:13:52 +0000 (07:13 -0700)]
Merge remote-tracking branch 'github/pr/697'

9 years agoMerge remote-tracking branch 'github/pr/734'
Florian Forster [Tue, 23 Sep 2014 14:09:47 +0000 (07:09 -0700)]
Merge remote-tracking branch 'github/pr/734'

9 years agoAdded documentation for StatsD module per added functionality in issue #403.
Denis Boulas [Tue, 23 Sep 2014 08:08:25 +0000 (11:08 +0300)]
Added documentation for StatsD module per added functionality in issue #403.

9 years agobind plugin: split bind_xml_stats to v3 and v1_v2.
Victor Berger [Mon, 22 Sep 2014 14:51:36 +0000 (16:51 +0200)]
bind plugin: split bind_xml_stats to v3 and v1_v2.

And minor change to bind_parse_generic_name_attr_value_list.

9 years agoBit shift right by 8 to get return code from exit status
Scott Sanders [Fri, 19 Sep 2014 14:31:18 +0000 (10:31 -0400)]
Bit shift right by 8 to get return code from exit status

Pull-Request: #741
Signed-off-by: Florian Forster <octo@collectd.org>