Florian Forster [Wed, 28 Feb 2007 08:08:19 +0000 (09:08 +0100)]
Merge branch 'master' into merge/collectd-4
Conflicts:
src/apache.c
Florian Forster [Wed, 28 Feb 2007 07:54:36 +0000 (08:54 +0100)]
Merge branch 'ph/irq'
Florian Forster [Wed, 28 Feb 2007 07:53:33 +0000 (08:53 +0100)]
irq plugin: Fixed some issues, renamed RRD-files.
I've looked into your plugin in more detail just now and fixed the
following issues:
- Moved the RRD-files into a subdirectory called `irq'. That's how it's
going to be done in the next major version.
- Renamed the DS to `value' and set the maximum value to 65535. I'm not
sure if this maximum value is big enough..?
- Don't use `LOG_EMERG' when config-problems are found. Rather, print to
`STDERR' since it's still available during configuration.
- Use `strsplit' when parsing `/proc/interrupts'. This makes much of the
pointer-arithmetic obsolete and the code much more readable.
- The device names are not used in the filename, though I'm not certain
if that's the way to go here.. On my workstation there is a line like
this:
193: 28492 IO-APIC-level uhci_hcd, uhci_hcd, uhci_hcd, ehci_hcd
Apparently the interrupt is shared among several USB-controllers. My
problem here is, that as soon as one device is deactivated or the
order changes, so does the filename. Besides, a filename along the
lines of `irq-193-uhci_hcd-ehci_hcd.rrd' would be nice.
On another machine I have this line:
217:
50173955 0 IO-APIC-level 3ware Storage Controller
Where one device somehow manages to write a _description_ in there.
This makes detection of such shared interrupts as above tricky.
If anyone has a good idea how to use the last part of the lines for a
filename, please let me know.
Florian Forster [Tue, 27 Feb 2007 21:13:18 +0000 (22:13 +0100)]
rrdtool plugin: Updated the documentation in `collectd.conf(5)'
.. and the sample config file.
Florian Forster [Tue, 27 Feb 2007 21:02:51 +0000 (22:02 +0100)]
src/configfile.c: Actually set the `BaseDir' option.
Peter Holik [Tue, 27 Feb 2007 08:51:59 +0000 (09:51 +0100)]
irq plugin: Added plugin to collect interrupt counters.
-- 8< --
Hi!
This plugin collects interrupts from /proc/interrupts
Usually all interrupts are collected but
you can configure what interruptnumbers are collected or not.
Example:
collect only wanted irqs:
<Plugin irq>
Irq 0
Irq 14
IgnoreSelected false
</Plugin>
collect all but no these irqs:
<Plugin irq>
Irq 7
Irq 8
Irq 9
IgnoreSelected true
</Plugin>
cu Peter
-- >8 --
Florian Forster [Sat, 17 Feb 2007 11:21:26 +0000 (12:21 +0100)]
exec plugin: Implemented a first version.
Florian Forster [Thu, 15 Feb 2007 21:08:57 +0000 (22:08 +0100)]
liboconfig: Import version 0.1.1.
Florian Forster [Thu, 15 Feb 2007 21:03:45 +0000 (22:03 +0100)]
rrdtool plugin: Fix another memory leak..
..or, possibly, fixed the first one correctly. It's kind of hard to tell with
that caching code :/
Florian Forster [Thu, 15 Feb 2007 18:43:07 +0000 (19:43 +0100)]
rrdtool plugin: Fix a memory leak.
Florian Forster [Thu, 15 Feb 2007 11:10:09 +0000 (12:10 +0100)]
rrdtool plugin: Use the AVL-tree to implement the cache.
Florian Forster [Thu, 15 Feb 2007 11:09:33 +0000 (12:09 +0100)]
src/utils_avltree.[ch]: Fix the iterator, since it's actually usefull with caches.
The rrdtool-plugin will use the iterator to find outdated cache-entries and
flush only them, not the entire cache.
Florian Forster [Thu, 15 Feb 2007 08:47:37 +0000 (09:47 +0100)]
src/utils_avltree.[ch]: Documented the interface of the AVL-tree.
The iterator-code has been disabled, because it's not very practical and
`utils_llist' should be used if order matters. `avl_node_{next,prev}' have been
made `static', because they're not exported.
Florian Forster [Wed, 14 Feb 2007 21:44:45 +0000 (22:44 +0100)]
src/utils_avltree.c: Fix `avl_pick'.
Florian Forster [Wed, 14 Feb 2007 21:32:48 +0000 (22:32 +0100)]
Merge branch 'ff/avl-tree'
Florian Forster [Wed, 14 Feb 2007 21:29:48 +0000 (22:29 +0100)]
src/utils_avltree.c: Added `avl_pick'.
Florian Forster [Wed, 14 Feb 2007 17:45:10 +0000 (18:45 +0100)]
src/utils_avltree.c: Removal works, too.
Florian Forster [Wed, 14 Feb 2007 16:42:00 +0000 (17:42 +0100)]
src/utils_avltree.c: Insertion works correktly.
Florent EppO Monbillard [Wed, 14 Feb 2007 11:25:22 +0000 (12:25 +0100)]
apache plugin: Support for lighttpd's `BusyServers' field was added.
Florian Forster [Mon, 12 Feb 2007 19:08:32 +0000 (20:08 +0100)]
src/collectd.conf.pod: Removed the part about the `ExtendedNaming' in the sensors plugin.
Florian Forster [Mon, 12 Feb 2007 18:55:19 +0000 (19:55 +0100)]
rrdtool plugin: Implemented a `DataDir' config option to be able to store the RRD-files anywhere.
Florian Forster [Mon, 12 Feb 2007 18:52:06 +0000 (19:52 +0100)]
src/collectd.conf.{in,pod}: Update the sample config and the config's documentation.
Florian Forster [Mon, 12 Feb 2007 10:21:54 +0000 (11:21 +0100)]
Removed `src/libconfig/*'.
Florian Forster [Mon, 12 Feb 2007 10:18:30 +0000 (11:18 +0100)]
src/collectd.conf.in: Added the `network' plugin.
Florian Forster [Mon, 12 Feb 2007 10:18:08 +0000 (11:18 +0100)]
src/common.c: Removed the (extern) variable `operating_mode'.
Florian Forster [Mon, 12 Feb 2007 10:17:38 +0000 (11:17 +0100)]
src/collectd.c: Removed `Mode' code and other old stuff.
Florian Forster [Sun, 11 Feb 2007 21:12:33 +0000 (22:12 +0100)]
Changed from the old `libconfig' to the new `liboconfig'.
Much work lies in front of us.. :/
Florian Forster [Sun, 11 Feb 2007 14:41:02 +0000 (15:41 +0100)]
Merge branch 'collectd-3.11' into merge/master
Conflicts:
contrib/fedora/collectd.spec
Florian Forster [Sun, 11 Feb 2007 14:39:58 +0000 (15:39 +0100)]
Merge branch 'collectd-3.11' into merge/collectd-4
Conflicts:
src/multimeter.c
src/plugin.c
Florian Forster [Sun, 11 Feb 2007 11:52:16 +0000 (12:52 +0100)]
Bumped version to 3.11.2; Updated ChangeLog.
Florian Forster [Sun, 11 Feb 2007 11:39:46 +0000 (12:39 +0100)]
{email,multimeter,users} plugin: Don't pass NULL-pointers to `plugin_submit'.
Florian Forster [Sun, 11 Feb 2007 11:39:22 +0000 (12:39 +0100)]
plugin.c: Catch NULL-pointers and fix it or ignore the values.
Some systems, such as Solaris, cannot handle NULL-pointers being passed to
`printf ("%s", NULL);' or the like. This caused a crash when sending the users
plugin's values over the network under Solaris.
Florian Forster [Sat, 10 Feb 2007 10:30:18 +0000 (11:30 +0100)]
Merge branch 'collectd-3.11' into merge/collectd-4
Conflicts:
configure.in
src/processes.c
Florian Forster [Sat, 10 Feb 2007 10:16:44 +0000 (11:16 +0100)]
README: Updated the informatioin about plugins and prerequisites.
Florian Forster [Sat, 10 Feb 2007 09:40:30 +0000 (10:40 +0100)]
dns plugin: Only include and build with `utils_dns.c' if it's actually used.
Florian Forster [Sat, 10 Feb 2007 09:39:50 +0000 (10:39 +0100)]
configure.in: Don't link all objects with `libkstat' and `libdevinfo'.
Florian Forster [Sat, 10 Feb 2007 09:15:52 +0000 (10:15 +0100)]
configure.in: Bump to 3.11.1; Improve the detection of `netinet/udp.h'.
Florian Forster [Sat, 10 Feb 2007 08:22:21 +0000 (09:22 +0100)]
ChangeLog: Added changes for version 3.11.1.
Florian Forster [Fri, 9 Feb 2007 21:40:15 +0000 (22:40 +0100)]
traffic pluxin: Remove unnecessary `strcpy'.
Florian Forster [Fri, 9 Feb 2007 16:55:49 +0000 (17:55 +0100)]
Merge branch 'pull/collectd-3.11' into collectd-3.11
Florian Forster [Fri, 9 Feb 2007 16:39:01 +0000 (17:39 +0100)]
src/utils_mount.c: Fix defines so `cu_mount_getlist' works under Solaris.
Florian Forster [Wed, 7 Feb 2007 12:58:55 +0000 (13:58 +0100)]
Merge branch 'sh/freebsd'
Florian Forster [Wed, 7 Feb 2007 12:58:23 +0000 (13:58 +0100)]
src/utils_dns.c: Fix the handling of the `struct udphdr' under the GNU libc and other systems.
Sebastian Harl [Mon, 5 Feb 2007 21:42:26 +0000 (22:42 +0100)]
processes.c, utils_dns.c: Fix compile errors on GNU/kFreeBSD.
Signed-off-by: Sebastian Harl <sh@tokkee.org>
Florian Forster [Wed, 7 Feb 2007 12:12:31 +0000 (13:12 +0100)]
collection.cgi: Fix typos.
Florian Forster [Mon, 5 Feb 2007 19:01:27 +0000 (20:01 +0100)]
Merge branch 'pull/uni' into collectd-4
Florian Forster [Mon, 5 Feb 2007 11:30:10 +0000 (12:30 +0100)]
tape plugin: Converted to the new plugin interface.
Florian Forster [Mon, 5 Feb 2007 11:20:12 +0000 (12:20 +0100)]
serial plugin: Converted to the new plugin interface.
Florian Forster [Mon, 5 Feb 2007 11:06:04 +0000 (12:06 +0100)]
multimeter plugin: Converted to the new plugin interface.
Florian Forster [Mon, 5 Feb 2007 10:12:29 +0000 (11:12 +0100)]
hddtemp plugin: Converted to the new plugin interface.
Florian Forster [Mon, 5 Feb 2007 10:11:37 +0000 (11:11 +0100)]
mbmon plugin: Correct the `type's being passed to the dispatch function.
Florian Forster [Mon, 5 Feb 2007 09:51:03 +0000 (10:51 +0100)]
mbmon plugin: Converted to the new plugin interface.
Florian Forster [Sun, 4 Feb 2007 09:50:17 +0000 (10:50 +0100)]
mysql plugin: Converted to the new plugin interface.
Florian Forster [Sun, 4 Feb 2007 09:18:18 +0000 (10:18 +0100)]
{apcups,battery} plugin: Changes the voltage DS as for the sensors plugin.
Florian Forster [Sun, 4 Feb 2007 09:15:10 +0000 (10:15 +0100)]
sensors plugin: Change the DS of `voltage' to be named `value' as for other physical data-sets.
Florian Forster [Sun, 4 Feb 2007 09:14:35 +0000 (10:14 +0100)]
plugin interface: If an init-function fails, write an error to syslog and remove the read function.
Florian Forster [Sun, 4 Feb 2007 09:13:05 +0000 (10:13 +0100)]
wireless plugin: Converted to the new plugin interface.
Florian Forster [Fri, 2 Feb 2007 20:42:36 +0000 (21:42 +0100)]
collection.cgi: Reload the images using JavaScript if enabled.
Florian Forster [Fri, 2 Feb 2007 20:38:02 +0000 (21:38 +0100)]
dns plugin: Converted to the new plugin interface.
Florian Forster [Wed, 31 Jan 2007 15:40:47 +0000 (16:40 +0100)]
swap plugin: Converted to the new plugin interface.
Florian Forster [Wed, 31 Jan 2007 15:22:37 +0000 (16:22 +0100)]
ntpd plugin: Converted to the new plugin interface.
Florian Forster [Wed, 31 Jan 2007 14:38:36 +0000 (15:38 +0100)]
unixsock plugin: Finally fixed the `pthread_t'-initialization to be platform independant.
Florian Forster [Wed, 31 Jan 2007 13:40:01 +0000 (14:40 +0100)]
unixsock plugin: Fix the initialization of the pthread variable under Mac OS X.
Florian Forster [Wed, 31 Jan 2007 13:38:33 +0000 (14:38 +0100)]
processes plugin: Converted to the new plugin interface.
A first version anyways.
Florian Forster [Wed, 31 Jan 2007 12:48:21 +0000 (13:48 +0100)]
Merge branch 'pull/collectd-4'
Florian Forster [Wed, 31 Jan 2007 12:48:08 +0000 (13:48 +0100)]
cpu plugin: Remove newline from syslog message.
Florian Forster [Wed, 31 Jan 2007 11:17:37 +0000 (12:17 +0100)]
src/plugin.c: Implemented delaying of read-functions that fail.
The usual quadratic increase of delay-intervals is being used to disable the
function for up to 24 hours.
Florian Forster [Wed, 31 Jan 2007 08:27:25 +0000 (09:27 +0100)]
cpufreq plugin: Converted to the new plugin interface.
Florian Forster [Mon, 29 Jan 2007 14:08:52 +0000 (15:08 +0100)]
src/plugin.[ch]: Provide unregister-functions for plugins to remove certain functions.
Florian Forster [Mon, 29 Jan 2007 13:54:10 +0000 (14:54 +0100)]
disk plugin: Converted to the new plugin interface.
Florian Forster [Mon, 29 Jan 2007 12:14:49 +0000 (13:14 +0100)]
battery plugin: Converted to the new plugin interface.
Florian Forster [Mon, 29 Jan 2007 10:20:09 +0000 (11:20 +0100)]
df plugin: Converted to the new plugin interface.
Florian Forster [Mon, 29 Jan 2007 10:02:41 +0000 (11:02 +0100)]
unixsock plugin: Make created threads to be `detached'.
Florian Forster [Sun, 28 Jan 2007 19:15:33 +0000 (20:15 +0100)]
cpu plugin: Write each CPU-counter in a seperate RRD-file.
This has proven to be a lot more flexible. And if we're to add `interrupt' and
`soft interrupt' counters anyway, we might as well change it to this superior
layout.
Florian Forster [Sun, 28 Jan 2007 19:00:28 +0000 (20:00 +0100)]
unixsock plugin, collectd-nagios: Use the hostname, too, to identify values.
This is, of course, necessary, because many hosts may submit their values.
Florian Forster [Sun, 28 Jan 2007 17:52:45 +0000 (18:52 +0100)]
collectd-nagios: Added an option to select certain DSes and updated the usage.
Florian Forster [Sun, 28 Jan 2007 17:14:39 +0000 (18:14 +0100)]
collectd-nagios: Added a small program to perform Nagios-compatible checks on values.
Florian Forster [Sun, 28 Jan 2007 17:14:07 +0000 (18:14 +0100)]
unixsock plugin: Transmit the DS name so clients can chose which values they need.
Florian Forster [Sun, 28 Jan 2007 11:24:21 +0000 (12:24 +0100)]
Merge branch 'collectd-4' into ff/unixsock
Florian Forster [Sun, 28 Jan 2007 11:22:47 +0000 (12:22 +0100)]
cpu plugin: Fix a bug in the data-set description.
Florian Forster [Sun, 28 Jan 2007 11:22:17 +0000 (12:22 +0100)]
unixsock plugin: Added a first version of a UNIX-socket output plugin.
The goal is to build a nagios-interface on top of this.
Christian Wiese [Sun, 28 Jan 2007 09:45:07 +0000 (10:45 +0100)]
configure.in: Fix typo.
Florian Forster [Wed, 24 Jan 2007 16:52:03 +0000 (17:52 +0100)]
contrib/fedora/collectd.spec: Corrected the position of the init.d-script.
Florian Forster [Wed, 24 Jan 2007 16:49:14 +0000 (17:49 +0100)]
collectd.spec: Moved to `contrib/fedora/'.
Likewise the init.d-script.
Iain Lea [Wed, 24 Jan 2007 16:33:40 +0000 (17:33 +0100)]
collectd.spec: Updates for Fedora.
* Wed Jan 11 2007 Iain Lea <iain@bricbrac.de> 3.11.0-1
- fixed spec file to build correctly on fedora core
- added improved init.d script to work with chkconfig
- added %post and %postun to call chkconfig automatically
Florian Forster [Mon, 22 Jan 2007 21:55:50 +0000 (22:55 +0100)]
Merge branch 'pull/collectd-4'
Florian Forster [Mon, 22 Jan 2007 21:55:37 +0000 (22:55 +0100)]
apple_sensors plugin: Converted to the new plugin interface.
Florian Forster [Mon, 22 Jan 2007 21:54:42 +0000 (22:54 +0100)]
cpu plugin: Improved some syslog messages.
Also updated the copyright notice.
Florian Forster [Mon, 22 Jan 2007 21:53:25 +0000 (22:53 +0100)]
nfs plugin: Fixes to work under !Linux.
Florian Forster [Mon, 22 Jan 2007 21:52:49 +0000 (22:52 +0100)]
traffic plugin: Fix the plugin to work under Mac OS X.
Florian Forster [Mon, 22 Jan 2007 21:52:14 +0000 (22:52 +0100)]
csv plugin: Fixed the initialization of `struct flock' to be portable.
It didn't work on Mac OS X for example.
Florian Forster [Mon, 22 Jan 2007 21:36:40 +0000 (22:36 +0100)]
Merge branch 'ff/entropy' into collectd-4
Florian Forster [Mon, 22 Jan 2007 21:36:14 +0000 (22:36 +0100)]
traffic plugin: Updated copyright notice.
Florian Forster [Mon, 22 Jan 2007 21:35:55 +0000 (22:35 +0100)]
sensors plugin: Fixed some syntactic errors.
Florian Forster [Mon, 22 Jan 2007 09:57:46 +0000 (10:57 +0100)]
sensors plugin: Improved the data sources, changed the license and updated the copyright notice.
Florian Forster [Mon, 22 Jan 2007 09:56:33 +0000 (10:56 +0100)]
apcups plugin: Converted to the new plugin interface.
Florian Forster [Mon, 22 Jan 2007 09:56:10 +0000 (10:56 +0100)]
src/collectd.h: Include `math.h' and try to force it to define `NAN'.
Florian Forster [Mon, 22 Jan 2007 08:59:47 +0000 (09:59 +0100)]
entropy plugin: Added a plugin to collect available entropy.
Only works on Linux systems right now..
Florian Forster [Mon, 22 Jan 2007 08:31:39 +0000 (09:31 +0100)]
ping plugin: Converted to the new plugin interface.
Florian Forster [Wed, 17 Jan 2007 11:36:51 +0000 (12:36 +0100)]
memory plugin: Converted to the new plugin interface.