From: Sebastian Harl Date: Wed, 27 May 2009 11:59:48 +0000 (+0200) Subject: collectd.conf: Updated sample configuration. X-Git-Tag: collectd-4.7.2-1~38^2^2^2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=cb0bef88144d4c223d9d3c10fba4806812d292c9;p=pkg-collectd.git collectd.conf: Updated sample configuration. Added further config options that did not yet appear. --- diff --git a/debian/collectd.conf b/debian/collectd.conf index 11bf8e0..8b5ca60 100644 --- a/debian/collectd.conf +++ b/debian/collectd.conf @@ -112,14 +112,16 @@ LoadPlugin users # URL "http://localhost/ascent/status/" # User "www-user" # Password "secret" +# VerifyPeer false +# VerifyHost false # CACert "/etc/ssl/ca.crt" # # # URL "http://localhost:8053/" +# # OpCodes true # QTypes true -# # ServerStats true # ZoneMaintStats true # ResolverStats false @@ -144,6 +146,9 @@ LoadPlugin users # URL "http://finance.google.com/finance?q=NYSE%3AAMD" # User "foo" # Password "bar" +# VerifyPeer false +# VerifyHost false +# CACert "/etc/ssl/ca.crt" # # Regex "]*> *([0-9]*\\.[0-9]+) *" # DSType "GaugeAverage" @@ -157,8 +162,11 @@ LoadPlugin users # # Statement "SELECT 'customers' AS c_key, COUNT(*) AS c_value \ # FROM customers_tbl" +# MinVersion 40102 +# MaxVersion 50042 # # Type "gauge" +# InstancePrefix "customer" # InstancesFrom "c_key" # ValuesFrom "c_value" # @@ -170,9 +178,9 @@ LoadPlugin users # DriverOption "username" "collectd" # DriverOption "password" "secret" # DriverOption "dbname" "custdb0" -# #SelectDB "custdb0" +# SelectDB "custdb0" # Query "num_of_customers" -# #Query "..." +# Query "..." # # @@ -196,6 +204,7 @@ LoadPlugin users # # +# SocketFile "/var/run/collectd-email" # SocketGroup "collectd" # SocketPerms "0770" # MaxConns 5 @@ -213,6 +222,7 @@ LoadPlugin users # Name "*.conf" # MTime "-5m" # Size "+10k" +# Recursive true # # @@ -227,6 +237,15 @@ LoadPlugin users # IgnoreSelected false # +# +# Sensor "some_sensor" +# Sensor "another_one" +# IgnoreSelected false +# NotifySensorAdd false +# NotifySensorRemove true +# NotifySensorNotPresent false +# + # # Chain "table" "chain" # @@ -268,10 +287,21 @@ LoadPlugin users # # -# Host "database.serv.er" -# User "db_user" -# Password "secret" -# Database "db_name" +# +# Host "database.serv.er" +# Port "3306" +# User "db_user" +# Password "secret" +# Database "db_name" +# MasterStats true +# +# +# +# Host "localhost" +# Socket "/var/run/mysql/mysqld.sock" +# SlaveStats true +# SlaveNotifications true +# # # @@ -351,15 +381,37 @@ LoadPlugin users # # Host "host.foo.bar" # Host "host.baz.qux" +# Interval 1.0 +# Timeout 0.9 # TTL 255 # # # -# Query "SELECT magic, spells FROM wizard WHERE host = $1;" +# Statement "SELECT magic FROM wizard WHERE host = $1;" # Param hostname -# Column gauge magic -# Column counter spells +# +# +# Type gauge +# InstancePrefix "magic" +# ValuesFrom "magic" +# +# +# +# +# Statement "SELECT COUNT(type) AS count, type \ +# FROM (SELECT CASE \ +# WHEN resolved = 'epoch' THEN 'open' \ +# ELSE 'resolved' END AS type \ +# FROM tickets) type \ +# GROUP BY type;" +# +# +# Type counter +# InstancePrefix "rt36_tickets" +# InstancesFrom "type" +# ValuesFrom "count" +# # # # @@ -376,6 +428,9 @@ LoadPlugin users # # # Service "service_name" +# +# Query backend # predefined +# Query rt36_tickets # # @@ -395,6 +450,7 @@ LoadPlugin users # # Process "name" +# ProcessMatch "foobar" "/usr/bin/perl foobar\\.pl.*" # # @@ -406,6 +462,7 @@ LoadPlugin users DataDir "/var/lib/collectd/rrd" # CacheTimeout 120 # CacheFlush 900 +# WritesPerSecond 30 # # The following settings are rather advanced # and should usually not be touched: @@ -430,17 +487,20 @@ LoadPlugin users # Type "voltage" # Table false # Instance "input_line1" +# Scale 0.1 # Values "SNMPv2-SMI::enterprises.6050.5.4.1.1.2.1" # # # Type "users" # Table false # Instance "" +# Shift -1 # Values "HOST-RESOURCES-MIB::hrSystemNumUsers.0" # # # Type "if_octets" # Table true +# InstancePrefix "traffic" # Instance "IF-MIB::ifDescr" # Values "IF-MIB::ifInOctets" "IF-MIB::ifOutOctets" #