From 50cadef109fdefb91794ab2e059f6a295fd7136b Mon Sep 17 00:00:00 2001 From: octo Date: Tue, 17 Jan 2006 11:59:32 +0000 Subject: [PATCH] Changed version to 3.6.0 Removed most plugin-packages. Added mysql-package --- ChangeLog | 2 +- README | 22 ++++++++---- configure.in | 2 +- debian/changelog | 15 ++++++++ debian/collectd-mysql.files | 1 + debian/collectd-users.files | 1 - debian/collectd.manpages | 2 ++ debian/control | 86 ++++++--------------------------------------- debian/rules | 2 +- src/collectd.c | 10 ++++-- src/collectd.pod | 32 ++++++++++++++++- 11 files changed, 86 insertions(+), 89 deletions(-) create mode 100644 debian/collectd-mysql.files delete mode 100644 debian/collectd-users.files create mode 100644 debian/collectd.manpages diff --git a/ChangeLog b/ChangeLog index f4d3ce2a..ea681cfe 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,4 @@ -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. diff --git a/README b/README index ca28e009..0434c75d 100644 --- a/README +++ b/README @@ -20,6 +20,9 @@ Features - 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) @@ -32,6 +35,9 @@ Features - 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) @@ -68,12 +74,17 @@ Features 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. @@ -90,9 +101,6 @@ Operation 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 ------------- @@ -105,6 +113,8 @@ 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 diff --git a/configure.in b/configure.in index fcc40551..02f9db86 100644 --- a/configure.in +++ b/configure.in @@ -1,5 +1,5 @@ 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) diff --git a/debian/changelog b/debian/changelog index 215c322d..c10fbbf9 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,18 @@ +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 Tue, 17 Jan 2006 12:50:28 +0200 + +collectd (3.5.1-1) unstable; urgency=low + + * New upstream version + + -- Florian Forster Sun, 18 Dec 2005 23:09:11 +0200 + collectd (3.5.0-1) unstable; urgency=low * New upstream version diff --git a/debian/collectd-mysql.files b/debian/collectd-mysql.files new file mode 100644 index 00000000..9ec399e6 --- /dev/null +++ b/debian/collectd-mysql.files @@ -0,0 +1 @@ +usr/lib/collectd/mysql.so* diff --git a/debian/collectd-users.files b/debian/collectd-users.files deleted file mode 100644 index 8fd44ff4..00000000 --- a/debian/collectd-users.files +++ /dev/null @@ -1 +0,0 @@ -usr/lib/collectd/users.so* diff --git a/debian/collectd.manpages b/debian/collectd.manpages new file mode 100644 index 00000000..eaddce13 --- /dev/null +++ b/debian/collectd.manpages @@ -0,0 +1,2 @@ +src/collectd.1 +src/collectd.conf.5 diff --git a/debian/control b/debian/control index 941de0e0..3c562e6e 100644 --- a/debian/control +++ b/debian/control @@ -2,38 +2,19 @@ Source: collectd Section: utils Priority: optional Maintainer: Florian Forster -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 @@ -41,62 +22,15 @@ Depends: collectd (= ${Source-Version}), hddtemp 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. diff --git a/debian/rules b/debian/rules index 25a9e29a..938c1db8 100755 --- a/debian/rules +++ b/debian/rules @@ -18,7 +18,7 @@ DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) 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 diff --git a/src/collectd.c b/src/collectd.c index aacc96e3..38ff1567 100644 --- a/src/collectd.c +++ b/src/collectd.c @@ -136,6 +136,13 @@ static void exit_usage (char *name) #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 \n" "for contributions see `AUTHORS'\n"); @@ -269,8 +276,7 @@ int main (int argc, char **argv) { int c; - /* FIXME */ - c = getopt (argc, argv, "C:" + c = getopt (argc, argv, "hC:" #if COLLECT_DAEMON "f" #endif diff --git a/src/collectd.pod b/src/collectd.pod index 515cba6a..d926017b 100644 --- a/src/collectd.pod +++ b/src/collectd.pod @@ -20,6 +20,10 @@ CPU utilization (I) =item +Mountpoint usage (I) + +=item + Disk and partition usage/throughput (I) =item @@ -36,6 +40,10 @@ Memory usage (I) =item +MySQL statistics (I) + +=item + NFS utilization (I, Linux only) =item @@ -129,6 +137,11 @@ The DS'es depend on the module creating the RRD files: DS:idle:COUNTER:25:0:100 DS:wait:COUNTER:25:0:100 +=item Mountpoints (FpathE>.rrd>) + + DS:used:GAUGE:25:0:U + DS:free:GAUGE:25:0:U + =item Diskstats (FmajorE>-IminorE>.rrd>) DS:rcount:COUNTER:25:0:U @@ -164,6 +177,10 @@ The DS'es depend on the module creating the RRD files: DS:buffers:GAUGE:25:0:9223372036854775807 DS:cached:GAUGE:25:0:9223372036854775807 +=item MySQL statistics (FcommandE>.rrd> and FhandlerE>.rrd>) + + DS:value:COUNTER:25:0:U + =item NFSv2 Procedures (F.rrd>) DS:null:COUNTER:25:0:U @@ -298,7 +315,7 @@ On multi-homed machines you may need to add a route to the multicast net (B<224.0.0.0/4>) if multicast packages take the wrong interface. The listener on the other hand listens on B interfaces. -=head1 SPECIAL MODULES +=head1 SPECIAL PLUGINS =head2 cpufreq @@ -307,6 +324,19 @@ the first CPU installed) to get the current CPU frequency. If this file does not exist make sure B (L) or a similar tool is installed. +=head2 mysql + +Requires B 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 and evaluates C, +C and C which correspond to F, +F and F. Please refer to the B, I<5.2.4. Server Status Variables> for an explanation of +these values. + =head2 sensors The B module uses lm_sensors to retrieve sensor-values. This means -- 2.11.0