Code

collectd.git
10 years agoMerge remote-tracking branch 'github/pr/387' master
Florian Forster [Wed, 7 Aug 2013 07:40:26 +0000 (09:40 +0200)]
Merge remote-tracking branch 'github/pr/387'

10 years agoMerge branch 'ff/statsd'
Florian Forster [Wed, 7 Aug 2013 06:39:28 +0000 (08:39 +0200)]
Merge branch 'ff/statsd'

10 years agoMerge branch 'pr/381'
Florian Forster [Wed, 7 Aug 2013 06:39:08 +0000 (08:39 +0200)]
Merge branch 'pr/381'

10 years agosrc/collectd.conf.in: Unify indentation.
Florian Forster [Wed, 7 Aug 2013 06:39:00 +0000 (08:39 +0200)]
src/collectd.conf.in: Unify indentation.

10 years agosigrok plugin: Ensure consistent logging prefix.
Florian Forster [Wed, 7 Aug 2013 06:33:13 +0000 (08:33 +0200)]
sigrok plugin: Ensure consistent logging prefix.

* Make sure all logging is using the "sigrok plugin: " prefix.
* Improved logging when handling the "LogLevel" option.
* Renamed free_drvopts() to sigrok_free_drvopts(). All functions now use the
  "sigrok_" prefix.
* Don't abort parsing a "Device" block when encountering an incorrect number of
  arguments. The cf_util_* functions will complain about that.

10 years agocollectd.conf(5): sigrok plugin: Improve markup.
Florian Forster [Wed, 7 Aug 2013 06:14:16 +0000 (08:14 +0200)]
collectd.conf(5): sigrok plugin: Improve markup.

10 years agorrdtool plugin: Minor performance improvement.
Florian Forster [Fri, 19 Jul 2013 05:39:47 +0000 (07:39 +0200)]
rrdtool plugin: Minor performance improvement.

Replace the value_list_to_string() function with a version which is optimized
for data sets with a single data source. The original function is still used
for data sets with multiple data sources. This allows to reduce the number of
calls to snprintf() in this (very common) case, resulting in ~2% speedup.

10 years agocsv plugin: set datadir null when free
Manuel Luis Sanmartin Rozada [Tue, 6 Aug 2013 10:30:52 +0000 (12:30 +0200)]
csv plugin: set datadir null when free

If you define twice DataDir:

    <Plugin csv>
DataDir "/opt/collectd/var/lib/collectd/csv"
DataDir stdout
    </Plugin>

the second time datadir will not be null and
you will get garbage in value_list_to_filename

10 years agocsv plugin: fix forgotten "datadir" in re-implement value_list_to_filename()
Manuel Luis Sanmartin Rozada [Mon, 5 Aug 2013 23:05:01 +0000 (01:05 +0200)]
csv plugin: fix forgotten "datadir" in re-implement value_list_to_filename()

In the commit 7f90e30 the re-implementation of value_list_to_filename
forgot to prepend the datadir string.

10 years agosigrok: Update docs to reflect config keyword change
Bert Vermeulen [Mon, 5 Aug 2013 20:33:55 +0000 (22:33 +0200)]
sigrok: Update docs to reflect config keyword change

10 years agosigrok: Change 'interval' option to 'MinimumInterval', and allow 0
Bert Vermeulen [Mon, 5 Aug 2013 20:21:41 +0000 (22:21 +0200)]
sigrok: Change 'interval' option to 'MinimumInterval', and allow 0

A MinimumInterval of 0 means whatever the device sends gets dispatched
to collectd. This is the default.

10 years agoFix temperature type to be unit-agnostic
Bert Vermeulen [Wed, 31 Jul 2013 09:30:16 +0000 (11:30 +0200)]
Fix temperature type to be unit-agnostic

The minimum value of -273.15 implies Celcius, which is not necessarily
what is used for this type.

10 years agoadd sound pressure level type
Bert Vermeulen [Wed, 31 Jul 2013 09:29:53 +0000 (11:29 +0200)]
add sound pressure level type

10 years agoUse value types according to sigrok measured quantity
Bert Vermeulen [Wed, 31 Jul 2013 09:24:36 +0000 (11:24 +0200)]
Use value types according to sigrok measured quantity

10 years agoCode consistency fixes
Bert Vermeulen [Tue, 30 Jul 2013 21:12:26 +0000 (23:12 +0200)]
Code consistency fixes

10 years agoCode cleanup
Bert Vermeulen [Mon, 29 Jul 2013 23:03:00 +0000 (01:03 +0200)]
Code cleanup

10 years agoConfig errors should not be fatal
Bert Vermeulen [Mon, 29 Jul 2013 21:47:25 +0000 (23:47 +0200)]
Config errors should not be fatal

10 years agoFactor out device initialization
Bert Vermeulen [Mon, 29 Jul 2013 20:38:09 +0000 (22:38 +0200)]
Factor out device initialization

10 years agoUse gcc-specific __attribute__ to mark unused parameter
Bert Vermeulen [Mon, 29 Jul 2013 18:08:00 +0000 (20:08 +0200)]
Use gcc-specific __attribute__ to mark unused parameter

10 years agosigrok plugin
Bert Vermeulen [Fri, 26 Jul 2013 12:00:23 +0000 (14:00 +0200)]
sigrok plugin

10 years agostats plugin: Don't check the value of '(value_t).derive'.
Florian Forster [Fri, 26 Jul 2013 13:18:43 +0000 (15:18 +0200)]
stats plugin: Don't check the value of '(value_t).derive'.

statsd_parse_value() will write to (value_t).gauge, so don't read from another
member of the union. This also fixes problems with counter values being zero,
for whatever that is supposed to be useful for.

Github: #358

10 years agosigrok: build system setup
Bert Vermeulen [Wed, 10 Jul 2013 21:54:13 +0000 (23:54 +0200)]
sigrok: build system setup

10 years agoMerge remote-tracking branch 'origin/pr/371'
Marc Fournier [Fri, 19 Jul 2013 18:48:40 +0000 (20:48 +0200)]
Merge remote-tracking branch 'origin/pr/371'

10 years agodf: remove trailing whitespaces
Marc Fournier [Wed, 17 Jul 2013 10:05:49 +0000 (12:05 +0200)]
df: remove trailing whitespaces

10 years agodf: rename percentage types to a more generic name
Marc Fournier [Wed, 17 Jul 2013 09:59:57 +0000 (11:59 +0200)]
df: rename percentage types to a more generic name

10 years agoAdd support for incr/decr counts
Blake Matheny [Wed, 6 Feb 2013 12:04:47 +0000 (07:04 -0500)]
Add support for incr/decr counts

10 years agoreplace nginx_{accepts,handled} DSs
Marc Fournier [Mon, 15 Jul 2013 16:01:39 +0000 (18:01 +0200)]
replace nginx_{accepts,handled} DSs

reusing an existing DS is preferred. GH#227.

10 years ago* change nginx plugin for collectd to submit "nginx_accepts" and
Patrick Shan [Thu, 3 Jan 2013 03:58:59 +0000 (14:58 +1100)]
* change nginx plugin for collectd to submit "nginx_accepts" and
* "nginx_handled"

10 years agoadd 2 missing data types for df percentages
Marc Fournier [Mon, 15 Jul 2013 09:11:43 +0000 (11:11 +0200)]
add 2 missing data types for df percentages

10 years agotail plugin: Remove custom string config function.
Florian Forster [Sun, 14 Jul 2013 06:27:31 +0000 (08:27 +0200)]
tail plugin: Remove custom string config function.

10 years agoMerge branch 'ym/limit_write_queue_length'
Florian Forster [Sat, 13 Jul 2013 09:24:39 +0000 (11:24 +0200)]
Merge branch 'ym/limit_write_queue_length'

10 years agoMerge branch 'collectd-5.3'
Florian Forster [Sat, 13 Jul 2013 09:24:27 +0000 (11:24 +0200)]
Merge branch 'collectd-5.3'

Conflicts:
src/plugin.c

10 years agoMerge branch 'collectd-5.2' into collectd-5.3
Florian Forster [Sat, 13 Jul 2013 09:23:32 +0000 (11:23 +0200)]
Merge branch 'collectd-5.2' into collectd-5.3

10 years agosrc/plugin.c: Some fixes for write limits.
Florian Forster [Sat, 13 Jul 2013 09:19:54 +0000 (11:19 +0200)]
src/plugin.c: Some fixes for write limits.

* Log an error once per second.
* Coding style fixes.
* Separate function for calculating drop probability.

10 years agosrc/configfile.c: Rename options to "WriteQueueLimit{High,Low}".
Florian Forster [Sat, 13 Jul 2013 09:15:01 +0000 (11:15 +0200)]
src/configfile.c: Rename options to "WriteQueueLimit{High,Low}".

The original names are a bit long.

10 years agoFixed a bug with WriteQueueLengthLimitHigh is null/uninitialized
Yves Mettier [Fri, 26 Apr 2013 09:50:18 +0000 (11:50 +0200)]
Fixed a bug with WriteQueueLengthLimitHigh is null/uninitialized

Signed-off-by: Florian Forster <octo@collectd.org>
10 years agoFixes for code quality
Yves Mettier [Tue, 26 Mar 2013 17:25:33 +0000 (18:25 +0100)]
Fixes for code quality

Signed-off-by: Florian Forster <octo@collectd.org>
10 years agofixed a bug in doc near new WriteQueueLengthLimit*
Yves Mettier [Thu, 14 Mar 2013 15:57:43 +0000 (16:57 +0100)]
fixed a bug in doc near new WriteQueueLengthLimit*

Signed-off-by: Florian Forster <octo@collectd.org>
10 years agoAdded new WriteQueueLengthLimit (drop values when bigger)
Yves Mettier [Thu, 14 Mar 2013 15:45:02 +0000 (16:45 +0100)]
Added new WriteQueueLengthLimit (drop values when bigger)

Signed-off-by: Florian Forster <octo@collectd.org>
10 years agosrc/plugin.c: Free the "data_sets" AVL tree.
Florian Forster [Sat, 13 Jul 2013 06:20:28 +0000 (08:20 +0200)]
src/plugin.c: Free the "data_sets" AVL tree.

This pops up every time I investigate memory leaks and it's annoying me.

10 years agowrite_graphite plugin: Don't call close() on invalid file descriptors.
Florian Forster [Sat, 13 Jul 2013 05:46:20 +0000 (07:46 +0200)]
write_graphite plugin: Don't call close() on invalid file descriptors.

10 years agowrite_graphite plugin: Don't call close() on invalid file descriptors.
Florian Forster [Sat, 13 Jul 2013 05:42:18 +0000 (07:42 +0200)]
write_graphite plugin: Don't call close() on invalid file descriptors.

10 years agowrite_graphite plugin: Actually check the return value of wg_send_message().
Florian Forster [Sat, 13 Jul 2013 05:38:05 +0000 (07:38 +0200)]
write_graphite plugin: Actually check the return value of wg_send_message().

Assignment to "status" was missing.

10 years agostatsd plugin: Store values internally as double.
Florian Forster [Fri, 12 Jul 2013 16:56:15 +0000 (18:56 +0200)]
statsd plugin: Store values internally as double.

While the documentation states that "values should generally be integers", this
"should" is not taken in the strict RFC meaning. For compatibility with Etsy's
statsd, handle everything as a double up until the last possible moment.

10 years agoMerge branch 'collectd-5.3'
Florian Forster [Fri, 12 Jul 2013 16:23:20 +0000 (18:23 +0200)]
Merge branch 'collectd-5.3'

Conflicts:
src/collectd.conf.pod

10 years agoMerge branch 'collectd-5.2' into collectd-5.3
Florian Forster [Fri, 12 Jul 2013 16:21:31 +0000 (18:21 +0200)]
Merge branch 'collectd-5.2' into collectd-5.3

10 years agorrdtool, rrdcached plugins: Re-implement value_list_to_filename().
Florian Forster [Fri, 12 Jul 2013 16:19:29 +0000 (18:19 +0200)]
rrdtool, rrdcached plugins: Re-implement value_list_to_filename().

Faster version without snprintf().

10 years agocsv plugin: Re-implement value_list_to_filename().
Florian Forster [Fri, 12 Jul 2013 16:17:19 +0000 (18:17 +0200)]
csv plugin: Re-implement value_list_to_filename().

The new implementation is faster, because it doesn't use snprintf().

10 years agosrc/common.c: Reimplement format_name for performance.
Florian Forster [Thu, 11 Jul 2013 15:58:37 +0000 (17:58 +0200)]
src/common.c: Reimplement format_name for performance.

This is used from uc_update(), i.e. for every value list dispatched, and was
one of the most expensive functions thanks to snprintf().

This reduces total time spent in the format_name() function from 7.78% to 1.89%
during a network stress test.

10 years agostatsd plugin: Make metric names case-sensitive.
Florian Forster [Thu, 11 Jul 2013 12:58:32 +0000 (14:58 +0200)]
statsd plugin: Make metric names case-sensitive.

The StatsD by etsy is case sensitive, so we should do the same. Also, strcmp()
should have better performance than strcasecmp().

10 years agostatsd plugin: Don't use strtok_r() to split multi-metric packets.
Florian Forster [Thu, 11 Jul 2013 11:08:11 +0000 (13:08 +0200)]
statsd plugin: Don't use strtok_r() to split multi-metric packets.

Profiling has shown that it is one of the bottle-necks.

10 years agostatsd plugin: Dont'a call common.c:parse_value().
Florian Forster [Thu, 11 Jul 2013 11:03:12 +0000 (13:03 +0200)]
statsd plugin: Dont'a call common.c:parse_value().

parse_value() is doing a strdup() do it can remove trailing whitespace.
We don't need that for the statsd protocol, so we just call strtoull()
instead, improving performance but a couple of percent again.

10 years agostatsd plugin: Avoid calling snprintf() in the hot path.
Florian Forster [Thu, 11 Jul 2013 08:12:54 +0000 (10:12 +0200)]
statsd plugin: Avoid calling snprintf() in the hot path.

snprintf() is very expensive and the alternative is simple. This shaves
off about 7% of the time spent handling events.

10 years agostatsd plugin: Remove the prefix in the counter and gauge handlers.
Florian Forster [Thu, 11 Jul 2013 08:11:14 +0000 (10:11 +0200)]
statsd plugin: Remove the prefix in the counter and gauge handlers.

The prefix is added in statsd_metric_lookup_unsafe(), so we don't need
to do this here anymore. Since snprintf() is expensive, this increases
performance considerably.

10 years agoTest for end of oid tree without breaking collection loop.
Pierre-Yves Ritschard [Mon, 8 Jul 2013 07:06:35 +0000 (09:06 +0200)]
Test for end of oid tree without breaking collection loop.

10 years agoMerge branch 'fix-stringio-python2.7' of git://github.com/aelse/collectd
Florian Forster [Wed, 3 Jul 2013 16:21:08 +0000 (18:21 +0200)]
Merge branch 'fix-stringio-python2.7' of git://github.com/aelse/collectd

10 years agoMerge branch 'fix-dstype-ordinal-decode_network_values' of git://github.com/aelse...
Florian Forster [Wed, 3 Jul 2013 09:51:46 +0000 (11:51 +0200)]
Merge branch 'fix-dstype-ordinal-decode_network_values' of git://github.com/aelse/collectd

10 years agoMerge branch 'vbartoni/df'
Florian Forster [Wed, 3 Jul 2013 05:46:40 +0000 (07:46 +0200)]
Merge branch 'vbartoni/df'

10 years agodf plugin: Remove trailing white space.
Florian Forster [Wed, 3 Jul 2013 05:46:15 +0000 (07:46 +0200)]
df plugin: Remove trailing white space.

10 years agofixes StringIO unicode handling in python 2.7
Alexander Else [Mon, 1 Jul 2013 07:02:19 +0000 (17:02 +1000)]
fixes StringIO unicode handling in python 2.7

10 years agodecode_network_values dstype is ordinal value of string literal
Alexander Else [Mon, 1 Jul 2013 06:17:12 +0000 (16:17 +1000)]
decode_network_values dstype is ordinal value of string literal

10 years agofix the build
Matt Blair [Mon, 24 Jun 2013 17:11:25 +0000 (10:11 -0700)]
fix the build

10 years agostatsd plugin: Implement the "TimerPercentile" configuration option.
Florian Forster [Sat, 22 Jun 2013 11:21:27 +0000 (13:21 +0200)]
statsd plugin: Implement the "TimerPercentile" configuration option.

10 years agocollectd-threshold(5): Correct the description of the "Interesting" config option.
Florian Forster [Tue, 18 Jun 2013 15:25:46 +0000 (17:25 +0200)]
collectd-threshold(5): Correct the description of the "Interesting" config option.

10 years agothreshold plugin: Fix the "Interesting" configuration option.
Björn [Tue, 18 Jun 2013 14:43:46 +0000 (16:43 +0200)]
threshold plugin: Fix the "Interesting" configuration option.

Signed-off-by: Florian Forster <octo@collectd.org>
10 years agoMerge branch 'feature-write_graphite-udp' of git://github.com/jjmaestro/collectd
Florian Forster [Tue, 18 Jun 2013 06:14:59 +0000 (08:14 +0200)]
Merge branch 'feature-write_graphite-udp' of git://github.com/jjmaestro/collectd

10 years agostats plugin: Add support for sets.
Florian Forster [Mon, 17 Jun 2013 14:47:24 +0000 (16:47 +0200)]
stats plugin: Add support for sets.

10 years agostatsd plugin: Allow several metrics with the same name but different types.
Florian Forster [Mon, 17 Jun 2013 13:15:55 +0000 (15:15 +0200)]
statsd plugin: Allow several metrics with the same name but different types.

This more closely mimicks Etsy's implementation.

10 years agostatsd plugin: Implement the "Delete{Counters,Timers,Gauges}" options.
Florian Forster [Mon, 17 Jun 2013 12:47:45 +0000 (14:47 +0200)]
statsd plugin: Implement the "Delete{Counters,Timers,Gauges}" options.

10 years agostatsd plugin: Add configuration for Host and Port.
Florian Forster [Mon, 17 Jun 2013 11:54:09 +0000 (13:54 +0200)]
statsd plugin: Add configuration for Host and Port.

10 years agostatsd plugin: Initial implementation.
Florian Forster [Mon, 17 Jun 2013 10:00:45 +0000 (12:00 +0200)]
statsd plugin: Initial implementation.

10 years agowrite_graphite plugin: avoid flooding the log with the protocol error check
J. Javier Maestro [Sun, 16 Jun 2013 17:37:32 +0000 (19:37 +0200)]
write_graphite plugin: avoid flooding the log with the protocol error check

Moving the protocol error checking from `wg_callback_init` to `wg_config_node`.
This avoids flooding the log, as suggested by Florian Forster (@octo).

10 years agowrite_graphite plugin: config should fail on error
J. Javier Maestro [Sun, 16 Jun 2013 16:05:53 +0000 (18:05 +0200)]
write_graphite plugin: config should fail on error

This is the preferred way of handling config, as it can be seen in snmp.c. It's
important to fail on a config error to simplify code in other callbacks.

10 years agoUnbreak type_inst value in collectd psql view.
Bernd Ahlers [Mon, 10 Jun 2013 13:48:14 +0000 (15:48 +0200)]
Unbreak type_inst value in collectd psql view.

Signed-off-by: Florian Forster <octo@collectd.org>
10 years agoFix typo
Cyril Plisko [Sun, 9 Jun 2013 16:11:04 +0000 (19:11 +0300)]
Fix typo

recive -> receive

10 years agoPlugin df - reporting both percentage and absolute values
Vedran Bartonicek [Thu, 6 Jun 2013 09:23:19 +0000 (12:23 +0300)]
Plugin df - reporting both percentage and absolute values

10 years agowrite_graphite plugin: Adding myself to AUTHORS :)
J. Javier Maestro [Mon, 3 Jun 2013 17:32:56 +0000 (19:32 +0200)]
write_graphite plugin: Adding myself to AUTHORS :)

10 years agoMerge branch 'xl/zfs'
Florian Forster [Tue, 4 Jun 2013 06:42:25 +0000 (08:42 +0200)]
Merge branch 'xl/zfs'

10 years agozfs_arc plugin: Fix indentation.
Florian Forster [Tue, 4 Jun 2013 06:36:10 +0000 (08:36 +0200)]
zfs_arc plugin: Fix indentation.

10 years agozfs_arc plugin: Use a buffer with fixed size rather than allocating on the heap.
Florian Forster [Tue, 4 Jun 2013 06:35:09 +0000 (08:35 +0200)]
zfs_arc plugin: Use a buffer with fixed size rather than allocating on the heap.

The key length is very predicable, so buffer length is not a problem.

10 years agozfs_arc plugin: Add copyright information for Xin Li.
Florian Forster [Tue, 4 Jun 2013 06:11:26 +0000 (08:11 +0200)]
zfs_arc plugin: Add copyright information for Xin Li.

10 years agowrite_graphite plugin: Adding LogSendErrors to docs, README, etc.
J. Javier Maestro [Mon, 3 Jun 2013 17:31:48 +0000 (19:31 +0200)]
write_graphite plugin: Adding LogSendErrors to docs, README, etc.

10 years agowrite_graphite plugin: Adding LogSendErrors boolean flag
J. Javier Maestro [Mon, 3 Jun 2013 17:24:38 +0000 (19:24 +0200)]
write_graphite plugin: Adding LogSendErrors boolean flag

Sometimes we don't want to hog the syslog with errors that are produced
when the graphite server is down.

Especially for UDP, we want to be able to truly fire-and-forget
(remember to monitor UDP packet receipt failures though :) and having
errors written to the syslog is a burden that should be avoided.

10 years agowrite_graphite plugin: Adding UDP support to docs, README, etc.
J. Javier Maestro [Mon, 3 Jun 2013 17:04:29 +0000 (19:04 +0200)]
write_graphite plugin: Adding UDP support to docs, README, etc.

10 years agowrite_graphite plugin: Adding TCP/UDP support via config
J. Javier Maestro [Mon, 3 Jun 2013 17:03:44 +0000 (19:03 +0200)]
write_graphite plugin: Adding TCP/UDP support via config

UDP allows to "fire-and-forget" data while not bringing the servers down
due to TCP's connection oriented overhead.

The new versions of Graphite support both TCP and UDP streams so it made
sense to add UDP support.

10 years agowrite_riemann plugin: Implement the "TTLFactor" option.
Florian Forster [Mon, 3 Jun 2013 07:07:15 +0000 (09:07 +0200)]
write_riemann plugin: Implement the "TTLFactor" option.

Github: #336

10 years agoMerge branch 'yaccz/curl-status'
Florian Forster [Sat, 1 Jun 2013 07:25:28 +0000 (09:25 +0200)]
Merge branch 'yaccz/curl-status'

10 years agoMerge branch 'vb/df'
Florian Forster [Sat, 1 Jun 2013 07:25:19 +0000 (09:25 +0200)]
Merge branch 'vb/df'

10 years agocurl plugin: Fix compiler warning.
Florian Forster [Sat, 1 Jun 2013 07:23:04 +0000 (09:23 +0200)]
curl plugin: Fix compiler warning.

The compiler thinks the "start" variable may be used uninitialized.

10 years agocollectd.conf(5): Minor fixes.
Florian Forster [Sat, 1 Jun 2013 07:20:59 +0000 (09:20 +0200)]
collectd.conf(5): Minor fixes.

10 years agodf plugin: Rename the percent metrics.
Florian Forster [Sat, 1 Jun 2013 07:19:07 +0000 (09:19 +0200)]
df plugin: Rename the percent metrics.

* Change type to "percent".
* Use "<disk>-bytes" and "<disk>-inodes" as plugin instance. This way we're
  able to use "percent" for both.
* Remove one level of indentation.
* Make casting more explicit (e.g. don't divide a float by a size_t).

10 years agodf plugin: Remove trailing whitespace.
Florian Forster [Fri, 31 May 2013 16:18:40 +0000 (18:18 +0200)]
df plugin: Remove trailing whitespace.

And fix indentation.

10 years agoPlugin df: ReportPercentage
Vedran Bartonicek [Fri, 31 May 2013 10:40:59 +0000 (13:40 +0300)]
Plugin df: ReportPercentage

10 years agoPlugin df free space as percentage.
Vedran Bartonicek [Mon, 27 May 2013 19:42:08 +0000 (22:42 +0300)]
Plugin df free space as percentage.

Signed-off-by: Florian Forster <octo@collectd.org>
10 years agoImplement ARC data collection on FreeBSD.
Xin Li [Thu, 30 May 2013 18:25:09 +0000 (11:25 -0700)]
Implement ARC data collection on FreeBSD.

10 years agoMerge branch 'collectd-5.2' into collectd-5.3
Florian Forster [Thu, 30 May 2013 07:00:09 +0000 (09:00 +0200)]
Merge branch 'collectd-5.2' into collectd-5.3

10 years agosrc/configfile.c: Let errors in included files propagate up to cf_read().
Florian Forster [Thu, 30 May 2013 06:58:06 +0000 (08:58 +0200)]
src/configfile.c: Let errors in included files propagate up to cf_read().

cf_read_generic() returned NULL in two cases: Unable to read file and
file was empty. Since we wanted to allow empty includes, the "include
file with errors" case was not handled properly.

Github: #323

10 years agocontrib/redhat/init.d-collectd: Rename variable to …PIDDIR.
Florian Forster [Thu, 30 May 2013 06:26:09 +0000 (08:26 +0200)]
contrib/redhat/init.d-collectd: Rename variable to …PIDDIR.

Github: #298

10 years agoallow for non-root user to run script.
Fabien Wernli [Thu, 11 Apr 2013 08:43:29 +0000 (10:43 +0200)]
allow for non-root user to run script.
As collectdmon handles its pidfile, this would require to change
COLLECTMONPIDIR to something else than only-root writeable /var/run

Change-Id: I45d2de9dcc976f3b1e18cef5b6b78eeca1d270b2
Signed-off-by: Florian Forster <octo@collectd.org>
10 years agoMerge branch 'collectd-4.10' into collectd-5.2
Florian Forster [Thu, 30 May 2013 06:10:42 +0000 (08:10 +0200)]
Merge branch 'collectd-4.10' into collectd-5.2