Andres J. Diaz [Tue, 1 Mar 2011 16:25:21 +0000 (17:25 +0100)]
Fix buffer length in parse_identifier_vl function.
In parse_identifier_vl function (common.c), the value passed to
sstrncpy as buffer length is the sizeof a char pointer, which
is 4bytes for 32bit arch and 8bytes for 64 bit ones.
This patch fix the length and truncate the buffer to the same size as
destination buffer.
Signed-off-by: Andres J. Diaz <ajdiaz@connectical.com>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
Florian Forster [Tue, 8 Feb 2011 15:43:22 +0000 (16:43 +0100)]
contrib/collection3: Set @INC at runtime, too.
Apparently the @INC variable is reset by mod_perl, which
causes later require()s to fail.
Florian Forster [Tue, 8 Feb 2011 10:14:19 +0000 (11:14 +0100)]
contrib/collection3: Add basic compatibility to mod_perl.
Some data is cached between requests, which may increase
performance, especially if different timespans of the same
graph are requested.
Florian Forster [Mon, 7 Feb 2011 13:42:17 +0000 (14:42 +0100)]
swap plugin: Declare swap_submit_derive() only on Linux.
Florian Forster [Mon, 7 Feb 2011 08:02:35 +0000 (09:02 +0100)]
ChangeLog: Fix typo.
Florian Forster [Mon, 7 Feb 2011 07:47:44 +0000 (08:47 +0100)]
Merge branch 'collectd-5.0'
Florian Forster [Mon, 7 Feb 2011 07:47:35 +0000 (08:47 +0100)]
Merge branch 'collectd-4.10' into collectd-5.0
Florian Forster [Mon, 7 Feb 2011 07:47:18 +0000 (08:47 +0100)]
Merge branch 'collectd-4.9' into collectd-4.10
Florian Forster [Mon, 7 Feb 2011 07:46:04 +0000 (08:46 +0100)]
Merge remote branch 'origin/ff/modbus'
Florian Forster [Mon, 7 Feb 2011 07:42:22 +0000 (08:42 +0100)]
Merge branch 'ff/flush-rrdcached'
Florian Forster [Mon, 7 Feb 2011 07:42:05 +0000 (08:42 +0100)]
Merge branch 'ff/swap'
Florian Forster [Mon, 7 Feb 2011 07:31:37 +0000 (08:31 +0100)]
exec plugin: Remove useless preprocessor stuff.
Florian Forster [Mon, 7 Feb 2011 07:00:31 +0000 (08:00 +0100)]
Merge branch 'pw/exclude_regex'
Florian Forster [Mon, 7 Feb 2011 06:40:22 +0000 (07:40 +0100)]
varnish plugin: Use a DERIVE type for allocated and free bytes.
Each event is counted, so storing a GAUGE is not the right thing to do.
Thanks to Renaud Chaput for pointing this out.
N.B.: The total amount of allocated memory is tracked by
"bytes-outstanding" for many storage backends.
Florian Forster [Fri, 4 Feb 2011 20:37:49 +0000 (21:37 +0100)]
src/collectd.conf.in: Remove the "TranslateDevicename" option from the "hddtemp" plugin.
Florian Forster [Thu, 3 Feb 2011 22:42:28 +0000 (23:42 +0100)]
src/common.c: Include <netinet/in.h> before <arpa/inet.h>.
Florian Forster [Thu, 3 Feb 2011 07:42:39 +0000 (08:42 +0100)]
teamspeak2 plugin: Include <netinet/in.h> before <arpa/inet.h>.
Florian Forster [Wed, 2 Feb 2011 14:07:26 +0000 (15:07 +0100)]
rrdcached plugin: Pass FLUSHes on to the caching daemon.
Florian Forster [Wed, 2 Feb 2011 13:25:32 +0000 (14:25 +0100)]
configure.in: Using sysctl(3) for swap statistics is only possible under Mac OS X.
Florian Forster [Wed, 2 Feb 2011 10:31:58 +0000 (11:31 +0100)]
configure.in: Fix (de)activation of the Swap plugin for OpenBSD.
Florian Forster [Fri, 28 Jan 2011 08:18:16 +0000 (09:18 +0100)]
ntpd plugin: Report failures of "ntpd_do_query" as *errors*, not debug messages.
Florian Forster [Tue, 25 Jan 2011 06:53:49 +0000 (07:53 +0100)]
MySQL plugin: Update copyright header.
Florian Forster [Tue, 25 Jan 2011 06:48:45 +0000 (07:48 +0100)]
src/configfile.[ch]: Update copyright header.
Florian Forster [Tue, 25 Jan 2011 06:42:53 +0000 (07:42 +0100)]
src/configfile.c: cf_util_get_port_number: Gracefully handle number arguments as well.
Why force the user into using strings when it's not strictly
necessary..?
Florian Forster [Thu, 13 Jan 2011 07:57:24 +0000 (08:57 +0100)]
src/utils_threshold.c: Fix creation of percentage notifications.
Joey Hess has reported a problem when creating notifications from
percentage thresholds. Because the (percentage) minimum value is
compared to the (raw) DS value, the following message is possible:
Message: Host XXX, plugin df type df (instance root): Data source
"free" is currently
1773072384.000000. That is above the warning
threshold of nan%.
A new section will handle this case correctly. In the inverted case, the
problem should not exist.
Florian Forster [Tue, 11 Jan 2011 08:06:58 +0000 (09:06 +0100)]
src/plugin.c: Free allocated data if plugin_insert_read() fails.
Florian Forster [Tue, 11 Jan 2011 07:57:08 +0000 (08:57 +0100)]
src/plugin.c: Move the error-checking code up.
This way the error message is much closer to the check and we save one
level of indentation for the "good" code.
Blaise Tarr [Mon, 10 Jan 2011 22:15:47 +0000 (17:15 -0500)]
plugin.c: prevent re-adding read functions
When multiple LoadPlugin options are used with a plugin, the plugin is
only loaded once, however the plugin's read function is invoked
multiple times at every interval. This in turn causes undesired
redundant data to be sent to the write plugins.
This patch prevents a plugin's read function from being re-added to
the read_heap and read_list during plugin registration.
Signed-off-by: Blaise Tarr <blaise.tarr@gmail.com>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
Florian Forster [Sat, 8 Jan 2011 15:57:56 +0000 (16:57 +0100)]
swap plugin: Implement the "ReportByDevice" for Linux.
Florian Forster [Sat, 8 Jan 2011 08:54:40 +0000 (09:54 +0100)]
configure.in: Unify status output.
Florian Forster [Sat, 8 Jan 2011 08:36:08 +0000 (09:36 +0100)]
libcollectdclient: Remove the "nonnull" attribute.
Some old versions of GCC don't know it and throw a warning.
Florian Forster [Sat, 8 Jan 2011 08:32:57 +0000 (09:32 +0100)]
libcollectdclient: Remove lcc_strdup().
We use XSI anyway, so why go there?
Florian Forster [Fri, 7 Jan 2011 07:28:32 +0000 (08:28 +0100)]
src/utils_dns.c: Make IPv6 support optional.
Florian Forster [Fri, 7 Jan 2011 07:12:54 +0000 (08:12 +0100)]
dns plugin: Disable the plugin if <pcap-bpf.h> is not available.
Apparently the AIX version of PCAP doesn't have this header file and is
thus missing a required struct definition.
Florian Forster [Fri, 7 Jan 2011 07:09:06 +0000 (08:09 +0100)]
src/types.db: Clearly mark the legacy types.
The legacy MySQL types are reintroduced because they are required by the
v5 upgrade target.
Florian Forster [Fri, 7 Jan 2011 07:08:32 +0000 (08:08 +0100)]
src/types_list.c: Ignore lines which begin with a hash sign.
Florian Forster [Thu, 6 Jan 2011 11:03:49 +0000 (12:03 +0100)]
ChangeLog: Document the changes to the "modbus" plugin.
Florian Forster [Thu, 6 Jan 2011 11:01:17 +0000 (12:01 +0100)]
modbus plugin: Relicense under the LGPLv2.1.
Florian Forster [Wed, 5 Jan 2011 16:36:12 +0000 (17:36 +0100)]
modbus plugin: Implement signed integer register types.
Signed-off-by: Florian Forster <octo@noris.net>
Florian Forster [Wed, 5 Jan 2011 09:15:32 +0000 (10:15 +0100)]
contrib/migrate-4-5.px: Add options parsing and help output.
Florian Forster [Tue, 4 Jan 2011 11:42:23 +0000 (12:42 +0100)]
Merge branch 'collectd-4.10'
Florian Forster [Tue, 4 Jan 2011 11:41:51 +0000 (12:41 +0100)]
Merge branch 'collectd-4.9' into collectd-4.10
Florian Forster [Tue, 4 Jan 2011 11:39:22 +0000 (12:39 +0100)]
dns plugin: Include <pcap-bpf.h> if available.
Florian Forster [Mon, 3 Jan 2011 16:41:33 +0000 (17:41 +0100)]
curl_json plugin: Query the URL before trying to print it.
This resolved a segmentation fault.
Florian Forster [Sun, 2 Jan 2011 21:20:14 +0000 (22:20 +0100)]
src/common.c: parse_identifier_vl: Don't pass NULL to sstrncpy().
Florian Forster [Sun, 2 Jan 2011 21:16:49 +0000 (22:16 +0100)]
swap plugin: Fix a comment.
Florian Forster [Thu, 30 Dec 2010 11:28:13 +0000 (12:28 +0100)]
src/collectd{ctl,-nagios}.c: Remove the standards-flags again.
Solaris and FreeBSD have problems with it for different reasons. The
huge NAN-block from "collectd.h" has been imported again, instead.
Florian Forster [Thu, 30 Dec 2010 10:37:52 +0000 (11:37 +0100)]
zfs_arc plugin: Remove unused variables.
Florian Forster [Thu, 30 Dec 2010 08:54:15 +0000 (09:54 +0100)]
Build system: Check whether X/Open flags are required for strptime.
This hopefully resolved problems under Solaris, where X/Open compatibility
pulls in a long list of other standards you have to stick to. For example,
we don't want to force the user to use a C99 compiler.
Florian Forster [Thu, 30 Dec 2010 07:54:04 +0000 (08:54 +0100)]
swap plugin: Deactivate the kstat-based code.
As discussed with Aurélien Reynaud on the mailing list.
Florian Forster [Thu, 30 Dec 2010 07:10:15 +0000 (08:10 +0100)]
java plugin: Improve an error message.
Florian Forster [Sun, 19 Dec 2010 13:16:59 +0000 (14:16 +0100)]
src/configfile.c: Enable the "Globals" flag for the Perl and Python plugin.
This special handling hopefully saves the average user from ever getting
in contact with the "Globals" option.
Florian Forster [Thu, 16 Dec 2010 00:26:50 +0000 (01:26 +0100)]
README: Document the version of libmodbus used and update URL.
Florian Forster [Wed, 15 Dec 2010 14:56:14 +0000 (15:56 +0100)]
modbus plugin: Restore compatibility to libmodbus 2.0.3.
This is the current "stable" version.
Florian Forster [Wed, 15 Dec 2010 15:52:51 +0000 (16:52 +0100)]
modbus plugin: Add support for libmodbus version 2.9.2.
This is the current "unstable" release. Hopefully the API won't
change too much in the future. All in all this new interface is
much nicer. The stable ("legacy") version of libmodbus is still
supported through preprocessor macros.
Florian Forster [Wed, 15 Dec 2010 14:56:14 +0000 (15:56 +0100)]
modbus plugin: Restore compatibility to libmodbus 2.0.3.
This is the current "stable" version.
Florian Forster [Wed, 15 Dec 2010 07:04:00 +0000 (08:04 +0100)]
src/utils_rrdcreate.c: Convert vl->interval to seconds when creating RRD files.
Florian Forster [Wed, 15 Dec 2010 06:51:40 +0000 (07:51 +0100)]
curl_json plugin: Fix handling of numbers which are returned as strings.
Also, the string handling function has been simplified. The obscure and
hardly documented sub-request for incomplete keys feature has been
removed.
Florian Forster [Tue, 14 Dec 2010 07:16:46 +0000 (08:16 +0100)]
curl_json plugin: Use "parse_value" to handle JSON numbers.
Florian Forster [Tue, 14 Dec 2010 06:25:24 +0000 (07:25 +0100)]
curl_json plugin: Use the global config helper functions.
Florian Forster [Mon, 13 Dec 2010 08:45:44 +0000 (09:45 +0100)]
curl_json plugin: Fix handling of arrays.
Florian Forster [Wed, 8 Dec 2010 14:00:58 +0000 (15:00 +0100)]
contrib/migrate-4-5.px: Add a first version of the migration script.
Florian Forster [Wed, 8 Dec 2010 12:23:41 +0000 (13:23 +0100)]
unixsock plugin: Remove the "GETTHRESHOLD" command.
Florian Forster [Mon, 6 Dec 2010 13:01:35 +0000 (14:01 +0100)]
Bump version to 5.0.0; Update ChangeLog.
Florian Forster [Mon, 6 Dec 2010 10:21:45 +0000 (11:21 +0100)]
swap plugin: Complain if physical and virtual reporting have both been deactivated.
Florian Forster [Mon, 6 Dec 2010 10:13:09 +0000 (11:13 +0100)]
swap plugin: Implement virtual / physical reporting on Solaris.
Florian Forster [Mon, 6 Dec 2010 08:31:34 +0000 (09:31 +0100)]
Merge branch 'collectd-4.10'
Florian Forster [Mon, 6 Dec 2010 08:31:15 +0000 (09:31 +0100)]
Merge branch 'collectd-4.9' into collectd-4.10
Florian Forster [Sun, 5 Dec 2010 15:40:34 +0000 (16:40 +0100)]
Various plugins: Convert more plugins to use "derive" instead of "counter".
Florian Forster [Sun, 5 Dec 2010 11:18:33 +0000 (12:18 +0100)]
Various plugins: Change various plugins to use "derive" internally.
This is just a beginning, other plugins will have to be changed, too.
Florian Forster [Sun, 5 Dec 2010 11:05:18 +0000 (12:05 +0100)]
src/common.c: parse_value: Fix assignment of derive and absolute values.
Florian Forster [Sun, 5 Dec 2010 10:44:12 +0000 (11:44 +0100)]
src/types.db: Rename the data sources of all types with only one DS to "value".
I'm not yet 100% sure what to do with the types with two or more data sources.
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.
Florian Forster [Sun, 5 Dec 2010 10:23:31 +0000 (11:23 +0100)]
threshold plugin: Implement dispatching "missing" notifications.
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.
Florian Forster [Sun, 5 Dec 2010 10:11:36 +0000 (11:11 +0100)]
src/plugin.[ch]: Pass the user data to registered "missing" functions.
Florian Forster [Sun, 5 Dec 2010 10:05:43 +0000 (11:05 +0100)]
threshold plugin: Move the threshold checking code into a plugin.
Florian Forster [Sat, 4 Dec 2010 08:30:47 +0000 (09:30 +0100)]
configure.in: Fix a typo in an AC_ARG_WITH description.
Florian Forster [Sun, 28 Nov 2010 07:36:39 +0000 (08:36 +0100)]
ChangeLog: Add missing line (copynpaste error).
Florian Forster [Sat, 27 Nov 2010 10:46:11 +0000 (11:46 +0100)]
Merge branch 'collectd-4.10'
Conflicts:
src/utils_rrdcreate.c
Florian Forster [Sat, 27 Nov 2010 10:03:34 +0000 (11:03 +0100)]
Bump version to 4.10.2; Update ChangeLog.
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
Florian Forster [Sat, 27 Nov 2010 09:55:47 +0000 (10:55 +0100)]
Bump version to 4.9.4; Update ChangeLog.
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).
Florian Forster [Thu, 25 Nov 2010 10:51:17 +0000 (11:51 +0100)]
Merge remote branch 'trenkel/collectd-4.9' into collectd-4.9
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
Florian Forster [Tue, 23 Nov 2010 17:45:49 +0000 (18:45 +0100)]
swap plugin: Fix a bug collecting swap I/O.
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.
Florian Forster [Tue, 23 Nov 2010 11:57:25 +0000 (12:57 +0100)]
src/common.[ch]: Implement "parse_identifier_vl".
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.
Florian Forster [Thu, 18 Nov 2010 08:48:17 +0000 (09:48 +0100)]
src/collectd.conf.in: Add 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.
Florian Forster [Wed, 17 Nov 2010 14:18:03 +0000 (15:18 +0100)]
Merge branch 'ff/highres'
Conflicts:
src/netapp.c
Florian Forster [Tue, 16 Nov 2010 11:20:18 +0000 (12:20 +0100)]
Merge remote branch 'trenkel/collectd-4.9' into collectd-4.9
Sven Trenkel [Tue, 16 Nov 2010 11:11:45 +0000 (12:11 +0100)]
Fixed RedHat init script to shut down collectd on reboot/halt.
Florian Forster [Tue, 16 Nov 2010 08:20:04 +0000 (09:20 +0100)]
network plugin: Introduce new types for the "high resolution" time fields.
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.
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.
Florian Forster [Thu, 11 Nov 2010 15:56:32 +0000 (16:56 +0100)]
unixsock plugin: Implement the "DeleteSocket" option.
Sven Trenkel [Thu, 11 Nov 2010 14:19:15 +0000 (15:19 +0100)]
python: Added support for subsecond interval.