From 7237c8c0b4d55dd605436e924cfa14d9eabbd730 Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Fri, 8 Feb 2008 20:36:15 +0100 Subject: [PATCH] Updated collectd.conf and added thresholds.conf. * Added missing configuration options. * Removed unneeded configuration options. * Include thresholds.conf from collectd.conf. --- debian/collectd.conf | 35 ++++++++++++++++++++++++++++++++--- debian/rules | 2 ++ debian/thresholds.conf | 37 +++++++++++++++++++++++++++++++++++++ 3 files changed, 71 insertions(+), 3 deletions(-) create mode 100644 debian/thresholds.conf diff --git a/debian/collectd.conf b/debian/collectd.conf index 0b57f3b..aabbc60 100644 --- a/debian/collectd.conf +++ b/debian/collectd.conf @@ -4,10 +4,10 @@ # Please read collectd.conf(5) for details. #Hostname "localhost" +FQDNLookup true #BaseDir "/var/lib/collectd" -#PIDFile "/var/run/collectd.pid" #PluginDir "/usr/lib/collectd" -#TypesDB "/usr/lib/collectd/types.db" +#TypesDB "/usr/lib/collectd/types.db" "/etc/collectd/my_types.db" #Interval 10 #ReadThreads 5 @@ -29,6 +29,7 @@ LoadPlugin interface #LoadPlugin iptables #LoadPlugin ipvs LoadPlugin irq +#LoadPlugin libvirt LoadPlugin load #LoadPlugin logfile #LoadPlugin mbmon @@ -55,6 +56,7 @@ LoadPlugin syslog LoadPlugin tcpconns #LoadPlugin unixsock LoadPlugin users +#LoadPlugin uuid #LoadPlugin vserver #LoadPlugin wireless @@ -72,6 +74,7 @@ LoadPlugin users # # DataDir "/var/lib/collectd/csv" +# StoreRates false # # @@ -95,6 +98,8 @@ LoadPlugin users # # Exec user "/path/to/exec" +# NotificationExec "/path/to/exec" +# NagiosExec "/path/to/exec" # # @@ -108,7 +113,7 @@ LoadPlugin users # # -# Chain table chain +# Chain "table" "chain" # # @@ -118,9 +123,20 @@ LoadPlugin users # IgnoreSelected true # +# +# Connection "xen:///" +# RefreshInterval 60 +# Domain "name" +# BlockDevice "name:device" +# InterfaceDevice "name:device" +# IgnoreSelected false +# HostnameFormat name +# + # # LogLevel "info" # File STDOUT +# Timestamp true # # @@ -146,6 +162,7 @@ LoadPlugin users # QDisc "eth0" "pfifo_fast-1:0" # Class "ppp0" "htb-1:10" # Filter "ppp0" "u32-1:0" +# IgnoreSelected false # # @@ -168,6 +185,7 @@ LoadPlugin users # # Host "localhost" # Port 123 +# ReverseLookups false # # @@ -177,6 +195,7 @@ LoadPlugin users # # IncludeDir "/my/include/path" # BaseName "Collectd::Plugin" +# EnableDebugger "" # LoadPlugin "foo" # LoadPlugin "bar" # @@ -184,6 +203,7 @@ LoadPlugin users # # Host "host.foo.bar" # Host "host.baz.qux" +# TTL 255 # # @@ -200,6 +220,7 @@ LoadPlugin users # StepSize 10 # HeartBeat 20 # RRARows 1200 +# RRATimespan 158112000 # XFF 0.1 @@ -210,6 +231,8 @@ LoadPlugin users # IgnoreSelected false # +# See /usr/share/doc/collectd/examples/snmp-data.conf.gz for a +# comprehensive sample configuration. # # # Type "voltage" @@ -268,3 +291,9 @@ LoadPlugin users # SocketPerms "0660" # +# +# UUIDFile "/etc/uuid" +# + +Include "/etc/collectd/thresholds.conf" + diff --git a/debian/rules b/debian/rules index 199707f..5975fd8 100755 --- a/debian/rules +++ b/debian/rules @@ -98,6 +98,8 @@ install-arch: build debian/collectd/etc/collectd/collectd.conf install -m 0644 debian/collection.conf \ debian/collectd/etc/collectd/collection.conf + install -m 0644 debian/thresholds.conf \ + debian/collectd/etc/collectd/thresholds.conf mkdir -p debian/collectd/usr/lib/collectd/utils/ for UTIL in extractDS.px migrate-3-4.px; do \ diff --git a/debian/thresholds.conf b/debian/thresholds.conf new file mode 100644 index 0000000..f7ec3d5 --- /dev/null +++ b/debian/thresholds.conf @@ -0,0 +1,37 @@ +# Threshold configuration for collectd(1). +# +# See the section "THRESHOLD CONFIGURATION" in collectd.conf(5) for details. + +# +# +# WarningMin 0.00 +# WarningMax 1000.00 +# FailureMin 0 +# FailureMax 1200.00 +# Invert false +# Persist false +# Instance "some_instance" +# +# +# +# Instance "eth0" +# +# FailureMax 10000000 +# +# +# +# +# +# Instance "idle" +# FailureMin 10 +# +# +# +# +# Instance "cached" +# WarningMin 100000000 +# +# +# +# + -- 2.30.2