collectd.git
13 years agosrc/types.db: Replace all COUNTER data sources with DERIVE.
Florian Forster [Sun, 5 Dec 2010 10:39:09 +0000 (11:39 +0100)]
src/types.db: Replace all COUNTER data sources with DERIVE.

All the standard DERIVE data sources have a minimum value of zero and
no maximum value.

13 years agothreshold plugin: Implement dispatching "missing" notifications.
Florian Forster [Sun, 5 Dec 2010 10:23:31 +0000 (11:23 +0100)]
threshold plugin: Implement dispatching "missing" notifications.

13 years agosrc/common.h: NOTIFICATION_INIT_VL: Remove the "ds" argument.
Florian Forster [Sun, 5 Dec 2010 10:20:49 +0000 (11:20 +0100)]
src/common.h: NOTIFICATION_INIT_VL: Remove the "ds" argument.

Since "type" is now included in "value_list_t", too, we don't need a
"data_set_t" to initialize the notification.

13 years agosrc/plugin.[ch]: Pass the user data to registered "missing" functions.
Florian Forster [Sun, 5 Dec 2010 10:11:36 +0000 (11:11 +0100)]
src/plugin.[ch]: Pass the user data to registered "missing" functions.

13 years agothreshold plugin: Move the threshold checking code into a plugin.
Florian Forster [Sun, 5 Dec 2010 10:05:43 +0000 (11:05 +0100)]
threshold plugin: Move the threshold checking code into a plugin.

13 years agoMerge branch 'collectd-4.10'
Florian Forster [Sat, 27 Nov 2010 10:46:11 +0000 (11:46 +0100)]
Merge branch 'collectd-4.10'

Conflicts:
src/utils_rrdcreate.c

13 years agoBump version to 4.10.2; Update ChangeLog. collectd-4.10.2
Florian Forster [Sat, 27 Nov 2010 10:03:34 +0000 (11:03 +0100)]
Bump version to 4.10.2; Update ChangeLog.

13 years agoMerge branch 'collectd-4.9' into collectd-4.10
Florian Forster [Sat, 27 Nov 2010 10:00:29 +0000 (11:00 +0100)]
Merge branch 'collectd-4.9' into collectd-4.10

Conflicts:
ChangeLog
src/collectd.conf.pod
version-gen.sh

13 years agoBump version to 4.9.4; Update ChangeLog. collectd-4.9.4
Florian Forster [Sat, 27 Nov 2010 09:55:47 +0000 (10:55 +0100)]
Bump version to 4.9.4; Update ChangeLog.

13 years agosrc/utils_time.[ch]: Implement work-around for Mac OS X …
Florian Forster [Fri, 26 Nov 2010 21:46:26 +0000 (22:46 +0100)]
src/utils_time.[ch]: Implement work-around for Mac OS X …

… which, apparently, doesn't have clock_gettime(2).

14 years agoMerge remote branch 'trenkel/collectd-4.9' into collectd-4.9
Florian Forster [Thu, 25 Nov 2010 10:51:17 +0000 (11:51 +0100)]
Merge remote branch 'trenkel/collectd-4.9' into collectd-4.9

14 years agonetapp: Fixed incompatible changes between NetApp Release 7.2 and 7.3 that prevented...
Sven Trenkel [Thu, 25 Nov 2010 09:56:30 +0000 (10:56 +0100)]
netapp: Fixed incompatible changes between NetApp Release 7.2 and 7.3 that prevented collecting SIS data

14 years agoswap plugin: Fix a bug collecting swap I/O.
Florian Forster [Tue, 23 Nov 2010 17:45:49 +0000 (18:45 +0100)]
swap plugin: Fix a bug collecting swap I/O.

14 years agosrc/utils_cache.c: Call the "missing" callbacks when a value is not being updated.
Florian Forster [Tue, 23 Nov 2010 12:02:21 +0000 (13:02 +0100)]
src/utils_cache.c: Call the "missing" callbacks when a value is not being updated.

14 years agosrc/common.[ch]: Implement "parse_identifier_vl".
Florian Forster [Tue, 23 Nov 2010 11:57:25 +0000 (12:57 +0100)]
src/common.[ch]: Implement "parse_identifier_vl".

14 years agosrc/plugin.[ch]: Implement "missing" callbacks.
Florian Forster [Tue, 23 Nov 2010 11:56:11 +0000 (12:56 +0100)]
src/plugin.[ch]: Implement "missing" callbacks.

This is a first step towards moving the threshold checking code into
a plugin.

14 years agosrc/collectd.conf.in: Add the LPAR plugin.
Florian Forster [Thu, 18 Nov 2010 08:48:17 +0000 (09:48 +0100)]
src/collectd.conf.in: Add the LPAR plugin.

14 years agocollectd.conf(5): Add documentation for the LPAR plugin.
Florian Forster [Thu, 18 Nov 2010 08:45:22 +0000 (09:45 +0100)]
collectd.conf(5): Add documentation for the LPAR plugin.

14 years agoMerge branch 'ff/highres'
Florian Forster [Wed, 17 Nov 2010 14:18:03 +0000 (15:18 +0100)]
Merge branch 'ff/highres'

Conflicts:
src/netapp.c

14 years agoMerge remote branch 'trenkel/collectd-4.9' into collectd-4.9
Florian Forster [Tue, 16 Nov 2010 11:20:18 +0000 (12:20 +0100)]
Merge remote branch 'trenkel/collectd-4.9' into collectd-4.9

14 years agoFixed RedHat init script to shut down collectd on reboot/halt.
Sven Trenkel [Tue, 16 Nov 2010 11:11:45 +0000 (12:11 +0100)]
Fixed RedHat init script to shut down collectd on reboot/halt.

14 years agonetwork plugin: Introduce new types for the "high resolution" time fields.
Florian Forster [Tue, 16 Nov 2010 08:20:04 +0000 (09:20 +0100)]
network plugin: Introduce new types for the "high resolution" time fields.

14 years agocollectd.conf(5): Document the dangers of messing with the interval setting.
Florian Forster [Sun, 14 Nov 2010 09:52:13 +0000 (10:52 +0100)]
collectd.conf(5): Document the dangers of messing with the interval setting.

14 years agoprocesses plugin: Don't complain about a failed open(/proc/$PID/cmdline)
Florian Forster [Fri, 12 Nov 2010 07:13:42 +0000 (08:13 +0100)]
processes plugin: Don't complain about a failed open(/proc/$PID/cmdline)

... if the error is ENOENT. This merely means we were too slow and that
we can safely ignore the process.

14 years agounixsock plugin: Implement the "DeleteSocket" option.
Florian Forster [Thu, 11 Nov 2010 15:56:32 +0000 (16:56 +0100)]
unixsock plugin: Implement the "DeleteSocket" option.

14 years agopython: Added support for subsecond interval.
Sven Trenkel [Thu, 11 Nov 2010 14:19:15 +0000 (15:19 +0100)]
python: Added support for subsecond interval.

14 years agosrc/utils_rrdcreate.c: Remove a too strict assertion.
Florian Forster [Thu, 11 Nov 2010 13:20:58 +0000 (14:20 +0100)]
src/utils_rrdcreate.c: Remove a too strict assertion.

We don't actually check anywhere that vl->time is greater than 10, so we
cannot assure this.

14 years agov5upgrade target: Implement "upgrades" for the ZFS ARC plugin.
Florian Forster [Thu, 11 Nov 2010 12:33:38 +0000 (13:33 +0100)]
v5upgrade target: Implement "upgrades" for the ZFS ARC plugin.

14 years agozfs_arc plugin: Change the order of type instance "fields" for the "cache_result...
Florian Forster [Thu, 11 Nov 2010 11:35:36 +0000 (12:35 +0100)]
zfs_arc plugin: Change the order of type instance "fields" for the "cache_result" type.

14 years agozfs_arc plugin: Use the more generic "cache_*" types …
Florian Forster [Thu, 11 Nov 2010 10:30:37 +0000 (11:30 +0100)]
zfs_arc plugin: Use the more generic "cache_*" types …

… instead of those awful "arc_*" types.

14 years agosrc/utils_cmd_flush.c: Fix parsing of the "timeout" option.
Florian Forster [Sat, 6 Nov 2010 14:04:31 +0000 (15:04 +0100)]
src/utils_cmd_flush.c: Fix parsing of the "timeout" option.

14 years agorrdtool plugin: Make sure "cache_timeout + random_variation" dosn't get negative.
Florian Forster [Sat, 6 Nov 2010 13:26:38 +0000 (14:26 +0100)]
rrdtool plugin: Make sure "cache_timeout + random_variation" dosn't get negative.

14 years agosrc/{collectd,plugin}.c: Don't cast "-1" to cdtime_t.
Florian Forster [Sat, 6 Nov 2010 13:26:16 +0000 (14:26 +0100)]
src/{collectd,plugin}.c: Don't cast "-1" to cdtime_t.

14 years agoMerge branch 'collectd-4.10'
Florian Forster [Sat, 6 Nov 2010 11:11:23 +0000 (12:11 +0100)]
Merge branch 'collectd-4.10'

14 years agoMerge branch 'collectd-4.9' into collectd-4.10
Florian Forster [Sat, 6 Nov 2010 11:08:20 +0000 (12:08 +0100)]
Merge branch 'collectd-4.9' into collectd-4.10

Conflicts:
src/collectd.conf.in
src/python.c

14 years agoREADME: Add libperfstat as an optional dependency.
Florian Forster [Sat, 6 Nov 2010 08:58:57 +0000 (09:58 +0100)]
README: Add libperfstat as an optional dependency.

14 years agoAUTHORS: Add Aurélien Reynaud
Florian Forster [Sat, 6 Nov 2010 08:58:25 +0000 (09:58 +0100)]
AUTHORS: Add Aurélien Reynaud

14 years agoREADME: Add the "LPAR" plugin.
Florian Forster [Sat, 6 Nov 2010 08:55:29 +0000 (09:55 +0100)]
README: Add the "LPAR" plugin.

14 years agoMerge branch 'ar/lpar'
Florian Forster [Sat, 6 Nov 2010 08:40:05 +0000 (09:40 +0100)]
Merge branch 'ar/lpar'

14 years agolpar plugin: rename NS_TO_TICKS() macro to CLOCKTICKS_TO_TICKS()
Aurelien Reynaud [Thu, 14 Oct 2010 20:09:29 +0000 (22:09 +0200)]
lpar plugin: rename NS_TO_TICKS() macro to CLOCKTICKS_TO_TICKS()

Signed-off-by: Aurelien Reynaud <collectd@wattapower.net>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
14 years agolpar plugin: update commen t regarding poll_idle vs pool_busy
Aurelien Reynaud [Thu, 14 Oct 2010 20:09:28 +0000 (22:09 +0200)]
lpar plugin: update commen t regarding poll_idle vs pool_busy

Signed-off-by: Aurelien Reynaud <collectd@wattapower.net>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
14 years agolpar plugin: check for donation support in libperfstat
Aurelien Reynaud [Thu, 14 Oct 2010 20:09:27 +0000 (22:09 +0200)]
lpar plugin: check for donation support in libperfstat

Signed-off-by: Aurelien Reynaud <collectd@wattapower.net>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
14 years agoMerge branch 'sp/amqp'
Florian Forster [Sat, 6 Nov 2010 08:04:39 +0000 (09:04 +0100)]
Merge branch 'sp/amqp'

14 years agoAUTHORS: Add Sebastien Pahl.
Florian Forster [Sat, 6 Nov 2010 08:04:25 +0000 (09:04 +0100)]
AUTHORS: Add Sebastien Pahl.

14 years agoamqp plugin: Document the lock required to hold when calling "camqp_write_locked".
Florian Forster [Sat, 6 Nov 2010 08:00:00 +0000 (09:00 +0100)]
amqp plugin: Document the lock required to hold when calling "camqp_write_locked".

14 years agoamqp plugin: Rename the "shutdown" function to avoid problems with shutdown(2).
Florian Forster [Sat, 6 Nov 2010 07:53:02 +0000 (08:53 +0100)]
amqp plugin: Rename the "shutdown" function to avoid problems with shutdown(2).

14 years agoamqp plugin: Fix order of includes.
Florian Forster [Sat, 6 Nov 2010 07:43:51 +0000 (08:43 +0100)]
amqp plugin: Fix order of includes.

14 years agosrc/types.db: Add type "current_sessions".
Florian Forster [Sat, 6 Nov 2010 07:42:48 +0000 (08:42 +0100)]
src/types.db: Add type "current_sessions".

14 years agoMany plugins and files: Convert "interval_g" and "vl->interval" to cdtime_t.
Florian Forster [Wed, 3 Nov 2010 12:49:58 +0000 (13:49 +0100)]
Many plugins and files: Convert "interval_g" and "vl->interval" to cdtime_t.

14 years agoMerge branch 'master' into ff/subsecond
Florian Forster [Sun, 31 Oct 2010 16:15:06 +0000 (17:15 +0100)]
Merge branch 'master' into ff/subsecond

14 years agoMove the "cdtime_t" type to "collectd.h".
Florian Forster [Sun, 31 Oct 2010 16:10:43 +0000 (17:10 +0100)]
Move the "cdtime_t" type to "collectd.h".

This will make it possible to turn "interval_g" into a "cdtime_t".

14 years agosrc/collectd.h: Do not include <stdbool.h> here.
Florian Forster [Sun, 31 Oct 2010 16:07:40 +0000 (17:07 +0100)]
src/collectd.h: Do not include <stdbool.h> here.

14 years agopowerdns plugin: Make calculation of timeout value more precise.
Florian Forster [Sun, 31 Oct 2010 14:55:06 +0000 (15:55 +0100)]
powerdns plugin: Make calculation of timeout value more precise.

14 years agoipvs plugin: Remove explicit reference of "interval_g".
Florian Forster [Sun, 31 Oct 2010 14:51:51 +0000 (15:51 +0100)]
ipvs plugin: Remove explicit reference of "interval_g".

14 years agosrc/common.c: parse_values: Add error handling.
Florian Forster [Sun, 31 Oct 2010 14:44:18 +0000 (15:44 +0100)]
src/common.c: parse_values: Add error handling.

14 years agothermal plugin: Remove explicit reference to "interval_g".
Florian Forster [Sun, 31 Oct 2010 14:35:50 +0000 (15:35 +0100)]
thermal plugin: Remove explicit reference to "interval_g".

14 years agosrc/utils_cache.c: Fix timeout checking.
Florian Forster [Sun, 31 Oct 2010 13:41:43 +0000 (14:41 +0100)]
src/utils_cache.c: Fix timeout checking.

14 years agorrdtool plugin: Fix the "random variation" implementation.
Florian Forster [Sun, 31 Oct 2010 13:36:11 +0000 (14:36 +0100)]
rrdtool plugin: Fix the "random variation" implementation.

14 years agoVarious plugins: More fixes for the "cdtime_t" change.
Florian Forster [Sun, 31 Oct 2010 13:11:59 +0000 (14:11 +0100)]
Various plugins: More fixes for the "cdtime_t" change.

14 years agojava plugin: Fix conversion from / to Java.
Florian Forster [Sun, 31 Oct 2010 12:48:05 +0000 (13:48 +0100)]
java plugin: Fix conversion from / to Java.

14 years agolibvirt plugin: Don't set the time explicitly.
Florian Forster [Sun, 31 Oct 2010 12:18:11 +0000 (13:18 +0100)]
libvirt plugin: Don't set the time explicitly.

14 years agoVarious plugins: Some more fixes with the time_t → cdtime_t change.
Florian Forster [Sun, 31 Oct 2010 12:09:51 +0000 (13:09 +0100)]
Various plugins: Some more fixes with the time_t → cdtime_t change.

14 years agonetwork plugin: Don't use the "true" and "false" macros from <stdbool.h>.
Florian Forster [Sun, 31 Oct 2010 11:52:31 +0000 (12:52 +0100)]
network plugin: Don't use the "true" and "false" macros from <stdbool.h>.

They cause more trouble with other includes that they are worth.

14 years agosrc/plugin.[ch]: Change the flush callbacks to take a "cdtime_t".
Florian Forster [Sun, 31 Oct 2010 11:51:43 +0000 (12:51 +0100)]
src/plugin.[ch]: Change the flush callbacks to take a "cdtime_t".

14 years agosrc/utils_time.h: Add macros for converting to "struct timespec" ..
Florian Forster [Sun, 31 Oct 2010 11:51:02 +0000 (12:51 +0100)]
src/utils_time.h: Add macros for converting to "struct timespec" ..

.. and "struct timeval".

14 years agosrc/plugin.[ch]: Change the "time" member to "cdtime_t".
Florian Forster [Sun, 31 Oct 2010 11:50:35 +0000 (12:50 +0100)]
src/plugin.[ch]: Change the "time" member to "cdtime_t".

14 years agosrc/configfile.[ch]: Add "cf_util_get_cdtime".
Florian Forster [Sun, 31 Oct 2010 11:39:10 +0000 (12:39 +0100)]
src/configfile.[ch]: Add "cf_util_get_cdtime".

14 years agoMerge branch 'master' into ff/subsecond
Florian Forster [Sat, 30 Oct 2010 12:04:12 +0000 (14:04 +0200)]
Merge branch 'master' into ff/subsecond

14 years agoVarious plugins: Don't call "time(2)" in the plugins to set vl.time.
Florian Forster [Sat, 30 Oct 2010 12:03:02 +0000 (14:03 +0200)]
Various plugins: Don't call "time(2)" in the plugins to set vl.time.

vl.time is initialized to zero instead and the current time is filled in
by dispatch_values().

14 years agosrc/utils_time.[ch]: Add module for sub-second time handling.
Florian Forster [Sat, 30 Oct 2010 11:56:52 +0000 (13:56 +0200)]
src/utils_time.[ch]: Add module for sub-second time handling.

14 years agonetapp plugin: Fixed a bug that prevented the configured interval to be passed on...
Sven Trenkel [Mon, 11 Oct 2010 11:35:39 +0000 (13:35 +0200)]
netapp plugin: Fixed a bug that prevented the configured interval to be passed on to the dispatch function.

14 years agolpar plugin: Calculate "pool busy" from "pool idle", not the other way around.
Florian Forster [Wed, 6 Oct 2010 12:32:56 +0000 (14:32 +0200)]
lpar plugin: Calculate "pool busy" from "pool idle", not the other way around.

14 years agoMerge remote branch 'trenkel/collectd-4.10' into collectd-4.10
Florian Forster [Wed, 6 Oct 2010 08:11:10 +0000 (10:11 +0200)]
Merge remote branch 'trenkel/collectd-4.10' into collectd-4.10

14 years agoFixed epic documentation fail. Python3 and meta-data support was added with 4.10...
Sven Trenkel [Mon, 4 Oct 2010 23:26:22 +0000 (01:26 +0200)]
Fixed epic documentation fail. Python3 and meta-data support was added with 4.10 but is still listed as missing.

14 years agoAdd sys.argv. Not too many programs consider the possibility that it might not exist...
Sven Trenkel [Fri, 1 Oct 2010 00:41:38 +0000 (02:41 +0200)]
Add sys.argv. Not too many programs consider the possibility that it might not exist resulting in unhandled exceptions.

14 years agoFixed possible memory leak in case of broken match_value configs.
Sven Trenkel [Thu, 30 Sep 2010 10:59:21 +0000 (12:59 +0200)]
Fixed possible memory leak in case of broken match_value configs.

14 years agosrc/types.db: Remove unused type "pinba_view".
Florian Forster [Thu, 30 Sep 2010 07:23:22 +0000 (09:23 +0200)]
src/types.db: Remove unused type "pinba_view".

14 years agonetwork plugin: Increase default buffer size to 1452.
Florian Forster [Thu, 30 Sep 2010 06:35:33 +0000 (08:35 +0200)]
network plugin: Increase default buffer size to 1452.

14 years agosrc/utils_cache.c: Replace a left-over hard-coded default of "2" with "timeout_g".
Florian Forster [Wed, 29 Sep 2010 15:56:58 +0000 (17:56 +0200)]
src/utils_cache.c: Replace a left-over hard-coded default of "2" with "timeout_g".

14 years agoMerge branch 'kr/ctxt'
Florian Forster [Wed, 29 Sep 2010 15:06:00 +0000 (17:06 +0200)]
Merge branch 'kr/ctxt'

14 years agocontextswitch plugin: Some coding style changes.
Florian Forster [Wed, 29 Sep 2010 15:04:53 +0000 (17:04 +0200)]
contextswitch plugin: Some coding style changes.

14 years agocontextswitch plugin: Add copyright and author information.
Florian Forster [Wed, 29 Sep 2010 15:04:20 +0000 (17:04 +0200)]
contextswitch plugin: Add copyright and author information.

14 years agomysql plugin: Remove some inactive (legacy) code.
Florian Forster [Mon, 27 Sep 2010 12:05:52 +0000 (14:05 +0200)]
mysql plugin: Remove some inactive (legacy) code.

14 years agoapache plugin: Remove legacy code.
Florian Forster [Mon, 27 Sep 2010 09:45:01 +0000 (11:45 +0200)]
apache plugin: Remove legacy code.

Configurations without an "<Instance />" block are not supported
anymore. The documentation and default config have been adapted.

14 years agocurl_json plugin: Improve error handling.
Florian Forster [Fri, 24 Sep 2010 16:51:14 +0000 (18:51 +0200)]
curl_json plugin: Improve error handling.

14 years agocurl_json plugin: Restore struct when handling error.
Florian Forster [Fri, 24 Sep 2010 09:52:52 +0000 (11:52 +0200)]
curl_json plugin: Restore struct when handling error.

14 years agosrc/collectd.h: Do not include <sensors/sensors.h> here.
Florian Forster [Wed, 15 Sep 2010 15:21:40 +0000 (17:21 +0200)]
src/collectd.h: Do not include <sensors/sensors.h> here.

14 years agolpar plugin: Use a global "perfstat_partition_total_t" struct.
Florian Forster [Sun, 12 Sep 2010 06:21:08 +0000 (08:21 +0200)]
lpar plugin: Use a global "perfstat_partition_total_t" struct.

14 years agolpar plugin: Account "idle" pool time rather than "max".
Florian Forster [Sun, 12 Sep 2010 06:07:38 +0000 (08:07 +0200)]
lpar plugin: Account "idle" pool time rather than "max".

14 years agoPATCH apache.c: support IBM HTTP Server.
Manuel Luis Sanmartín Rozada [Wed, 8 Sep 2010 09:01:23 +0000 (11:01 +0200)]
PATCH apache.c: support IBM HTTP Server.

IBM HTTP Server is a version of apache 2 that comes with Websphere.
IBM change the server name header to:

Server: IBM_HTTP_Server

Signed-off-by: Florian Forster <octo@huhu.verplant.org>
14 years agolpar plugin: Explain donations a bit more.
Florian Forster [Sat, 11 Sep 2010 09:24:14 +0000 (11:24 +0200)]
lpar plugin: Explain donations a bit more.

14 years agolpar plugin: Rename the "system" metric (from "sys").
Florian Forster [Sat, 11 Sep 2010 09:18:47 +0000 (11:18 +0200)]
lpar plugin: Rename the "system" metric (from "sys").

14 years agoFix errno thread-safety under AIX
Aurelien Reynaud [Sat, 19 Jun 2010 18:03:52 +0000 (20:03 +0200)]
Fix errno thread-safety under AIX

Unlike Linux or Solaris, errno under AIX is not thread-safe by
default.

This patch sets _THREAD_SAFE_ERRNO when AIX is detected in order to
force the thread-safe implementation of errno. Without this, calls
like stat() in the rrdtool plugin fail with errno incorrectly set,
leading to the inability to create previously absent rrd files.

Maybe _THREAD_SAFE should be set instead, to prevent other possible
threads-related problems, but this is enough to scratch my current
itch...

Here is the relevant part of /usr/include/errno.h on AIX:

 #if defined(_THREAD_SAFE) || defined(_THREAD_SAFE_ERRNO)
 /*
  * Per thread errno is provided by the threads provider. Both the extern
  * int
  * and the per thread value must be maintained by the threads library.
  */
 extern  int     *_Errno( void );
 #define errno   (*_Errno())

 #else

 extern int errno;

 #endif  /* _THREAD_SAFE || _THREAD_SAFE_ERRNO */

Signed-off-by: Aurelien Reynaud <collectd@wattapower.net>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
14 years agolpar plugin: Introduce a "NS_TO_TICKS" macro.
Florian Forster [Sat, 11 Sep 2010 09:04:44 +0000 (11:04 +0200)]
lpar plugin: Introduce a "NS_TO_TICKS" macro.

This makes the code easier to read, IMHO.

14 years agolpar plugin: Move / add comments.
Florian Forster [Sat, 11 Sep 2010 09:04:04 +0000 (11:04 +0200)]
lpar plugin: Move / add comments.

14 years agolpar plugin update
Aurélien Reynaud [Thu, 9 Sep 2010 20:43:16 +0000 (22:43 +0200)]
lpar plugin update

Hello,

here is a new patch against ar/lpar with the following features :

- get back to the original implementation with gauges only. A new type
"vcpu" is created (it was "lpar_pcpu" in the original)

- I tried to keep as much as possible of your changes, but some have
been reverted (the init function is back) because it was simpler for me
to port my previous code rather than adapt it to the current form. Feel
free to change them again

- the "consumed" metric might seem superfluous at first sight as it
could be calculated in the frontend in the general case. But I thought
it might come in handy when dealing with dedicated partitions, where
donated and stolen values are no easy concepts. Not everyone wants to
dig into the code and the APIs to find out what they mean and whether
they should be added to or substracted from other values...

As a side note, one  of the changes you introduced was better checking
of the return status from perfstat_partition_total() using errno. This
reminded me that under AIX errno is by default unsafe to use in a
multithreaded environment (which collectd is). I posted a fix ("Fix
errno thread-safety under AIX") on Sat, 19 Jun 2010, which if I am not
mistaken has not been merged yet.

Best regards,

Aurélien Reynaud

Signed-off-by: Florian Forster <octo@huhu.verplant.org>
14 years agocollection3: Add graph for "ps_disk_octets".
Florian Forster [Sun, 5 Sep 2010 08:12:02 +0000 (10:12 +0200)]
collection3: Add graph for "ps_disk_octets".

14 years agonotify_email plugin: Check for "session == NULL" and return gracefully.
Florian Forster [Sun, 5 Sep 2010 07:42:40 +0000 (09:42 +0200)]
notify_email plugin: Check for "session == NULL" and return gracefully.

I don't know how libesmtp handles NULL pointers and I don't want to take
my chances.

14 years agonotify_email plugin: Serialize all accesses to libesmtp using a mutex.
Florian Forster [Sun, 5 Sep 2010 07:36:55 +0000 (09:36 +0200)]
notify_email plugin: Serialize all accesses to libesmtp using a mutex.

14 years agocollection3: fix multiple hosts selection issue
Jerome Oufella [Wed, 1 Sep 2010 18:35:58 +0000 (14:35 -0400)]
collection3: fix multiple hosts selection issue

When selecting multiple hosts in collection3's hosts list, and with some
plugins only (the ones that use a specific resource name such as memory
or tcpconns), the resulting graph list will be limited to one single
graph (instead of one per host).

This patch addresses this issue by modifying the name of the hash key
in the group_files_by_plugin_instance function, making it less prone
to name collisions by prefixing it by the host name.

Comments and enhancements will be welcome.

Signed-off-by: Jerome Oufella <jerome.oufella@savoirfairelinux.com>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>