Code

collectd.git
15 years agonetapp plugin: Make "config_init" static.
Florian Forster [Thu, 24 Sep 2009 07:42:28 +0000 (09:42 +0200)]
netapp plugin: Make "config_init" static.

15 years agonetapp plugin: build_perf_sys_config: Improve error handling.
Florian Forster [Thu, 24 Sep 2009 07:42:12 +0000 (09:42 +0200)]
netapp plugin: build_perf_sys_config: Improve error handling.

Check return value of "malloc".

15 years agonetapp plugin: Simplify handling of boolean config options.
Florian Forster [Thu, 24 Sep 2009 07:41:27 +0000 (09:41 +0200)]
netapp plugin: Simplify handling of boolean config options.

15 years agonetapp plugin: perf_system_data_t: Remove CPU counters.
Florian Forster [Thu, 24 Sep 2009 07:39:31 +0000 (09:39 +0200)]
netapp plugin: perf_system_data_t: Remove CPU counters.

15 years agonetapp plugin: collect_perf_system_data: Use the submit functions.
Florian Forster [Thu, 24 Sep 2009 07:14:16 +0000 (09:14 +0200)]
netapp plugin: collect_perf_system_data: Use the submit functions.

15 years agonetapp plugin: collect_perf_disk_data: Only query "percentage-saved" if required.
Florian Forster [Thu, 24 Sep 2009 07:08:35 +0000 (09:08 +0200)]
netapp plugin: collect_perf_disk_data: Only query "percentage-saved" if required.

Also, add support for "sis_saved_percent == 100". Probably not useful,
but better than simply skipping that case.

15 years agoMerge commit 'remotes/trenkel/st/netapp' into st/netapp
Florian Forster [Wed, 23 Sep 2009 16:56:31 +0000 (18:56 +0200)]
Merge commit 'remotes/trenkel/st/netapp' into st/netapp

15 years agonetapp plugin: collect_perf_disk_data: Add folding markers.
Florian Forster [Wed, 23 Sep 2009 16:54:15 +0000 (18:54 +0200)]
netapp plugin: collect_perf_disk_data: Add folding markers.

15 years agonetapp plugin: collect_volume_data: Use "submit_double".
Florian Forster [Wed, 23 Sep 2009 16:53:44 +0000 (18:53 +0200)]
netapp plugin: collect_volume_data: Use "submit_double".

15 years agonetapp plugin: Use UINT64_MAX as default value.
Florian Forster [Wed, 23 Sep 2009 16:51:56 +0000 (18:51 +0200)]
netapp plugin: Use UINT64_MAX as default value.

Meaning "invalid".

15 years agonetapp plugin: Implement "submit_two_counters".
Florian Forster [Wed, 23 Sep 2009 16:51:08 +0000 (18:51 +0200)]
netapp plugin: Implement "submit_two_counters".

15 years agonetapp plugin: Removed INFO
Sven Trenkel [Wed, 23 Sep 2009 16:27:09 +0000 (18:27 +0200)]
netapp plugin: Removed INFO

15 years agonetapp plugin: Added “submit” functions and use them in some other functions.
Florian Forster [Wed, 23 Sep 2009 13:23:52 +0000 (15:23 +0200)]
netapp plugin: Added “submit” functions and use them in some other functions.

15 years agocollectd.conf(5): Add markup to the NetApp plugin documentation.
Florian Forster [Wed, 23 Sep 2009 12:02:25 +0000 (14:02 +0200)]
collectd.conf(5): Add markup to the NetApp plugin documentation.

15 years agonetapp plugin: Convert C++-style comments to C-style comments.
Florian Forster [Wed, 23 Sep 2009 10:28:36 +0000 (12:28 +0200)]
netapp plugin: Convert C++-style comments to C-style comments.

15 years agonetapp plugin: Adapt to new dispatch interface.
Florian Forster [Wed, 23 Sep 2009 10:23:08 +0000 (12:23 +0200)]
netapp plugin: Adapt to new dispatch interface.

15 years agoBuild system: Build the netapp plugin when libnetapp is available.
Florian Forster [Wed, 23 Sep 2009 09:59:05 +0000 (11:59 +0200)]
Build system: Build the netapp plugin when libnetapp is available.

15 years agoBuild system: Implement check for the “netapp” library.
Florian Forster [Wed, 23 Sep 2009 09:48:21 +0000 (11:48 +0200)]
Build system: Implement check for the “netapp” library.

15 years agonetapp plugin: New plugin to collect statistics from NetApp filers.
Sven Trenkel [Tue, 22 Sep 2009 07:46:36 +0000 (09:46 +0200)]
netapp plugin: New plugin to collect statistics from NetApp filers.

Moin,

ich wollts ja eigentlich letzte Woche schon geschickt haben, aber hier ists
nun doch noch: Das collectd netapp Plugin. Es ist noch einiges an doppeltem
Code vorhanden, er ist noch nicht schön und der Configurationscode ist noch
nicht in der angemessenen Ausführlichkeit getestet, aber zumindest hier bei
mir funktioniert jetzt alles und ist voll konfiguriertbar.

Kompilieren tut ich das Ganze so:
gcc -g -c -Wall -I include -I /home/ifst/collectd-4.4.2/src netapp.c
gcc -g -o netapp.so -lnetapp -lxml -lpthread -ladt -lssl -lm -shared netapp.o

Mit freundlichen Grüßen

Sven Trenkel

15 years agoMerge branch 'collectd-4.8'
Florian Forster [Thu, 17 Sep 2009 16:34:19 +0000 (18:34 +0200)]
Merge branch 'collectd-4.8'

15 years agoMerge branch 'collectd-4.7' into collectd-4.8
Florian Forster [Thu, 17 Sep 2009 16:33:53 +0000 (18:33 +0200)]
Merge branch 'collectd-4.7' into collectd-4.8

15 years agoperl plugin: Declare the “environ” variable.
Florian Forster [Thu, 17 Sep 2009 16:26:41 +0000 (18:26 +0200)]
perl plugin: Declare the “environ” variable.

15 years agoprocesses plugin: Case argument of “isdigit” to int.
Florian Forster [Thu, 17 Sep 2009 16:02:34 +0000 (18:02 +0200)]
processes plugin: Case argument of “isdigit” to int.

On some platforms passing a char there causes problems :/

15 years agoprocesses plugin: Remove unnecessary call of realloc(3).
Andrés J. Díaz [Thu, 17 Sep 2009 11:15:02 +0000 (13:15 +0200)]
processes plugin: Remove unnecessary call of realloc(3).

Hi Florian (et al)

> you're right, the (re-)allocation of the memory can probably be avoided
> if the function is turned into one with the following prototype:
> -- 8< --
>  static int *ps_read_tasks (int pid,
>     unsigned long *ret_num_proc,
>     unsigned long *ret_num_lwp);
> -- >8 --

Mmm, why not something like: "static int ps_read_task(pid)"?
This returns the number of task for pid passed as argument.
(AFAIK the function only return the number ot threads), why
we need the ret_num_proc and the ret_num_lwp parameters?

My proposal is attached (code is always cleaner than explanations :P)

Regards,
  Andres

Signed-off-by: Florian Forster <octo@huhu.verplant.org>
15 years agoMerge branch 'collectd-4.8'
Florian Forster [Thu, 17 Sep 2009 08:58:25 +0000 (10:58 +0200)]
Merge branch 'collectd-4.8'

15 years agoMerge branch 'collectd-4.7' into collectd-4.8
Florian Forster [Thu, 17 Sep 2009 08:58:19 +0000 (10:58 +0200)]
Merge branch 'collectd-4.7' into collectd-4.8

15 years agoBuild system: Check for “libiptc/libip6tc.h” and “linux/netfilter/x_tables.h”, too.
Florian Forster [Thu, 17 Sep 2009 08:56:19 +0000 (10:56 +0200)]
Build system: Check for “libiptc/libip6tc.h” and “linux/netfilter/x_tables.h”, too.

Apparently “linux/netfilter/x_tables.h” is not available with older
kernels which leads to build fails there:
-- 8< --
 In file included from libiptc.c:47,
                  from libip4tc.c:136:
 xtables.h:24:38: linux/netfilter/x_tables.h: No such file or directory
-- >8 --

15 years agoMerge branch 'collectd-4.8'
Florian Forster [Thu, 17 Sep 2009 08:16:40 +0000 (10:16 +0200)]
Merge branch 'collectd-4.8'

15 years agoMerge branch 'collectd-4.7' into collectd-4.8
Florian Forster [Thu, 17 Sep 2009 08:16:35 +0000 (10:16 +0200)]
Merge branch 'collectd-4.7' into collectd-4.8

15 years agosrc/owniptc/Makefile.am: Don't search KERNEL_DIR for headers.
Florian Forster [Thu, 17 Sep 2009 08:12:07 +0000 (10:12 +0200)]
src/owniptc/Makefile.am: Don't search KERNEL_DIR for headers.

The iptc library is currenly only enabled, if the required headers where
found without “-I${KERNEL_DIR}”. Adding it to the CFLAGS when building
the shipped version of libiptc just breaks things, for example on
“collectd-master-amd64-linux-2.6”:
  Linux hotdamn 2.6.9-42.ELsmp #1 SMP Tue Aug 15 10:35:26 BST 2006 x86_64 x86_64 x86_64 GNU/Linux

15 years agoMerge branch 'collectd-4.8'
Florian Forster [Thu, 17 Sep 2009 07:40:36 +0000 (09:40 +0200)]
Merge branch 'collectd-4.8'

15 years agoMerge branch 'collectd-4.7' into collectd-4.8
Florian Forster [Thu, 17 Sep 2009 07:40:28 +0000 (09:40 +0200)]
Merge branch 'collectd-4.7' into collectd-4.8

15 years agoREADME: Document the “--with-libiptc=shipped” option.
Florian Forster [Thu, 17 Sep 2009 07:40:01 +0000 (09:40 +0200)]
README: Document the “--with-libiptc=shipped” option.

15 years agoBuild system: Further improve libiptc handling.
Florian Forster [Thu, 17 Sep 2009 07:36:35 +0000 (09:36 +0200)]
Build system: Further improve libiptc handling.

Only check for “iptc_handle_t” and “ip6tc_handle_t” if using a
system-wide version of libiptc. If we use the shipped version, we *know*
it provides these types.

15 years agoMerge branch 'collectd-4.8'
Florian Forster [Thu, 17 Sep 2009 06:53:05 +0000 (08:53 +0200)]
Merge branch 'collectd-4.8'

15 years agoMerge branch 'collectd-4.7' into collectd-4.8
Florian Forster [Thu, 17 Sep 2009 06:52:56 +0000 (08:52 +0200)]
Merge branch 'collectd-4.7' into collectd-4.8

15 years agoBuild system: Improve detection of the iptc library.
Florian Forster [Thu, 17 Sep 2009 06:44:07 +0000 (08:44 +0200)]
Build system: Improve detection of the iptc library.

When checking for the iptc headers and data types, the configure script
added the kernel directory to the CFLAGS. Later, when actually building
the iptables plugin, the CFLAGS were left untouched.

At least on Debian, the “real” kernel headers are not required – the
libc versions in /usr/include/linux are sufficient. The usage of
KERNEL_DIR has therefore been removed from the iptc checks.

In addition, an directory specified by “--with-libiptc=/path” is no
longer added to the global CFLAGS but rather to the iptables specific
CPPFLAGS.

Hopefully this resolved build problems on various platforms.

15 years agocontrib/collection3: skip host dirs without read access.
Marc Fournier [Wed, 16 Sep 2009 10:17:28 +0000 (12:17 +0200)]
contrib/collection3: skip host dirs without read access.

This patch prevents get_files_from_directory() from
failing when DataDir contains directories which we
don't have access to.

An example would be "lost+found" directories, on
ext2/ext3 filesystems, which belong to root and have
0700 filemode.

Signed-off-by: Marc Fournier <marc.fournier@camptocamp.com>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
15 years agocontrib/collection3: “Invokations” → “Invocations”.
Florian Forster [Wed, 16 Sep 2009 11:02:40 +0000 (13:02 +0200)]
contrib/collection3: “Invokations” → “Invocations”.

D'oh!

15 years agocontrib/collection3: Add a vertical label to the “java_memory” type.
Florian Forster [Wed, 16 Sep 2009 11:00:41 +0000 (13:00 +0200)]
contrib/collection3: Add a vertical label to the “java_memory” type.

15 years agocontrib/collection3: Added the “invokations” type.
Florian Forster [Wed, 16 Sep 2009 11:00:19 +0000 (13:00 +0200)]
contrib/collection3: Added the “invokations” type.

15 years agocontrib/collection3: Use “{plugin_inst}/{type_inst}” for “{instance}”
Florian Forster [Wed, 16 Sep 2009 09:47:42 +0000 (11:47 +0200)]
contrib/collection3: Use “{plugin_inst}/{type_inst}” for “{instance}”

… if both are present. Otherwise, use just the one that is available.

15 years agocontrib/collection3: Add support for the “threads” and “total_requests” types.
Florian Forster [Wed, 16 Sep 2009 09:43:57 +0000 (11:43 +0200)]
contrib/collection3: Add support for the “threads” and “total_requests” types.

15 years agoMerge branch 'collectd-4.8'
Florian Forster [Tue, 15 Sep 2009 20:18:24 +0000 (22:18 +0200)]
Merge branch 'collectd-4.8'

Conflicts:
src/exec.c

15 years agoMerge branch 'collectd-4.7' into collectd-4.8
Florian Forster [Tue, 15 Sep 2009 20:17:49 +0000 (22:17 +0200)]
Merge branch 'collectd-4.7' into collectd-4.8

15 years agocollectd-exec(5): Document the environment variables.
Florian Forster [Tue, 15 Sep 2009 19:28:07 +0000 (21:28 +0200)]
collectd-exec(5): Document the environment variables.

15 years agoexec plugin: Clear the signal block mask before calling exec(2).
Florian Forster [Tue, 15 Sep 2009 13:40:47 +0000 (15:40 +0200)]
exec plugin: Clear the signal block mask before calling exec(2).

15 years agoexec plugin: Set the “COLLECTD_INTERVAL” and “COLLECTD_HOSTNAME” environment variables.
Florian Forster [Tue, 15 Sep 2009 13:18:40 +0000 (15:18 +0200)]
exec plugin: Set the “COLLECTD_INTERVAL” and “COLLECTD_HOSTNAME” environment variables.

15 years agoexec plugin: Avoid a warning when freeing meta data.
Florian Forster [Mon, 14 Sep 2009 14:01:48 +0000 (16:01 +0200)]
exec plugin: Avoid a warning when freeing meta data.

15 years agocontrib/collection3: Suppress warnings about non-existent classes.
Florian Forster [Mon, 14 Sep 2009 13:41:07 +0000 (15:41 +0200)]
contrib/collection3: Suppress warnings about non-existent classes.

15 years agoChangeLog: Remove an excess newline.
Florian Forster [Mon, 14 Sep 2009 13:40:08 +0000 (15:40 +0200)]
ChangeLog: Remove an excess newline.

15 years agocurl plugin: Add the “MeasureResponseTime” option.
Aman Gupta [Mon, 14 Sep 2009 13:03:57 +0000 (15:03 +0200)]
curl plugin: Add the “MeasureResponseTime” option.

It measures response times. Yes, really! ;)

Signed-off-by: Florian Forster <octo@leeloo.lan.home.verplant.org>
15 years agosrc/collectd.conf.in: Fix entries of renamed plugins.
Florian Forster [Mon, 14 Sep 2009 08:06:49 +0000 (10:06 +0200)]
src/collectd.conf.in: Fix entries of renamed plugins.

15 years agoconfigure.in: Make it possible to force the shipped version of libiptc.
Florian Forster [Sun, 13 Sep 2009 20:20:48 +0000 (22:20 +0200)]
configure.in: Make it possible to force the shipped version of libiptc.

You can force the shipped version of libiptc using:
  --with-libiptc=shipped

Apparently enough systems include broken versions of that library :/

15 years agoconfigure.in: Quote $CFLAGS when assigning to another variable.
Florian Forster [Sun, 13 Sep 2009 20:05:21 +0000 (22:05 +0200)]
configure.in: Quote $CFLAGS when assigning to another variable.

15 years agoChangeLog: Document the “GETTHRESHOLD” command. collectd-4.8.0
Florian Forster [Sun, 13 Sep 2009 14:32:52 +0000 (16:32 +0200)]
ChangeLog: Document the “GETTHRESHOLD” command.

15 years agosrc/utils_threshold.c: Update copyright information.
Florian Forster [Sun, 13 Sep 2009 14:23:04 +0000 (16:23 +0200)]
src/utils_threshold.c: Update copyright information.

15 years agodns, network, rrdtool plugins: Updated copyright information.
Florian Forster [Sun, 13 Sep 2009 14:20:23 +0000 (16:20 +0200)]
dns, network, rrdtool plugins: Updated copyright information.

15 years agoswap plugin: Add copyright information for Stefan Völkel.
Florian Forster [Sun, 13 Sep 2009 14:09:27 +0000 (16:09 +0200)]
swap plugin: Add copyright information for Stefan Völkel.

15 years agobindings/java: Compile and install the “GenericJMX” plugin.
Florian Forster [Sun, 13 Sep 2009 13:49:29 +0000 (15:49 +0200)]
bindings/java: Compile and install the “GenericJMX” plugin.

15 years agocollectd-java(5): Document the “GenericJMX” plugin.
Florian Forster [Sun, 13 Sep 2009 13:49:01 +0000 (15:49 +0200)]
collectd-java(5): Document the “GenericJMX” plugin.

15 years agoscale target: Fix C90 warning (which is upgraded to an error by default).
Florian Forster [Sun, 13 Sep 2009 12:45:58 +0000 (14:45 +0200)]
scale target: Fix C90 warning (which is upgraded to an error by default).

Should fix this warning:
-- 8< --
 target_scale.c: In function 'ts_invoke_counter':
 target_scale.c:90: warning: this decimal constant is unsigned only in ISO C90
 target_scale.c:91: warning: this decimal constant is unsigned only in ISO C90
 target_scale.c:93: warning: integer constant is too large for 'unsigned long' type
-- >8 --

15 years agoMerge branch 'collectd-4.7' into collectd-4.8
Florian Forster [Sun, 13 Sep 2009 12:32:34 +0000 (14:32 +0200)]
Merge branch 'collectd-4.7' into collectd-4.8

Conflicts:
ChangeLog
contrib/collection3/etc/collection.conf
src/df.c
version-gen.sh

15 years agoBumped version to 4.7.3; Updated ChangeLog. collectd-4.7.3
Florian Forster [Sun, 13 Sep 2009 10:36:33 +0000 (12:36 +0200)]
Bumped version to 4.7.3; Updated ChangeLog.

15 years agoMerge branch 'collectd-4.6' into collectd-4.7
Florian Forster [Sun, 13 Sep 2009 10:24:20 +0000 (12:24 +0200)]
Merge branch 'collectd-4.6' into collectd-4.7

Conflicts:
ChangeLog
version-gen.sh

15 years agoBump version to 4.6.5. collectd-4.6.5
Florian Forster [Thu, 10 Sep 2009 18:19:24 +0000 (20:19 +0200)]
Bump version to 4.6.5.

15 years agocollection3: Added some more metrics.
Florian Forster [Wed, 26 Aug 2009 13:09:47 +0000 (15:09 +0200)]
collection3: Added some more metrics.

15 years agoFixed the year of the first three entries.
Florian Forster [Wed, 9 Sep 2009 16:37:25 +0000 (18:37 +0200)]
Fixed the year of the first three entries.

They say it was 2004, but in fact they were released in 2005.

15 years agoChangeLog: Add entries for release 4.6.5.
Florian Forster [Wed, 9 Sep 2009 16:36:45 +0000 (18:36 +0200)]
ChangeLog: Add entries for release 4.6.5.

15 years agopowerdns plugin: Use the “ipt_packets” type rather than “io_packets”.
Florian Forster [Tue, 8 Sep 2009 15:45:56 +0000 (17:45 +0200)]
powerdns plugin: Use the “ipt_packets” type rather than “io_packets”.

“io_packets”, as the name suggests, requires incoming *and* outgoing
packets. The infrastructure of the powerdns plugin uses only value lists
with one data source though.

Thanks to Luke for noticing!

15 years agoChangeLog: Fix a typo.
Florian Forster [Tue, 8 Sep 2009 15:37:59 +0000 (17:37 +0200)]
ChangeLog: Fix a typo.

15 years agoscale target: Fix copyright information.
Florian Forster [Tue, 8 Sep 2009 15:36:55 +0000 (17:36 +0200)]
scale target: Fix copyright information.

15 years agocontrib/collectd_unix_sock.rb: Ruby class which abstracts the plain text protocol.
Duncan Mac-Vicar P [Sun, 6 Sep 2009 15:22:37 +0000 (17:22 +0200)]
contrib/collectd_unix_sock.rb: Ruby class which abstracts the plain text protocol.

Used to talk to the unixsock plugin.

Signed-off-by: Florian Forster <octo@leeloo.lan.home.verplant.org>
15 years agosrc/utils_cache.c: Fix a very rare deadlock situation.
Florian Forster [Sun, 6 Sep 2009 15:06:56 +0000 (17:06 +0200)]
src/utils_cache.c: Fix a very rare deadlock situation.

Only happened in an out-of-memory situation. Still, not nice ;)

15 years agoscale target: Add a target to scale arbitrary values.
Florian Forster [Sun, 6 Sep 2009 15:06:27 +0000 (17:06 +0200)]
scale target: Add a target to scale arbitrary values.

15 years agoMerged branch 'sh/collectd-4.6' into sh/collectd-4.7.
Sebastian Harl [Sun, 6 Sep 2009 12:52:15 +0000 (12:52 +0000)]
Merged branch 'sh/collectd-4.6' into sh/collectd-4.7.

Conflicts:
src/iptables.c

To resolve the conflict, the changes to the iptables plugin have been updated
to support ip6tc as well.

15 years agoiptables plugin: Support the new libiptc API.
Sebastian Harl [Sun, 6 Sep 2009 12:14:55 +0000 (12:14 +0000)]
iptables plugin: Support the new libiptc API.

When libiptc has been officially made available as a shared library, the API
and ABI have been changed slightly. By checking for the existance of a type
that has been removed in that course, configure now checks which version is
available. This is quite error prone (the type might be re-introduced any
time), so this should be improved some time - currently, I do not have an idea
how to do so, though :-/

15 years agoconfigure: Replaced src/libiptc/ with src/owniptc/.
Sebastian Harl [Sun, 6 Sep 2009 10:36:10 +0000 (10:36 +0000)]
configure: Replaced src/libiptc/ with src/owniptc/.

15 years agoMerge branch 'collectd-4.6' into collectd-4.7
Florian Forster [Sun, 6 Sep 2009 10:15:06 +0000 (12:15 +0200)]
Merge branch 'collectd-4.6' into collectd-4.7

Conflicts:
configure.in
src/iptables.c

15 years agosrc/owniptc: Moved the “src/libiptc” directory to “src/owniptc” to avoid build issues.
Florian Forster [Sun, 6 Sep 2009 10:06:12 +0000 (12:06 +0200)]
src/owniptc: Moved the “src/libiptc” directory to “src/owniptc” to avoid build issues.

If there is a system-wide version of this library available, the “-I.”
argument (added automatically by automake :() will lead to the shipped
header files being used. Later, the binary is linked with the
system-wide library, which leads to severe problems when API/ABI
incompatibilities have been introduced in other versions.

15 years agocontrib/cussh.pl: Add support for the “GETTHRESHOLD” command.
Florian Forster [Sun, 6 Sep 2009 09:00:27 +0000 (11:00 +0200)]
contrib/cussh.pl: Add support for the “GETTHRESHOLD” command.

15 years agoCollectd::Unixsock: Add support for the “GETTHRESHOLD” command.
Florian Forster [Sun, 6 Sep 2009 08:57:41 +0000 (10:57 +0200)]
Collectd::Unixsock: Add support for the “GETTHRESHOLD” command.

15 years agounixsock plugin: Implement the “GETTHRESHOLD” command.
Florian Forster [Sun, 6 Sep 2009 08:54:01 +0000 (10:54 +0200)]
unixsock plugin: Implement the “GETTHRESHOLD” command.

Example session:
 -> GETTHRESHOLD "leeloo.lan.home.verplant.org/cpu-3/cpu-idle"
 <- 6 Threshold found
 <- Type: cpu
 <- Type Instance: idle
 <- Warning Min: 5
 <- Warning Max: 100
 <- Failure Min: 1
 <- Failure Max: 120

15 years agosrc/utils_threshold.[ch]: Update copyright information.
Florian Forster [Sat, 5 Sep 2009 14:41:01 +0000 (16:41 +0200)]
src/utils_threshold.[ch]: Update copyright information.

15 years agosrc/utils_threshold.[ch]: Implement `ut_search_threshold'.
Florian Forster [Sat, 5 Sep 2009 14:36:12 +0000 (16:36 +0200)]
src/utils_threshold.[ch]: Implement `ut_search_threshold'.

It allows external modules to query the threshold for a specific
`value_list_t'.

15 years agoREADME: Add missing plugins; moved “write_http”.
Florian Forster [Sat, 5 Sep 2009 09:05:19 +0000 (11:05 +0200)]
README: Add missing plugins; moved “write_http”.

15 years agoChangeLog: Updated for the 4.8.0 release.
Florian Forster [Thu, 3 Sep 2009 09:48:43 +0000 (11:48 +0200)]
ChangeLog: Updated for the 4.8.0 release.

15 years agomysql plugin: Improve the `mysql_ping' warning.
Florian Forster [Tue, 1 Sep 2009 20:49:47 +0000 (22:49 +0200)]
mysql plugin: Improve the `mysql_ping' warning.

15 years agosrc/utils_threshold.c: Implement the “Hits” and “Hysteresis” config options.
Andrés J. Díaz [Mon, 31 Aug 2009 19:16:41 +0000 (21:16 +0200)]
src/utils_threshold.c: Implement the “Hits” and “Hysteresis” config options.

Hi all!

Based on Mariusz's idea, i attach a patch for thresholds (no for
filtering, yet) with basic hysteresis support adding the keyword
Hysteresis to configuration file, for example:

<Threshold>
  <Type "load">
     DataSource "midterm"
     WarningMax 1
     Hysteresis 0.3
  </Type "load">
</Treshold>

In this case the notification is raised when load (midterm datasource)
is greater than 1, and came back to OKAY when lower than 0.7 (1 - 0.3).

This is a proof of concept and I do not have a lot of time to test,
please use this patch with caution. Furthermore, the code is really hard
and dirty :)

Best regards,
  Andres

P.S.: The patch also including hits support, so to compile you also
require to apply hits-cache.patch and, obviously this patch is
incompatible with hits-threshold.patch.

Signed-off-by: Florian Forster <octo@leeloo.lan.home.verplant.org>
15 years agosrc/utils_cache.c: Implement “uc_{get,set,inc}_hits”.
Andrés J. Díaz [Mon, 31 Aug 2009 16:06:15 +0000 (18:06 +0200)]
src/utils_cache.c: Implement “uc_{get,set,inc}_hits”.

Hi

I've attached a patch to add hit counter to thresholds, that is, each
time when threhsold raised, then an internal hit counter is incremented,
when the value of the counter raise a specific value setted in
configuration, then the notification is generated and counter is reset.
Here are an example of threshold configuration with hit conter:

<Threshold>
  <Plugin load>
    <Type load>
       WarninMax 1
       Hits 3
    </Type>
   </Plugin>
</Threshold>

In this example the notification will be generated when load value is
greater than 1 for 3 intervals.

Here are two patches, the first one adds hit feature to the collectd
cached and the second one use hits in thresholds,

Of course comments and suggestions are welcome :)

Enjoy!

Regards,
  Andres

Signed-off-by: Florian Forster <octo@leeloo.lan.home.verplant.org>
15 years agonetwork plugin: Move the gcrypt initialization into “network_init”.
Florian Forster [Mon, 31 Aug 2009 18:30:23 +0000 (20:30 +0200)]
network plugin: Move the gcrypt initialization into “network_init”.

15 years agonetwork plugin: Fix initialization of the gcrypt library.
Luke Heberling [Mon, 31 Aug 2009 17:31:30 +0000 (10:31 -0700)]
network plugin: Fix initialization of the gcrypt library.

Subject: Ohhhh jeeee, libgcrypt 1.4.1 + collectd 4.7.2

On Monday 31 August 2009 09:03:37 Sebastian Harl wrote:
> Hrm … from a quick look at the libcrypt documentation I suppose we need
> to call gcry_control() using the 'GCRYCTL_INIT_SECMEM' command to
> explicitly initialize the secure memory. Sounds like this was required
> in libgcrypt 1.4.1 but is handled automatically in later versions.
>

also looks like there's some special initialization necessary for threads. I
doubt that this is handled by the new default behavior in 1.4.4. Don't know
that it's truly necessary if the network plugin is the only plugin using
gcrypt.

Here's a patch that works for me with 1.4.1.
I followed an example for pthread initialization and  initialized gcry to 32k,
only since that's apparently the default that's used in 1.4.3. I did it in
network.c's module_register function. Kind of an abuse, I know.

Luke Heberling

Signed-off-by: Florian Forster <octo@huhu.verplant.org>
15 years agocontrib/collection3: Add graphing module for “arc_counts”.
Anthony Dewhurst [Sun, 30 Aug 2009 21:08:17 +0000 (22:08 +0100)]
contrib/collection3: Add graphing module for “arc_counts”.

Managed to forget this: script for generating the ArcCounts graphs.

Signed-off-by: Florian Forster <octo@leeloo.lan.home.verplant.org>
15 years agocontrib/collection3: Allow numbers in type names.
Anthony Dewhurst [Sun, 30 Aug 2009 21:32:55 +0000 (22:32 +0100)]
contrib/collection3: Allow numbers in type names.

When converting the on-disk type name to the displayed name,
do not strip numbers out.

Signed-off-by: Florian Forster <octo@leeloo.lan.home.verplant.org>
15 years agocontrib/collection3: GenericStacked: Use stacking by default.
Florian Forster [Mon, 31 Aug 2009 15:16:40 +0000 (17:16 +0200)]
contrib/collection3: GenericStacked: Use stacking by default.

15 years agocontrib/collection3: Option to turn stacking off in GenericStacking
Anthony Dewhurst [Sun, 2 Aug 2009 22:25:45 +0000 (23:25 +0100)]
contrib/collection3: Option to turn stacking off in GenericStacking

CDEFs are not stacked and AREAs are not added when "Stacking" is set to off.

Signed-off-by: Florian Forster <octo@leeloo.lan.home.verplant.org>
15 years agozfs_arc plugin: add to default config file
Anthony Dewhurst [Sun, 30 Aug 2009 20:53:51 +0000 (21:53 +0100)]
zfs_arc plugin: add to default config file

Signed-off-by: Florian Forster <octo@leeloo.lan.home.verplant.org>
15 years agowrite_http plugin: Make it possible to send values as JSON.
Florian Forster [Sun, 30 Aug 2009 13:23:33 +0000 (15:23 +0200)]
write_http plugin: Make it possible to send values as JSON.

15 years agowrite_http plugin: Send “\r\n” line endings.
Florian Forster [Sun, 30 Aug 2009 09:12:19 +0000 (11:12 +0200)]
write_http plugin: Send “\r\n” line endings.

15 years agowrite_http plugin: Suppress the “Expect:” header.
Florian Forster [Sun, 30 Aug 2009 09:11:55 +0000 (11:11 +0200)]
write_http plugin: Suppress the “Expect:” header.