81d70552801bc6ce78a2adba2024a91bb990e766
1 #
2 # Config file for collectd(1).
3 # Please read collectd.conf(5) for a list of options.
4 # http://collectd.org/
5 #
7 ##############################################################################
8 # Global #
9 #----------------------------------------------------------------------------#
10 # Global settings for the daemon. #
11 ##############################################################################
13 #Hostname "localhost"
14 #FQDNLookup true
15 #BaseDir "@localstatedir@/lib/@PACKAGE_NAME@"
16 #PIDFile "@localstatedir@/run/@PACKAGE_NAME@.pid"
17 #PluginDir "@libdir@/@PACKAGE_NAME@"
18 #TypesDB "@prefix@/share/@PACKAGE_NAME@/types.db"
20 #----------------------------------------------------------------------------#
21 # Interval at which to query values. This may be overwritten on a per-plugin #
22 # base by using the 'Interval' option of the LoadPlugin block: #
23 # <LoadPlugin foo> #
24 # Interval 60 #
25 # </LoadPlugin> #
26 #----------------------------------------------------------------------------#
27 #Interval 10
29 #Timeout 2
30 #ReadThreads 5
32 ##############################################################################
33 # Logging #
34 #----------------------------------------------------------------------------#
35 # Plugins which provide logging functions should be loaded first, so log #
36 # messages generated when loading or configuring other plugins can be #
37 # accessed. #
38 ##############################################################################
40 @LOAD_PLUGIN_SYSLOG@LoadPlugin syslog
41 @LOAD_PLUGIN_LOGFILE@LoadPlugin logfile
43 #<Plugin logfile>
44 # LogLevel @DEFAULT_LOG_LEVEL@
45 # File STDOUT
46 # Timestamp true
47 # PrintSeverity false
48 #</Plugin>
50 #<Plugin syslog>
51 # LogLevel @DEFAULT_LOG_LEVEL@
52 #</Plugin>
54 ##############################################################################
55 # LoadPlugin section #
56 #----------------------------------------------------------------------------#
57 # Lines beginning with a single `#' belong to plugins which have been built #
58 # but are disabled by default. #
59 # #
60 # Lines begnning with `##' belong to plugins which have not been built due #
61 # to missing dependencies or because they have been deactivated explicitly. #
62 ##############################################################################
64 #@BUILD_PLUGIN_AGGREGATION_TRUE@LoadPlugin aggregation
65 #@BUILD_PLUGIN_AMQP_TRUE@LoadPlugin amqp
66 #@BUILD_PLUGIN_APACHE_TRUE@LoadPlugin apache
67 #@BUILD_PLUGIN_APCUPS_TRUE@LoadPlugin apcups
68 #@BUILD_PLUGIN_APPLE_SENSORS_TRUE@LoadPlugin apple_sensors
69 #@BUILD_PLUGIN_ASCENT_TRUE@LoadPlugin ascent
70 #@BUILD_PLUGIN_BATTERY_TRUE@LoadPlugin battery
71 #@BUILD_PLUGIN_BIND_TRUE@LoadPlugin bind
72 #@BUILD_PLUGIN_CONNTRACK_TRUE@LoadPlugin conntrack
73 #@BUILD_PLUGIN_CONTEXTSWITCH_TRUE@LoadPlugin contextswitch
74 @BUILD_PLUGIN_CPU_TRUE@@BUILD_PLUGIN_CPU_TRUE@LoadPlugin cpu
75 #@BUILD_PLUGIN_CPUFREQ_TRUE@LoadPlugin cpufreq
76 @LOAD_PLUGIN_CSV@LoadPlugin csv
77 #@BUILD_PLUGIN_CURL_TRUE@LoadPlugin curl
78 #@BUILD_PLUGIN_CURL_JSON_TRUE@LoadPlugin curl_json
79 #@BUILD_PLUGIN_CURL_XML_TRUE@LoadPlugin curl_xml
80 #@BUILD_PLUGIN_DBI_TRUE@LoadPlugin dbi
81 #@BUILD_PLUGIN_DF_TRUE@LoadPlugin df
82 #@BUILD_PLUGIN_DISK_TRUE@LoadPlugin disk
83 #@BUILD_PLUGIN_DNS_TRUE@LoadPlugin dns
84 #@BUILD_PLUGIN_EMAIL_TRUE@LoadPlugin email
85 #@BUILD_PLUGIN_ENTROPY_TRUE@LoadPlugin entropy
86 #@BUILD_PLUGIN_ETHSTAT_TRUE@LoadPlugin ethstat
87 #@BUILD_PLUGIN_EXEC_TRUE@LoadPlugin exec
88 #@BUILD_PLUGIN_FILECOUNT_TRUE@LoadPlugin filecount
89 #@BUILD_PLUGIN_FSCACHE_TRUE@LoadPlugin fscache
90 #@BUILD_PLUGIN_GMOND_TRUE@LoadPlugin gmond
91 #@BUILD_PLUGIN_HDDTEMP_TRUE@LoadPlugin hddtemp
92 @BUILD_PLUGIN_INTERFACE_TRUE@@BUILD_PLUGIN_INTERFACE_TRUE@LoadPlugin interface
93 #@BUILD_PLUGIN_IPTABLES_TRUE@LoadPlugin iptables
94 #@BUILD_PLUGIN_IPMI_TRUE@LoadPlugin ipmi
95 #@BUILD_PLUGIN_IPVS_TRUE@LoadPlugin ipvs
96 #@BUILD_PLUGIN_IRQ_TRUE@LoadPlugin irq
97 #@BUILD_PLUGIN_JAVA_TRUE@LoadPlugin java
98 #@BUILD_PLUGIN_LIBVIRT_TRUE@LoadPlugin libvirt
99 @BUILD_PLUGIN_LOAD_TRUE@@BUILD_PLUGIN_LOAD_TRUE@LoadPlugin load
100 #@BUILD_PLUGIN_LPAR_TRUE@LoadPlugin lpar
101 #@BUILD_PLUGIN_MADWIFI_TRUE@LoadPlugin madwifi
102 #@BUILD_PLUGIN_MBMON_TRUE@LoadPlugin mbmon
103 #@BUILD_PLUGIN_MD_TRUE@LoadPlugin md
104 #@BUILD_PLUGIN_MEMCACHEC_TRUE@LoadPlugin memcachec
105 #@BUILD_PLUGIN_MEMCACHED_TRUE@LoadPlugin memcached
106 @BUILD_PLUGIN_MEMORY_TRUE@@BUILD_PLUGIN_MEMORY_TRUE@LoadPlugin memory
107 #@BUILD_PLUGIN_MODBUS_TRUE@LoadPlugin modbus
108 #@BUILD_PLUGIN_MULTIMETER_TRUE@LoadPlugin multimeter
109 #@BUILD_PLUGIN_MYSQL_TRUE@LoadPlugin mysql
110 #@BUILD_PLUGIN_NETAPP_TRUE@LoadPlugin netapp
111 #@BUILD_PLUGIN_NETLINK_TRUE@LoadPlugin netlink
112 @LOAD_PLUGIN_NETWORK@LoadPlugin network
113 #@BUILD_PLUGIN_NFS_TRUE@LoadPlugin nfs
114 #@BUILD_PLUGIN_NGINX_TRUE@LoadPlugin nginx
115 #@BUILD_PLUGIN_NOTIFY_DESKTOP_TRUE@LoadPlugin notify_desktop
116 #@BUILD_PLUGIN_NOTIFY_EMAIL_TRUE@LoadPlugin notify_email
117 #@BUILD_PLUGIN_NTPD_TRUE@LoadPlugin ntpd
118 #@BUILD_PLUGIN_NUMA_TRUE@LoadPlugin numa
119 #@BUILD_PLUGIN_NUT_TRUE@LoadPlugin nut
120 #@BUILD_PLUGIN_OLSRD_TRUE@LoadPlugin olsrd
121 #@BUILD_PLUGIN_ONEWIRE_TRUE@LoadPlugin onewire
122 #@BUILD_PLUGIN_OPENVPN_TRUE@LoadPlugin openvpn
123 #@BUILD_PLUGIN_ORACLE_TRUE@LoadPlugin oracle
124 #@BUILD_PLUGIN_PERL_TRUE@<LoadPlugin perl>
125 #@BUILD_PLUGIN_PERL_TRUE@ Globals true
126 #@BUILD_PLUGIN_PERL_TRUE@</LoadPlugin>
127 #@BUILD_PLUGIN_PINBA_TRUE@LoadPlugin pinba
128 #@BUILD_PLUGIN_PING_TRUE@LoadPlugin ping
129 #@BUILD_PLUGIN_POSTGRESQL_TRUE@LoadPlugin postgresql
130 #@BUILD_PLUGIN_POWERDNS_TRUE@LoadPlugin powerdns
131 #@BUILD_PLUGIN_PROCESSES_TRUE@LoadPlugin processes
132 #@BUILD_PLUGIN_PROTOCOLS_TRUE@LoadPlugin protocols
133 #@BUILD_PLUGIN_PYTHON_TRUE@<LoadPlugin python>
134 #@BUILD_PLUGIN_PYTHON_TRUE@ Globals true
135 #@BUILD_PLUGIN_PYTHON_TRUE@</LoadPlugin>
136 #@BUILD_PLUGIN_REDIS_TRUE@LoadPlugin redis
137 #@BUILD_PLUGIN_ROUTEROS_TRUE@LoadPlugin routeros
138 #@BUILD_PLUGIN_RRDCACHED_TRUE@LoadPlugin rrdcached
139 @LOAD_PLUGIN_RRDTOOL@LoadPlugin rrdtool
140 #@BUILD_PLUGIN_SENSORS_TRUE@LoadPlugin sensors
141 #@BUILD_PLUGIN_SERIAL_TRUE@LoadPlugin serial
142 #@BUILD_PLUGIN_SNMP_TRUE@LoadPlugin snmp
143 #@BUILD_PLUGIN_SWAP_TRUE@LoadPlugin swap
144 #@BUILD_PLUGIN_TABLE_TRUE@LoadPlugin table
145 #@BUILD_PLUGIN_TAIL_TRUE@LoadPlugin tail
146 #@BUILD_PLUGIN_TAPE_TRUE@LoadPlugin tape
147 #@BUILD_PLUGIN_TCPCONNS_TRUE@LoadPlugin tcpconns
148 #@BUILD_PLUGIN_TEAMSPEAK2_TRUE@LoadPlugin teamspeak2
149 #@BUILD_PLUGIN_TED_TRUE@LoadPlugin ted
150 #@BUILD_PLUGIN_THERMAL_TRUE@LoadPlugin thermal
151 #@BUILD_PLUGIN_TOKYOTYRANT_TRUE@LoadPlugin tokyotyrant
152 #@BUILD_PLUGIN_UNIXSOCK_TRUE@LoadPlugin unixsock
153 #@BUILD_PLUGIN_UPTIME_TRUE@LoadPlugin uptime
154 #@BUILD_PLUGIN_USERS_TRUE@LoadPlugin users
155 #@BUILD_PLUGIN_UUID_TRUE@LoadPlugin uuid
156 #@BUILD_PLUGIN_VARNISH_TRUE@LoadPlugin varnish
157 #@BUILD_PLUGIN_VMEM_TRUE@LoadPlugin vmem
158 #@BUILD_PLUGIN_VSERVER_TRUE@LoadPlugin vserver
159 #@BUILD_PLUGIN_WIRELESS_TRUE@LoadPlugin wireless
160 #@BUILD_PLUGIN_WRITE_GRAPHITE_TRUE@LoadPlugin write_graphite
161 #@BUILD_PLUGIN_WRITE_HTTP_TRUE@LoadPlugin write_http
162 #@BUILD_PLUGIN_WRITE_REDIS_TRUE@LoadPlugin write_redis
163 #@BUILD_PLUGIN_WRITE_MONGODB_TRUE@LoadPlugin write_mongodb
164 #@BUILD_PLUGIN_XMMS_TRUE@LoadPlugin xmms
165 #@BUILD_PLUGIN_ZFS_ARC_TRUE@LoadPlugin zfs_arc
167 ##############################################################################
168 # Plugin configuration #
169 #----------------------------------------------------------------------------#
170 # In this section configuration stubs for each plugin are provided. A desc- #
171 # ription of those options is available in the collectd.conf(5) manual page. #
172 ##############################################################################
174 #<Plugin "aggregation">
175 # <Aggregation>
176 # #Host "unspecified"
177 # Plugin "cpu"
178 # #PluginInstance "unspecified"
179 # Type "cpu"
180 # #TypeInstance "unspecified"
181 #
182 # GroupBy "Host"
183 # GroupBy "TypeInstance"
184 #
185 # CalculateNum false
186 # CalculateSum false
187 # CalculateAverage true
188 # CalculateMinimum false
189 # CalculateMaximum false
190 # CalculateStddev false
191 # </Aggregation>
192 #</Plugin>
194 #<Plugin "amqp">
195 # <Publish "name">
196 # Host "localhost"
197 # Port "5672"
198 # VHost "/"
199 # User "guest"
200 # Password "guest"
201 # Exchange "amq.fanout"
202 # RoutingKey "collectd"
203 # Persistent false
204 # StoreRates false
205 # </Publish>
206 #</Plugin>
208 #<Plugin apache>
209 # <Instance "local">
210 # URL "http://localhost/status?auto"
211 # User "www-user"
212 # Password "secret"
213 # CACert "/etc/ssl/ca.crt"
214 # </Instance>
215 #</Plugin>
217 #<Plugin apcups>
218 # Host "localhost"
219 # Port "3551"
220 # ReportSeconds true
221 #</Plugin>
223 #<Plugin ascent>
224 # URL "http://localhost/ascent/status/"
225 # User "www-user"
226 # Password "secret"
227 # CACert "/etc/ssl/ca.crt"
228 #</Plugin>
230 #<Plugin "bind">
231 # URL "http://localhost:8053/"
232 # ParseTime false
233 # OpCodes true
234 # QTypes true
235 #
236 # ServerStats true
237 # ZoneMaintStats true
238 # ResolverStats false
239 # MemoryStats true
240 #
241 # <View "_default">
242 # QTypes true
243 # ResolverStats true
244 # CacheRRSets true
245 #
246 # Zone "127.in-addr.arpa/IN"
247 # </View>
248 #</Plugin>
250 #<Plugin csv>
251 # DataDir "@localstatedir@/lib/@PACKAGE_NAME@/csv"
252 # StoreRates false
253 #</Plugin>
255 #<Plugin curl>
256 # <Page "stock_quotes">
257 # URL "http://finance.google.com/finance?q=NYSE%3AAMD"
258 # User "foo"
259 # Password "bar"
260 # MeasureResponseTime false
261 # <Match>
262 # Regex "<span +class=\"pr\"[^>]*> *([0-9]*\\.[0-9]+) *</span>"
263 # DSType "GaugeAverage"
264 # Type "stock_value"
265 # Instance "AMD"
266 # </Match>
267 # </Page>
268 #</Plugin>
270 #<Plugin curl_json>
271 ## See: http://wiki.apache.org/couchdb/Runtime_Statistics
272 # <URL "http://localhost:5984/_stats">
273 # Instance "httpd"
274 # <Key "httpd/requests/count">
275 # Type "http_requests"
276 # </Key>
277 #
278 # <Key "httpd_request_methods/*/count">
279 # Type "http_request_methods"
280 # </Key>
281 #
282 # <Key "httpd_status_codes/*/count">
283 # Type "http_response_codes"
284 # </Key>
285 # </URL>
286 ## Database status metrics:
287 # <URL "http://localhost:5984/_all_dbs">
288 # Instance "dbs"
289 # <Key "*/doc_count">
290 # Type "gauge"
291 # </Key>
292 # <Key "*/doc_del_count">
293 # Type "counter"
294 # </Key>
295 # <Key "*/disk_size">
296 # Type "bytes"
297 # </Key>
298 # </URL>
299 #</Plugin>
301 #<Plugin "curl_xml">
302 # <URL "http://localhost/stats.xml">
303 # Host "my_host"
304 # Instance "some_instance"
305 # User "collectd"
306 # Password "thaiNg0I"
307 # VerifyPeer true
308 # VerifyHost true
309 # CACert "/path/to/ca.crt"
310 #
311 # <XPath "table[@id=\"magic_level\"]/tr">
312 # Type "magic_level"
313 # #InstancePrefix "prefix-"
314 # InstanceFrom "td[1]"
315 # ValuesFrom "td[2]/span[@class=\"level\"]"
316 # </XPath>
317 # </URL>
318 #</Plugin>
320 #<Plugin dbi>
321 # <Query "num_of_customers">
322 # Statement "SELECT 'customers' AS c_key, COUNT(*) AS c_value FROM customers_tbl"
323 # <Result>
324 # Type "gauge"
325 # InstancesFrom "c_key"
326 # ValuesFrom "c_value"
327 # </Result>
328 # </Query>
329 # <Database "customers_db">
330 # Driver "mysql"
331 # DriverOption "host" "localhost"
332 # DriverOption "username" "collectd"
333 # DriverOption "password" "AeXohy0O"
334 # DriverOption "dbname" "custdb0"
335 # #SelectDB "custdb0"
336 # Query "num_of_customers"
337 # #Query "..."
338 # </Database>
339 #</Plugin>
341 #<Plugin df>
342 # Device "/dev/hda1"
343 # Device "192.168.0.2:/mnt/nfs"
344 # MountPoint "/home"
345 # FSType "ext3"
346 # IgnoreSelected false
347 # ReportByDevice false
348 # ReportReserved false
349 # ReportInodes false
350 #</Plugin>
352 #<Plugin disk>
353 # Disk "/^[hs]d[a-f][0-9]?$/"
354 # IgnoreSelected false
355 #</Plugin>
357 #<Plugin dns>
358 # Interface "eth0"
359 # IgnoreSource "192.168.0.1"
360 # SelectNumericQueryTypes true
361 #</Plugin>
363 #<Plugin email>
364 # SocketFile "@localstatedir@/run/@PACKAGE_NAME@-email"
365 # SocketGroup "collectd"
366 # SocketPerms "0770"
367 # MaxConns 5
368 #</Plugin>
370 #<Plugin ethstat>
371 # Interface "eth0"
372 # Map "rx_csum_offload_errors" "if_rx_errors" "checksum_offload"
373 # Map "multicast" "if_multicast"
374 # MappedOnly false
375 #</Plugin>
377 #<Plugin exec>
378 # Exec "user:group" "/path/to/exec"
379 # NotificationExec "user:group" "/path/to/exec"
380 #</Plugin>
382 #<Plugin filecount>
383 # <Directory "/path/to/dir">
384 # Instance "foodir"
385 # Name "*.conf"
386 # MTime "-5m"
387 # Size "+10k"
388 # Recursive true
389 # IncludeHidden false
390 # </Directory>
391 #</Plugin>
393 #<Plugin "gmond">
394 # MCReceiveFrom "239.2.11.71" "8649"
395 # <Metric "swap_total">
396 # Type "swap"
397 # TypeInstance "total"
398 # DataSource "value"
399 # </Metric>
400 # <Metric "swap_free">
401 # Type "swap"
402 # TypeInstance "free"
403 # DataSource "value"
404 # </Metric>
405 #</Plugin>
407 #<Plugin hddtemp>
408 # Host "127.0.0.1"
409 # Port "7634"
410 #</Plugin>
412 #<Plugin interface>
413 # Interface "eth0"
414 # IgnoreSelected false
415 #</Plugin>
417 #<Plugin ipmi>
418 # Sensor "some_sensor"
419 # Sensor "another_one"
420 # IgnoreSelected false
421 # NotifySensorAdd false
422 # NotifySensorRemove true
423 # NotifySensorNotPresent false
424 #</Plugin>
426 #<Plugin iptables>
427 # Chain table chain
428 #</Plugin>
430 #<Plugin irq>
431 # Irq 7
432 # Irq 8
433 # Irq 9
434 # IgnoreSelected true
435 #</Plugin>
437 #<Plugin "java">
438 # JVMArg "-verbose:jni"
439 # JVMArg "-Djava.class.path=@prefix@/share/collectd/java/collectd-api.jar"
440 #
441 # LoadPlugin "org.collectd.java.Foobar"
442 # <Plugin "org.collectd.java.Foobar">
443 # # To be parsed by the plugin
444 # </Plugin>
445 #</Plugin>
447 #<Plugin libvirt>
448 # Connection "xen:///"
449 # RefreshInterval 60
450 # Domain "name"
451 # BlockDevice "name:device"
452 # InterfaceDevice "name:device"
453 # IgnoreSelected false
454 # HostnameFormat name
455 # InterfaceFormat name
456 #</Plugin>
458 #<Plugin lpar>
459 # CpuPoolStats false
460 # ReportBySerial false
461 #</Plugin>
463 #<Plugin madwifi>
464 # Interface "wlan0"
465 # IgnoreSelected false
466 # Source "SysFS"
467 # WatchSet "None"
468 # WatchAdd "node_octets"
469 # WatchAdd "node_rssi"
470 # WatchAdd "is_rx_acl"
471 # WatchAdd "is_scan_active"
472 #</Plugin>
474 #<Plugin mbmon>
475 # Host "127.0.0.1"
476 # Port "411"
477 #</Plugin>
479 #<Plugin md>
480 # Device "/dev/md0"
481 # IgnoreSelected false
482 #</Plugin>
484 #<Plugin memcachec>
485 # <Page "plugin_instance">
486 # Server "localhost"
487 # Key "page_key"
488 # <Match>
489 # Regex "(\\d+) bytes sent"
490 # ExcludeRegex "<lines to be excluded>"
491 # DSType CounterAdd
492 # Type "ipt_octets"
493 # Instance "type_instance"
494 # </Match>
495 # </Page>
496 #</Plugin>
498 #<Plugin memcached>
499 # <Instance "local">
500 # Host "127.0.0.1"
501 # Port "11211"
502 # </Instance>
503 #</Plugin>
505 #<Plugin modbus>
506 # <Data "data_name">
507 # RegisterBase 1234
508 # RegisterType float
509 # Type gauge
510 # Instance "..."
511 # </Data>
512 #
513 # <Host "name">
514 # Address "addr"
515 # Port "1234"
516 # Interval 60
517 #
518 # <Slave 1>
519 # Instance "foobar" # optional
520 # Collect "data_name"
521 # </Slave>
522 # </Host>
523 #</Plugin>
525 #<Plugin mysql>
526 # <Database db_name>
527 # Host "database.serv.er"
528 # User "db_user"
529 # Password "secret"
530 # Database "db_name"
531 # MasterStats true
532 # </Database>
533 #
534 # <Database db_name2>
535 # Host "localhost"
536 # Socket "/var/run/mysql/mysqld.sock"
537 # SlaveStats true
538 # SlaveNotifications true
539 # </Database>
540 #</Plugin>
542 #<Plugin netapp>
543 # <Host "netapp1.example.com">
544 # Protocol "https"
545 # Address "10.0.0.1"
546 # Port 443
547 # User "username"
548 # Password "aef4Aebe"
549 # Interval 30
550 #
551 # <WAFL>
552 # Interval 30
553 # GetNameCache true
554 # GetDirCache true
555 # GetBufferCache true
556 # GetInodeCache true
557 # </WAFL>
558 #
559 # <Disks>
560 # Interval 30
561 # GetBusy true
562 # </Disks>
563 #
564 # <VolumePerf>
565 # Interval 30
566 # GetIO "volume0"
567 # IgnoreSelectedIO false
568 # GetOps "volume0"
569 # IgnoreSelectedOps false
570 # GetLatency "volume0"
571 # IgnoreSelectedLatency false
572 # </VolumePerf>
573 #
574 # <VolumeUsage>
575 # Interval 30
576 # GetCapacity "vol0"
577 # GetCapacity "vol1"
578 # IgnoreSelectedCapacity false
579 # GetSnapshot "vol1"
580 # GetSnapshot "vol3"
581 # IgnoreSelectedSnapshot false
582 # </VolumeUsage>
583 #
584 # <System>
585 # Interval 30
586 # GetCPULoad true
587 # GetInterfaces true
588 # GetDiskOps true
589 # GetDiskIO true
590 # </System>
591 # </Host>
592 #</Plugin>
594 #<Plugin netlink>
595 # Interface "All"
596 # VerboseInterface "All"
597 # QDisc "eth0" "pfifo_fast-1:0"
598 # Class "ppp0" "htb-1:10"
599 # Filter "ppp0" "u32-1:0"
600 # IgnoreSelected false
601 #</Plugin>
603 @LOAD_PLUGIN_NETWORK@<Plugin network>
604 # # client setup:
605 @LOAD_PLUGIN_NETWORK@ Server "ff18::efc0:4a42" "25826"
606 @LOAD_PLUGIN_NETWORK@ <Server "239.192.74.66" "25826">
607 # SecurityLevel Encrypt
608 # Username "user"
609 # Password "secret"
610 # Interface "eth0"
611 @LOAD_PLUGIN_NETWORK@ </Server>
612 # TimeToLive "128"
613 #
614 # # server setup:
615 # Listen "ff18::efc0:4a42" "25826"
616 # <Listen "239.192.74.66" "25826">
617 # SecurityLevel Sign
618 # AuthFile "/etc/collectd/passwd"
619 # Interface "eth0"
620 # </Listen>
621 # MaxPacketSize 1024
622 #
623 # # proxy setup (client and server as above):
624 # Forward true
625 #
626 # # statistics about the network plugin itself
627 # ReportStats false
628 #
629 # # "garbage collection"
630 # CacheFlush 1800
631 @LOAD_PLUGIN_NETWORK@</Plugin>
633 #<Plugin nginx>
634 # URL "http://localhost/status?auto"
635 # User "www-user"
636 # Password "secret"
637 # CACert "/etc/ssl/ca.crt"
638 #</Plugin>
640 #<Plugin notify_desktop>
641 # OkayTimeout 1000
642 # WarningTimeout 5000
643 # FailureTimeout 0
644 #</Plugin>
646 #<Plugin notify_email>
647 # SMTPServer "localhost"
648 # SMTPPort 25
649 # SMTPUser "my-username"
650 # SMTPPassword "my-password"
651 # From "collectd@main0server.com"
652 # # <WARNING/FAILURE/OK> on <hostname>. beware! do not use not more than two %s in this string!!!
653 # Subject "Aaaaaa!! %s on %s!!!!!"
654 # Recipient "email1@domain1.net"
655 # Recipient "email2@domain2.com"
656 #</Plugin>
658 #<Plugin ntpd>
659 # Host "localhost"
660 # Port 123
661 # ReverseLookups false
662 # IncludeUnitID true
663 #</Plugin>
665 #<Plugin nut>
666 # UPS "upsname@hostname:port"
667 #</Plugin>
669 #<Plugin olsrd>
670 # Host "127.0.0.1"
671 # Port "2006"
672 # CollectLinks "Summary"
673 # CollectRoutes "Summary"
674 # CollectTopology "Summary"
675 #</Plugin>
677 #<Plugin onewire>
678 # Device "-s localhost:4304"
679 # Sensor "F10FCA000800"
680 # IgnoreSelected false
681 #</Plugin>
683 #<Plugin openvpn>
684 # StatusFile "/etc/openvpn/openvpn-status.log"
685 # ImprovedNamingSchema false
686 # CollectCompression true
687 # CollectIndividualUsers true
688 # CollectUserCount false
689 #</Plugin>
691 #<Plugin oracle>
692 # <Query "out_of_stock">
693 # Statement "SELECT category, COUNT(*) AS value FROM products WHERE in_stock = 0 GROUP BY category"
694 # <Result>
695 # Type "gauge"
696 # InstancesFrom "category"
697 # ValuesFrom "value"
698 # </Result>
699 # </Query>
700 # <Database "product_information">
701 # ConnectID "db01"
702 # Username "oracle"
703 # Password "secret"
704 # Query "out_of_stock"
705 # </Database>
706 #</Plugin>
708 #<Plugin perl>
709 # IncludeDir "/my/include/path"
710 # BaseName "Collectd::Plugins"
711 # EnableDebugger ""
712 # LoadPlugin Monitorus
713 # LoadPlugin OpenVZ
714 #
715 # <Plugin foo>
716 # Foo "Bar"
717 # Qux "Baz"
718 # </Plugin>
719 #</Plugin>
721 #<Plugin pinba>
722 # Address "::0"
723 # Port "30002"
724 # <View "name">
725 # Host "host name"
726 # Server "server name"
727 # Script "script name"
728 # </View>
729 #</Plugin>
731 #<Plugin ping>
732 # Host "host.foo.bar"
733 # Interval 1.0
734 # Timeout 0.9
735 # TTL 255
736 # SourceAddress "1.2.3.4"
737 # Device "eth0"
738 # MaxMissed -1
739 #</Plugin>
741 #<Plugin postgresql>
742 # <Query magic>
743 # Statement "SELECT magic FROM wizard WHERE host = $1;"
744 # Param hostname
745 # <Result>
746 # Type gauge
747 # InstancePrefix "magic"
748 # ValuesFrom magic
749 # </Result>
750 # </Query>
751 # <Query rt36_tickets>
752 # Statement "SELECT COUNT(type) AS count, type \
753 # FROM (SELECT CASE \
754 # WHEN resolved = 'epoch' THEN 'open' \
755 # ELSE 'resolved' END AS type \
756 # FROM tickets) type \
757 # GROUP BY type;"
758 # <Result>
759 # Type counter
760 # InstancePrefix "rt36_tickets"
761 # InstancesFrom "type"
762 # ValuesFrom "count"
763 # </Result>
764 # </Query>
765 # <Writer sqlstore>
766 # # See contrib/postgresql/collectd_insert.sql for details
767 # Statement "SELECT collectd_insert($1, $2, $3, $4, $5, $6, $7, $8, $9);"
768 # StoreRates true
769 # </Writer>
770 # <Database foo>
771 # Host "hostname"
772 # Port "5432"
773 # User "username"
774 # Password "secret"
775 # SSLMode "prefer"
776 # KRBSrvName "kerberos_service_name"
777 # Query magic
778 # </Database>
779 # <Database bar>
780 # Interval 60
781 # Service "service_name"
782 # Query backend # predefined
783 # Query rt36_tickets
784 # </Database>
785 # <Database qux>
786 # Service "collectd_store"
787 # Writer sqlstore
788 # # see collectd.conf(5) for details
789 # CommitInterval 30
790 # </Database>
791 #</Plugin>
793 #<Plugin powerdns>
794 # <Server "server_name">
795 # Collect "latency"
796 # Collect "udp-answers" "udp-queries"
797 # Socket "/var/run/pdns.controlsocket"
798 # </Server>
799 # <Recursor "recursor_name">
800 # Collect "questions"
801 # Collect "cache-hits" "cache-misses"
802 # Socket "/var/run/pdns_recursor.controlsocket"
803 # </Recursor>
804 # LocalSocket "/opt/collectd/var/run/collectd-powerdns"
805 #</Plugin>
807 #<Plugin processes>
808 # Process "name"
809 #</Plugin>
811 #<Plugin protocols>
812 # Value "/^Tcp:/"
813 # IgnoreSelected false
814 #</Plugin>
816 #<Plugin python>
817 # ModulePath "/path/to/your/python/modules"
818 # LogTraces true
819 # Interactive true
820 # Import "spam"
821 #
822 # <Module spam>
823 # spam "wonderful" "lovely"
824 # </Module>
825 #</Plugin>
827 #<Plugin redis>
828 # <Node example>
829 # Host "redis.example.com"
830 # Port "6379"
831 # Timeout 2000
832 # </Node>
833 #</Plugin>
835 #<Plugin routeros>
836 # <Router>
837 # Host "router.example.com"
838 # Port "8728"
839 # User "admin"
840 # Password "dozaiTh4"
841 # CollectInterface true
842 # CollectRegistrationTable true
843 # CollectCPULoad true
844 # CollectMemory true
845 # CollectDF true
846 # CollectDisk true
847 # </Router>
848 #</Plugin>
850 #<Plugin rrdcached>
851 # DaemonAddress "unix:/tmp/rrdcached.sock"
852 # DataDir "@localstatedir@/lib/@PACKAGE_NAME@/rrd"
853 # CreateFiles true
854 # CollectStatistics true
855 #</Plugin>
857 #<Plugin rrdtool>
858 # DataDir "@localstatedir@/lib/@PACKAGE_NAME@/rrd"
859 # CacheTimeout 120
860 # CacheFlush 900
861 #</Plugin>
863 #<Plugin sensors>
864 # SensorConfigFile "/etc/sensors.conf"
865 # Sensor "it8712-isa-0290/temperature-temp1"
866 # Sensor "it8712-isa-0290/fanspeed-fan3"
867 # Sensor "it8712-isa-0290/voltage-in8"
868 # IgnoreSelected false
869 #</Plugin>
871 #<Plugin snmp>
872 # <Data "powerplus_voltge_input">
873 # Type "voltage"
874 # Table false
875 # Instance "input_line1"
876 # Values "SNMPv2-SMI::enterprises.6050.5.4.1.1.2.1"
877 # </Data>
878 # <Data "hr_users">
879 # Type "users"
880 # Table false
881 # Instance ""
882 # Values "HOST-RESOURCES-MIB::hrSystemNumUsers.0"
883 # </Data>
884 # <Data "std_traffic">
885 # Type "if_octets"
886 # Table true
887 # Instance "IF-MIB::ifDescr"
888 # Values "IF-MIB::ifInOctets" "IF-MIB::ifOutOctets"
889 # </Data>
890 #
891 # <Host "some.switch.mydomain.org">
892 # Address "192.168.0.2"
893 # Version 1
894 # Community "community_string"
895 # Collect "std_traffic"
896 # Interval 120
897 # </Host>
898 # <Host "some.server.mydomain.org">
899 # Address "192.168.0.42"
900 # Version 2
901 # Community "another_string"
902 # Collect "std_traffic" "hr_users"
903 # </Host>
904 # <Host "some.ups.mydomain.org">
905 # Address "192.168.0.3"
906 # Version 1
907 # Community "more_communities"
908 # Collect "powerplus_voltge_input"
909 # Interval 300
910 # </Host>
911 #</Plugin>
913 #<Plugin "swap">
914 # ReportByDevice false
915 # ReportBytes true
916 #</Plugin>
918 #<Plugin "table">
919 # <Table "/proc/slabinfo">
920 # Instance "slabinfo"
921 # Separator " "
922 # <Result>
923 # Type gauge
924 # InstancePrefix "active_objs"
925 # InstancesFrom 0
926 # ValuesFrom 1
927 # </Result>
928 # <Result>
929 # Type gauge
930 # InstancePrefix "objperslab"
931 # InstancesFrom 0
932 # ValuesFrom 4
933 # </Result>
934 # </Table>
935 #</Plugin>
937 #<Plugin "tail">
938 # <File "/var/log/exim4/mainlog">
939 # Instance "exim"
940 # <Match>
941 # Regex "S=([1-9][0-9]*)"
942 # DSType "CounterAdd"
943 # Type "ipt_bytes"
944 # Instance "total"
945 # </Match>
946 # <Match>
947 # Regex "\\<R=local_user\\>"
948 # ExcludeRegex "\\<R=local_user\\>.*mail_spool defer"
949 # DSType "CounterInc"
950 # Type "counter"
951 # Instance "local_user"
952 # </Match>
953 # </File>
954 #</Plugin>
956 #<Plugin tcpconns>
957 # ListeningPorts false
958 # LocalPort "25"
959 # RemotePort "25"
960 #</Plugin>
962 #<Plugin teamspeak2>
963 # Host "127.0.0.1"
964 # Port "51234"
965 # Server "8767"
966 #</Plugin>
968 #<Plugin ted>
969 # Device "/dev/ttyUSB0"
970 # Retries 0
971 #</Plugin>
973 #<Plugin thermal>
974 # ForceUseProcfs false
975 # Device "THRM"
976 # IgnoreSelected false
977 #</Plugin>
979 #<Plugin tokyotyrant>
980 # Host "localhost"
981 # Port "1978"
982 #</Plugin>
984 #<Plugin unixsock>
985 # SocketFile "@prefix@/var/run/@PACKAGE_NAME@-unixsock"
986 # SocketGroup "collectd"
987 # SocketPerms "0660"
988 # DeleteSocket false
989 #</Plugin>
991 #<Plugin uuid>
992 # UUIDFile "/etc/uuid"
993 #</Plugin>
995 #<Plugin varnish>
996 # This tag support an argument if you want to
997 # monitor the local instance just use </Instance>
998 # If you prefer defining another instance you can do
999 # so by using <Instance "myinstance">
1000 # <Instance>
1001 # CollectCache true
1002 # CollectBackend true
1003 # CollectConnections true
1004 # CollectSHM true
1005 # CollectESI false
1006 # CollectFetch false
1007 # CollectHCB false
1008 # CollectSMA false
1009 # CollectSMS false
1010 # CollectSM false
1011 # CollectTotals false
1012 # CollectWorkers false
1013 # </Instance>
1014 #</Plugin>
1016 #<Plugin vmem>
1017 # Verbose false
1018 #</Plugin>
1020 #<Plugin write_graphite>
1021 # <Carbon>
1022 # Host "localhost"
1023 # Port "2003"
1024 # Prefix "collectd"
1025 # Postfix "collectd"
1026 # StoreRates false
1027 # AlwaysAppendDS false
1028 # EscapeCharacter "_"
1029 # </Carbon>
1030 #</Plugin>
1032 #<Plugin write_http>
1033 # <URL "http://example.com/collectd-post">
1034 # User "collectd"
1035 # Password "weCh3ik0"
1036 # VerifyPeer true
1037 # VerifyHost true
1038 # CACert "/etc/ssl/ca.crt"
1039 # Format "Command"
1040 # StoreRates false
1041 # </URL>
1042 #</Plugin>
1044 #<Plugin write_redis>
1045 # <Node "example">
1046 # Host "localhost"
1047 # Port "6379"
1048 # Timeout 1000
1049 # </Node>
1050 #</Plugin>
1052 #<Plugin write_mongodb>
1053 # <Node "example">
1054 # Host "localhost"
1055 # Port "27017"
1056 # Timeout 1000
1057 # StoreRates false
1058 # </Node>
1059 #</Plugin>
1061 ##############################################################################
1062 # Filter configuration #
1063 #----------------------------------------------------------------------------#
1064 # The following configures collectd's filtering mechanism. Before changing #
1065 # anything in this section, please read the `FILTER CONFIGURATION' section #
1066 # in the collectd.conf(5) manual page. #
1067 ##############################################################################
1069 # Load required matches:
1070 #@BUILD_PLUGIN_MATCH_EMPTY_COUNTER_TRUE@LoadPlugin match_empty_counter
1071 #@BUILD_PLUGIN_MATCH_HASHED_TRUE@LoadPlugin match_hashed
1072 #@BUILD_PLUGIN_MATCH_REGEX_TRUE@LoadPlugin match_regex
1073 #@BUILD_PLUGIN_MATCH_VALUE_TRUE@LoadPlugin match_value
1074 #@BUILD_PLUGIN_MATCH_TIMEDIFF_TRUE@LoadPlugin match_timediff
1076 # Load required targets:
1077 #@BUILD_PLUGIN_TARGET_NOTIFICATION_TRUE@LoadPlugin target_notification
1078 #@BUILD_PLUGIN_TARGET_REPLACE_TRUE@LoadPlugin target_replace
1079 #@BUILD_PLUGIN_TARGET_SCALE_TRUE@LoadPlugin target_scale
1080 #@BUILD_PLUGIN_TARGET_SET_TRUE@LoadPlugin target_set
1081 #@BUILD_PLUGIN_TARGET_V5UPGRADE_TRUE@LoadPlugin target_v5upgrade
1083 #----------------------------------------------------------------------------#
1084 # The following block demonstrates the default behavior if no filtering is #
1085 # configured at all: All values will be sent to all available write plugins. #
1086 #----------------------------------------------------------------------------#
1088 #<Chain "PostCache">
1089 # Target "write"
1090 #</Chain>
1092 ##############################################################################
1093 # Threshold configuration #
1094 #----------------------------------------------------------------------------#
1095 # The following outlines how to configure collectd's threshold checking #
1096 # plugin. The plugin and possible configuration options are documented in #
1097 # the collectd-threshold(5) manual page. #
1098 ##############################################################################
1100 #@BUILD_PLUGIN_THRESHOLD_TRUE@LoadPlugin "threshold"
1101 #<Plugin "threshold">
1102 # <Type "foo">
1103 # WarningMin 0.00
1104 # WarningMax 1000.00
1105 # FailureMin 0.00
1106 # FailureMax 1200.00
1107 # Invert false
1108 # Instance "bar"
1109 # </Type>
1110 #
1111 # <Plugin "interface">
1112 # Instance "eth0"
1113 # <Type "if_octets">
1114 # FailureMax 10000000
1115 # DataSource "rx"
1116 # </Type>
1117 # </Plugin>
1118 #
1119 # <Host "hostname">
1120 # <Type "cpu">
1121 # Instance "idle"
1122 # FailureMin 10
1123 # </Type>
1124 #
1125 # <Plugin "memory">
1126 # <Type "memory">
1127 # Instance "cached"
1128 # WarningMin 100000000
1129 # </Type>
1130 # </Plugin>
1131 #
1132 # <Type "load">
1133 # DataSource "midterm"
1134 # FailureMax 4
1135 # Hits 3
1136 # Hysteresis 3
1137 # </Type>
1138 # </Host>
1139 #</Plugin>