From 8a9435dfac5ea0e29bfaf7870b08ea8f94d12db7 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Sun, 9 Jul 2006 02:30:51 +0200 Subject: [PATCH] collectd.conf: (Un)comment plugins based on the configure-setting. Install the file in `sysconfdir'. What's not done yet is checking wether or not the (destination) file already exists and _don't_ overwrite it. --- configure.in | 2 +- src/Makefile.am | 6 ++-- src/collectd.conf.in | 78 ++++++++++++++++++++++++++++++++++------------------ 3 files changed, 57 insertions(+), 29 deletions(-) diff --git a/configure.in b/configure.in index a1dbca62..ce5899d5 100644 --- a/configure.in +++ b/configure.in @@ -921,7 +921,7 @@ AC_COLLECTD([users], [disable], [module], [user count statistics]) AC_COLLECTD([vserver], [disable], [module], [vserver statistics]) AC_COLLECTD([wireless], [disable], [module], [wireless link statistics]) -AC_OUTPUT(Makefile src/Makefile src/libconfig/Makefile src/liboping/Makefile) +AC_OUTPUT(Makefile src/Makefile src/collectd.conf src/libconfig/Makefile src/liboping/Makefile) cat <$@ diff --git a/src/collectd.conf.in b/src/collectd.conf.in index bfeef927..e1256f81 100644 --- a/src/collectd.conf.in +++ b/src/collectd.conf.in @@ -5,43 +5,69 @@ # Mode Local -DataDir /var/lib/collectd -PIDFile /var/run/collectd.pid -PluginDir /usr/lib/collectd - -#LoadPlugin apache -#LoadPlugin battery -LoadPlugin cpu -LoadPlugin cpufreq -LoadPlugin df -LoadPlugin disk -#LoadPlugin hddtemp -LoadPlugin load -LoadPlugin memory -#LoadPlugin mysql -LoadPlugin nfs -LoadPlugin ping -LoadPlugin processes -#LoadPlugin sensors -LoadPlugin serial -LoadPlugin swap -LoadPlugin traffic -LoadPlugin users -#LoadPlugin vserver +#DataDir /opt/collectd/var/lib/collectd +#PIDFile /opt/collectd/var/run/collectd.pid +#PluginDir /opt/collectd/lib/collectd + +@BUILD_MODULE_APACHE_TRUE@LoadPlugin apache +@BUILD_MODULE_APCUPS_TRUE@LoadPlugin apcups +@BUILD_MODULE_APPLE_SENSORS_TRUE@LoadPlugin apple_sensors +@BUILD_MODULE_BATTERY_TRUE@LoadPlugin battery +@BUILD_MODULE_CPU_TRUE@LoadPlugin cpu +@BUILD_MODULE_CPUFREQ_TRUE@LoadPlugin cpufreq +@BUILD_MODULE_DF_TRUE@LoadPlugin df +@BUILD_MODULE_DISK_TRUE@LoadPlugin disk +@BUILD_MODULE_HDDTEMP_TRUE@LoadPlugin hddtemp +@BUILD_MODULE_LOAD_TRUE@LoadPlugin load +@BUILD_MODULE_MEMORY_TRUE@LoadPlugin memory +@BUILD_MODULE_MYSQL_TRUE@LoadPlugin mysql +@BUILD_MODULE_NFS_TRUE@LoadPlugin nfs +@BUILD_MODULE_NTPD_TRUE@LoadPlugin ntpd +@BUILD_MODULE_PING_TRUE@LoadPlugin ping +@BUILD_MODULE_PROCESSES_TRUE@LoadPlugin processes +@BUILD_MODULE_SENSORS_TRUE@LoadPlugin sensors +@BUILD_MODULE_SERIAL_TRUE@LoadPlugin serial +@BUILD_MODULE_SWAP_TRUE@LoadPlugin swap +@BUILD_MODULE_TAPE_TRUE@LoadPlugin tape +@BUILD_MODULE_TRAFFIC_TRUE@LoadPlugin traffic +@BUILD_MODULE_USERS_TRUE@LoadPlugin users +@BUILD_MODULE_VSERVER_TRUE@LoadPlugin vserver +@BUILD_MODULE_WIRELESS_TRUE@LoadPlugin wireless # # URL http://localhost/status?auto # User www-user # Password secret +# CACert /etc/ssl/ca.crt # -# -# Host host.foo.bar +# +# Host localhost +# Port 3551 +# + +# +# Host 127.0.0.1 +# Port 7634 +# + +# +# Host localhost +# Port 123 # # # Host database.serv.er # User db_user # Password secret -## Database db_name +# Database db_name +# + +# +# Host host.foo.bar +# + +# +# Interface eth0 +# IgnoreSelected false # -- 2.11.0