Removed most plugin-packages.
Added mysql-package
-2005-12-17, Version 3.6.0
+2006-01-17, Version 3.6.0
* A config file has been added. This allows for loading only specific
plugins.
* A `df' plugin has been added.
- CPU frequency
(For laptops with speed step or a similar technology)
+ - Mountpoint usage
+ (Basically the values `df(1)' delivers)
+
- Disk utilization
(Sectors read/written, number of read/write actions, time spent doing IO)
- Memory utilization
(Memory occupied by running processes, page cache, buffer cache and free)
+ - MySQL server statistics
+ (Commands issued, handlers triggered and traffic sent/received)
+
- NFS Procedures
(Which NFS command were called how often. Only NFSv2 and NFSv3 right now)
Operation
---------
+ * collectd's configuration file can be found at `sysconfdir'/collectd.conf.
+ Run `collectd -h' for a list of builtin defaults. See `collectd.conf(5)'
+ for a list of options and a syntax description.
+
* When running collectd writes system statistics in RRD-files. Per default
they reside in `/var/lib/collectd'.
- * collectd needs to run as user root, since only root can craft ICMP
- packages needed to ping other hosts. collectd should NOT be installed
- setui root since it can be used to overwrite valuable files..
+ * When using the `ping' plugin collectd needs to run as user root, since only
+ root can craft ICMP packages needed to ping other hosts. collectd should
+ NOT be installed setuid root since it can be used to overwrite valuable
+ files..
* Sample scripts to generate graphs reside in `contrib/' in the source
package or somewhere near `/usr/share/doc/collectd' in most distributions.
30 minutes | 1680 | 35 days
6 hours | 1520 | 380 days
- * Use `-c' to start in client-, `-s' to start in server-mode. Read the
- manpage for details.
-
Prerequisites
-------------
If built without `librrd' the resulting binary will be `client only', i.e.
will send it's values via multicast and not create any RRD files itself.
+ * libmysqlclient (optional)
+
* lm-sensors (optional)
* libstatgrab may be used to collect statistics on systems other than Linux
dnl Process this file with autoconf to produce a configure script.
-AC_INIT(collectd, 3.6.alpha2)
+AC_INIT(collectd, 3.6.0)
AC_CONFIG_SRCDIR(src/collectd.c)
AC_CONFIG_HEADERS(src/config.h)
AM_INIT_AUTOMAKE(dist-bzip2)
+collectd (3.6.0-1) unstable; urgency=low
+
+ * New upstream version
+ * New module `mysql'
+ * Removed all modules but `sensors' and `hddtemp' since they can be
+ (de)activated using the config file.
+
+ -- Florian Forster <octo@verplant.org> Tue, 17 Jan 2006 12:50:28 +0200
+
+collectd (3.5.1-1) unstable; urgency=low
+
+ * New upstream version
+
+ -- Florian Forster <octo@verplant.org> Sun, 18 Dec 2005 23:09:11 +0200
+
collectd (3.5.0-1) unstable; urgency=low
* New upstream version
--- /dev/null
+usr/lib/collectd/mysql.so*
+++ /dev/null
-usr/lib/collectd/users.so*
--- /dev/null
+src/collectd.1
+src/collectd.conf.5
Section: utils
Priority: optional
Maintainer: Florian Forster <octo@verplant.org>
-Build-Depends: debhelper (>= 4.0.0), autotools-dev, librrd0-dev | librrd2-dev, libsensors-dev
+Build-Depends: debhelper (>= 4.0.0), autotools-dev, librrd0-dev | librrd2-dev, libsensors-dev, libmysqlclient14-dev
Standards-Version: 3.6.1
Package: collectd
Architecture: any
Depends: libc6, librrd0 | librrd2
-Suggests: collectd-sensors
+Suggests: collectd-hddtemp, collectd-mysql, collectd-sensors
Description: Statistics collection daemon for filling RRD files.
collectd is a small daemon written in C for performance. It reads various
- system statistics and updates RRD files, creating them if neccessary.
- Since the daemon doesn't need to startup every time it wants to update
- the files it's very fast and easy on the system. Also, the statistics are
- very fine grained since the files are updated every 10 seconds.
-
-Package: collectd-cpu
-Architecture: any
-Depends: collectd (= ${Source-Version})
-Description: collectd module for cpu usage.
- collectd module to collect CPU usage information.
-
-Package: collectd-cpufreq
-Architecture: any
-Depends: collectd (= ${Source-Version}), cpufreqd | powernowd | cpudyn
-Description: collectd module for cpu frequency collection.
- collectd module to collect current CPU frequency (when using SpeedStep or
- something like that).
-
-Package: collectd-disk
-Architecture: any
-Depends: collectd (= ${Source-Version})
-Description: collectd module for disk usage.
- collectd module to collect disk usage information.
+ system statistics and updates RRD files, creating them if neccessary. Since
+ the daemon doesn't need to startup every time it wants to update the files
+ it's very fast and easy on the system. Also, the statistics are very fine
+ grained since the files are updated every 10 seconds.
Package: collectd-hddtemp
Architecture: any
Description: collectd module for harddisk temperatures.
collectd module to collect harddisk temperatures using hddtemp.
-Package: collectd-load
+Package: collectd-mysql
Architecture: any
-Depends: collectd (= ${Source-Version})
-Description: collectd module for system load.
- collectd module to collect the system load.
-
-Package: collectd-memory
-Architecture: any
-Depends: collectd (= ${Source-Version})
+Depends: collectd (= ${Source-Version}), libmysqlclient14
Description: collectd module for memory utilization.
- collectd module to collect memory utilization.
-
-Package: collectd-nfs
-Architecture: any
-Depends: collectd (= ${Source-Version})
-Description: collectd module for NFS procedures.
- collectd module to collect NFS procedures counters.
-
-Package: collectd-ping
-Architecture: any
-Depends: collectd (= ${Source-Version})
-Description: collectd module for network latency.
- collectd module to collect ping roundtrip times.
-
-Package: collectd-processes
-Architecture: any
-Depends: collectd (= ${Source-Version})
-Description: collectd module for running processes.
- collectd module to collect the number of currently running processes.
+ collectd module to collect MySQL statistics. It links against
+ `libmysqlclient14' though other versions should do, too.
Package: collectd-sensors
Architecture: any
Depends: collectd (= ${Source-Version}), libsensors3
Description: collectd module for libsensors.
collectd module to collect system temperatures.
-
-Package: collectd-serial
-Architecture: any
-Depends: collectd (= ${Source-Version})
-Description: collectd module for serial traffic.
- collectd module to collect traffic on the serial interfaces.
-
-Package: collectd-swap
-Architecture: any
-Depends: collectd (= ${Source-Version})
-Description: collectd module for swap usage.
- collectd module to collect swap usage information.
-
-Package: collectd-traffic
-Architecture: any
-Depends: collectd (= ${Source-Version})
-Description: collectd module for network traffic.
- collectd module to collect network traffic counters.
-
-Package: collectd-users
-Architecture: any
-Depends: collectd (= ${Source-Version})
-Description: collectd module for user count.
- collectd module to collect the number of users logged into the system.
CFLAGS = -Wall -g
-PLUGINS = cpu cpufreq disk hddtemp load memory nfs ping processes sensors serial swap traffic users
+PLUGINS = hddtemp mysql sensors
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
CFLAGS += -O0
#if COLLECT_DAEMON
" -f Don't fork to the background.\n"
#endif
+ "\nBuiltin defaults:\n"
+ " Config-File "CONFIGFILE"\n"
+ " PID-File "PIDFILE"\n"
+ " Data-Directory "PKGLOCALSTATEDIR"\n"
+#if COLLECT_DEBUG
+ " Log-File "LOGFILE"\n"
+#endif
"\n"PACKAGE" "VERSION", http://verplant.org/collectd/\n"
"by Florian octo Forster <octo@verplant.org>\n"
"for contributions see `AUTHORS'\n");
{
int c;
- /* FIXME */
- c = getopt (argc, argv, "C:"
+ c = getopt (argc, argv, "hC:"
#if COLLECT_DAEMON
"f"
#endif
=item
+Mountpoint usage (I<df>)
+
+=item
+
Disk and partition usage/throughput (I<disk>)
=item
=item
+MySQL statistics (I<mysql>)
+
+=item
+
NFS utilization (I<nfs>, Linux only)
=item
DS:idle:COUNTER:25:0:100
DS:wait:COUNTER:25:0:100
+=item Mountpoints (F<df-I<E<lt>pathE<gt>>.rrd>)
+
+ DS:used:GAUGE:25:0:U
+ DS:free:GAUGE:25:0:U
+
=item Diskstats (F<disk-I<E<lt>majorE<gt>>-I<E<lt>minorE<gt>>.rrd>)
DS:rcount:COUNTER:25:0:U
DS:buffers:GAUGE:25:0:9223372036854775807
DS:cached:GAUGE:25:0:9223372036854775807
+=item MySQL statistics (F<mysql_commands-I<E<lt>commandE<gt>>.rrd> and F<mysql_handler-I<E<lt>handlerE<gt>>.rrd>)
+
+ DS:value:COUNTER:25:0:U
+
=item NFSv2 Procedures (F<nfs2_procedures-I<(client|server)>.rrd>)
DS:null:COUNTER:25:0:U
(B<224.0.0.0/4>) if multicast packages take the wrong interface. The listener
on the other hand listens on B<all> interfaces.
-=head1 SPECIAL MODULES
+=head1 SPECIAL PLUGINS
=head2 cpufreq
not exist make sure B<cpufreqd> (L<http://cpufreqd.sourceforge.net/>) or a
similar tool is installed.
+=head2 mysql
+
+Requires B<mysqlclient> to be installed. It connects to the database when
+started and keeps the connection up as long as possible. When the connection is
+interrupted for whatever reason it will try to re-connect. The syslog will
+contain loud complaints in case anything goes wrong.
+
+This plugin issues C<SHOW STATUS> and evaluates C<Bytes_{received,sent}>,
+C<Com_*> and C<Handler_*> which correspond to F<traffic-mysql.rrd>,
+F<mysql_commands-*.rrd> and F<mysql_handler-*.rrd>. Please refer to the B<MySQL
+reference manual>, I<5.2.4. Server Status Variables> for an explanation of
+these values.
+
=head2 sensors
The B<sensors> module uses lm_sensors to retrieve sensor-values. This means