Code

d9031199e192d47be4965473cfa4ee143d1f24de
[pkg-collectd.git] / debian / collectd.conf
1 # Config file for collectd(1).
2 #
3 # Some plugins need additional configuration and are disabled by default.
4 # Please read collectd.conf(5) for details.
5 #
6 # You should also read /usr/share/doc/collectd-core/README.Debian.plugins
7 # before enabling any more plugins.
9 ##############################################################################
10 # Global                                                                     #
11 #----------------------------------------------------------------------------#
12 # Global settings for the daemon.                                            #
13 ##############################################################################
15 #Hostname "localhost"
16 FQDNLookup true
17 #BaseDir "/var/lib/collectd"
18 #PluginDir "/usr/lib/collectd"
19 #TypesDB "/usr/share/collectd/types.db" "/etc/collectd/my_types.db"
21 #----------------------------------------------------------------------------#
22 # When enabled, plugins are loaded automatically with the default options    #
23 # when an appropriate <Plugin ...> block is encountered.                     #
24 # Disabled by default.                                                       #
25 #----------------------------------------------------------------------------#
26 #AutoLoadPlugin false
28 #----------------------------------------------------------------------------#
29 # When enabled, internal statistics are collected, using "collectd" as the   #
30 # plugin name.                                                               #
31 # Disabled by default.                                                       #
32 #----------------------------------------------------------------------------#
33 #CollectInternalStats false
35 #----------------------------------------------------------------------------#
36 # Interval at which to query values. This may be overwritten on a per-plugin #
37 # base by using the 'Interval' option of the LoadPlugin block:               #
38 #   <LoadPlugin foo>                                                         #
39 #       Interval 60                                                          #
40 #   </LoadPlugin>                                                            #
41 #----------------------------------------------------------------------------#
42 #Interval 10
44 #MaxReadInterval 86400
45 #Timeout         2
46 #ReadThreads     5
47 #WriteThreads    5
49 # Limit the size of the write queue. Default is no limit. Setting up a limit
50 # is recommended for servers handling a high volume of traffic.
51 #WriteQueueLimitHigh 1000000
52 #WriteQueueLimitLow   800000
54 ##############################################################################
55 # Logging                                                                    #
56 #----------------------------------------------------------------------------#
57 # Plugins which provide logging functions should be loaded first, so log     #
58 # messages generated when loading or configuring other plugins can be        #
59 # accessed.                                                                  #
60 ##############################################################################
62 #LoadPlugin logfile
63 LoadPlugin syslog
64 #LoadPlugin log_logstash
66 #<Plugin logfile>
67 #       LogLevel "info"
68 #       File STDOUT
69 #       Timestamp true
70 #       PrintSeverity false
71 #</Plugin>
73 <Plugin syslog>
74         LogLevel info
75 </Plugin>
77 #<Plugin log_logstash>
78 #       LogLevel info
79 #       File "/var/log/collectd.json.log"
80 #</Plugin>
82 ##############################################################################
83 # LoadPlugin section                                                         #
84 #----------------------------------------------------------------------------#
85 # Specify what features to activate.                                         #
86 ##############################################################################
88 #LoadPlugin aggregation
89 #LoadPlugin amqp
90 #LoadPlugin apache
91 #LoadPlugin apcups
92 #LoadPlugin ascent
93 #LoadPlugin barometer
94 LoadPlugin battery
95 #LoadPlugin bind
96 #LoadPlugin ceph
97 #LoadPlugin cgroups
98 #LoadPlugin chrony
99 #LoadPlugin conntrack
100 #LoadPlugin contextswitch
101 LoadPlugin cpu
102 #LoadPlugin cpufreq
103 #LoadPlugin cpusleep
104 #LoadPlugin csv
105 #LoadPlugin curl
106 #LoadPlugin curl_json
107 #LoadPlugin curl_xml
108 #LoadPlugin dbi
109 LoadPlugin df
110 LoadPlugin disk
111 #LoadPlugin dns
112 #LoadPlugin drbd
113 #LoadPlugin email
114 LoadPlugin entropy
115 #LoadPlugin ethstat
116 #LoadPlugin exec
117 #LoadPlugin fhcount
118 #LoadPlugin filecount
119 #LoadPlugin fscache
120 #LoadPlugin gmond
121 #LoadPlugin gps
122 #LoadPlugin hddtemp
123 LoadPlugin interface
124 #LoadPlugin ipc
125 #LoadPlugin ipmi
126 #LoadPlugin iptables
127 #LoadPlugin ipvs
128 LoadPlugin irq
129 #LoadPlugin java
130 LoadPlugin load
131 #LoadPlugin lua
132 #LoadPlugin lvm
133 #LoadPlugin madwifi
134 #LoadPlugin mbmon
135 #LoadPlugin md
136 #LoadPlugin memcachec
137 #LoadPlugin memcached
138 LoadPlugin memory
139 #LoadPlugin modbus
140 #LoadPlugin mqtt
141 #LoadPlugin multimeter
142 #LoadPlugin mysql
143 #LoadPlugin netlink
144 #LoadPlugin network
145 #LoadPlugin nfs
146 #LoadPlugin nginx
147 #LoadPlugin notify_desktop
148 #LoadPlugin notify_email
149 #LoadPlugin notify_nagios
150 #LoadPlugin ntpd
151 #LoadPlugin numa
152 #LoadPlugin nut
153 #LoadPlugin olsrd
154 #LoadPlugin onewire
155 #LoadPlugin openldap
156 #LoadPlugin openvpn
157 #LoadPlugin perl
158 #LoadPlugin pinba
159 #LoadPlugin ping
160 #LoadPlugin postgresql
161 #LoadPlugin powerdns
162 LoadPlugin processes
163 #LoadPlugin protocols
164 #LoadPlugin python
165 #LoadPlugin redis
166 #LoadPlugin rrdcached
167 LoadPlugin rrdtool
168 #LoadPlugin sensors
169 #LoadPlugin serial
170 #LoadPlugin sigrok
171 #LoadPlugin smart
172 #LoadPlugin snmp
173 #LoadPlugin statsd
174 LoadPlugin swap
175 #LoadPlugin table
176 #LoadPlugin tail
177 #LoadPlugin tail_csv
178 #LoadPlugin tcpconns
179 #LoadPlugin teamspeak2
180 #LoadPlugin ted
181 #LoadPlugin thermal
182 #LoadPlugin tokyotyrant
183 #LoadPlugin turbostat
184 #LoadPlugin unixsock
185 #LoadPlugin uptime
186 LoadPlugin users
187 #LoadPlugin uuid
188 #LoadPlugin varnish
189 #LoadPlugin virt
190 #LoadPlugin vmem
191 #LoadPlugin vserver
192 #LoadPlugin wireless
193 #LoadPlugin write_graphite
194 #LoadPlugin write_http
195 #LoadPlugin write_kafka
196 #LoadPlugin write_log
197 #LoadPlugin write_redis
198 #LoadPlugin write_riemann
199 #LoadPlugin write_sensu
200 #LoadPlugin write_tsdb
201 #LoadPlugin xencpu
202 #LoadPlugin zfs_arc
203 #LoadPlugin zookeeper
205 ##############################################################################
206 # Plugin configuration                                                       #
207 #----------------------------------------------------------------------------#
208 # In this section configuration stubs for each plugin are provided. A desc-  #
209 # ription of those options is available in the collectd.conf(5) manual page. #
210 ##############################################################################
212 #<Plugin aggregation>
213 #       <Aggregation>
214 #               #Host "unspecified"
215 #               Plugin "cpu"
216 #               PluginInstance "/[0,2,4,6,8]$/"
217 #               Type "cpu"
218 #               #TypeInstance "unspecified"
220 #               SetPlugin "cpu"
221 #               SetPluginInstance "even-%{aggregation}"
223 #               GroupBy "Host"
224 #               GroupBy "TypeInstance"
226 #               CalculateNum false
227 #               CalculateSum false
228 #               CalculateAverage true
229 #               CalculateMinimum false
230 #               CalculateMaximum false
231 #               CalculateStddev false
232 #       </Aggregation>
233 #</Plugin>
235 #<Plugin amqp>
236 #       <Publish "name">
237 #               Host "localhost"
238 #               Port "5672"
239 #               VHost "/"
240 #               User "guest"
241 #               Password "guest"
242 #               Exchange "amq.fanout"
243 #               RoutingKey "collectd"
244 #               Persistent false
245 #               StoreRates false
246 #               ConnectionRetryDelay 0
247 #       </Publish>
248 #</Plugin>
250 #<Plugin apache>
251 #       <Instance "foo">
252 #               URL "http://localhost/server-status?auto"
253 #               User "www-user"
254 #               Password "secret"
255 #               VerifyPeer false
256 #               VerifyHost false
257 #               CACert "/etc/ssl/ca.crt"
258 #               Server "apache"
259 #       </Instance>
261 #       <Instance "bar">
262 #               URL "http://some.domain.tld/status?auto"
263 #               Host "some.domain.tld"
264 #               Server "lighttpd"
265 #       </Instance>
266 #</Plugin>
268 #<Plugin apcups>
269 #       Host "localhost"
270 #       Port "3551"
271 #       ReportSeconds true
272 #       PersistentConnection true
273 #</Plugin>
275 #<Plugin ascent>
276 #       URL "http://localhost/ascent/status/"
277 #       User "www-user"
278 #       Password "secret"
279 #       VerifyPeer false
280 #       VerifyHost false
281 #       CACert "/etc/ssl/ca.crt"
282 #</Plugin>
284 #<Plugin barometer>
285 #       Device            "/dev/i2c-0";
286 #       Oversampling      512
287 #       PressureOffset    0.0
288 #       TemperatureOffset 0.0
289 #       Normalization     2
290 #       Altitude          238.0
291 #       TemperatureSensor "myserver/onewire-F10FCA000800/temperature"
292 #</Plugin>
294 #<Plugin battery>
295 #       ValuesPercentage false
296 #       ReportDegraded false
297 #</Plugin>
299 #<Plugin bind>
300 #       URL "http://localhost:8053/"
302 #       ParseTime false
304 #       OpCodes true
305 #       QTypes true
306 #       ServerStats true
307 #       ZoneMaintStats true
308 #       ResolverStats false
309 #       MemoryStats true
311 #       <View "_default">
312 #               QTypes true
313 #               ResolverStats true
314 #               CacheRRSets true
316 #               Zone "127.in-addr.arpa/IN"
317 #       </View>
318 #</Plugin>
320 #<Plugin ceph>
321 #       LongRunAvgLatency false
322 #       ConvertSpecialMetricTypes true
323 #       <Daemon "osd.0">
324 #               SocketPath "/var/run/ceph/ceph-osd.0.asok"
325 #       </Daemon>
326 #       <Daemon "osd.1">
327 #               SocketPath "/var/run/ceph/ceph-osd.1.asok"
328 #       </Daemon>
329 #       <Daemon "mon.a">
330 #               SocketPath "/var/run/ceph/ceph-mon.ceph1.asok"
331 #       </Daemon>
332 #       <Daemon "mds.a">
333 #               SocketPath "/var/run/ceph/ceph-mds.ceph1.asok"
334 #       </Daemon>
335 #</Plugin>
337 #<Plugin chrony>
338 #       Host    "localhost"
339 #       Port    "323"
340 #       Timeout "2"
341 #</Plugin>
343 #<Plugin cgroups>
344 #       CGroup "libvirt"
345 #       IgnoreSelected false
346 #</Plugin>
348 #<Plugin cpu>
349 #       ReportByCpu true
350 #       ReportByState true
351 #       ValuesPercentage false
352 #</Plugin>
354 #<Plugin csv>
355 #       DataDir "/var/lib/collectd/csv"
356 #       StoreRates false
357 #</Plugin>
359 #<Plugin curl>
360 #       <Page "stock_quotes">
361 #               URL "http://finance.google.com/finance?q=NYSE%3AAMD"
362 #               User "foo"
363 #               Password "bar"
364 #               Digest false
365 #               VerifyPeer true
366 #               VerifyHost true
367 #               CACert "/path/to/ca.crt"
368 #               Header "X-Custom-Header: foobar"
369 #               Post "foo=bar"
371 #               MeasureResponseTime false
372 #               MeasureResponseCode false
373 #               <Match>
374 #                       Regex "<span +class=\"pr\"[^>]*> *([0-9]*\\.[0-9]+) *</span>"
375 #                       DSType "GaugeAverage"
376 #                       Type "stock_value"
377 #                       Instance "AMD"
378 #               </Match>
379 #       </Page>
380 #</Plugin>
382 #<Plugin curl_json>
383 ## See: http://wiki.apache.org/couchdb/Runtime_Statistics
384 #  <URL "http://localhost:5984/_stats">
385 #    Instance "httpd"
386 #    <Key "httpd/requests/count">
387 #      Type "http_requests"
388 #    </Key>
390 #    <Key "httpd_request_methods/*/count">
391 #      Type "http_request_methods"
392 #    </Key>
394 #    <Key "httpd_status_codes/*/count">
395 #      Type "http_response_codes"
396 #    </Key>
397 #  </URL>
398 ## Database status metrics:
399 #  <URL "http://localhost:5984/_all_dbs">
400 #    Instance "dbs"
401 #    <Key "*/doc_count">
402 #      Type "gauge"
403 #    </Key>
404 #    <Key "*/doc_del_count">
405 #      Type "counter"
406 #    </Key>
407 #    <Key "*/disk_size">
408 #      Type "bytes"
409 #    </Key>
410 #  </URL>
411 #</Plugin>
413 #<Plugin curl_xml>
414 #       <URL "http://localhost/stats.xml">
415 #               Host "my_host"
416 #               Instance "some_instance"
417 #               User "collectd"
418 #               Password "thaiNg0I"
419 #               Digest false
420 #               VerifyPeer true
421 #               VerifyHost true
422 #               CACert "/path/to/ca.crt"
423 #               Header "X-Custom-Header: foobar"
424 #               Post "foo=bar"
426 #               <XPath "table[@id=\"magic_level\"]/tr">
427 #                       Type "magic_level"
428 #                       InstancePrefix "prefix-"
429 #                       InstanceFrom "td[1]"
430 #                       ValuesFrom "td[2]/span[@class=\"level\"]"
431 #               </XPath>
432 #       </URL>
433 #</Plugin>
435 #<Plugin dbi>
436 #       <Query "num_of_customers">
437 #               Statement "SELECT 'customers' AS c_key, COUNT(*) AS c_value \
438 #                               FROM customers_tbl"
439 #               MinVersion 40102
440 #               MaxVersion 50042
441 #               <Result>
442 #                       Type "gauge"
443 #                       InstancePrefix "customer"
444 #                       InstancesFrom "c_key"
445 #                       ValuesFrom "c_value"
446 #               </Result>
447 #       </Query>
449 #       <Database "customers_db">
450 #               Driver "mysql"
451 #               DriverOption "host" "localhost"
452 #               DriverOption "username" "collectd"
453 #               DriverOption "password" "secret"
454 #               DriverOption "dbname" "custdb0"
455 #               SelectDB "custdb0"
456 #               Query "num_of_customers"
457 #               Query "..."
458 #               Host "..."
459 #       </Database>
460 #</Plugin>
462 <Plugin df>
463 #       Device "/dev/sda1"
464 #       Device "192.168.0.2:/mnt/nfs"
465 #       MountPoint "/home"
466 #       FSType "ext3"
468         # ignore rootfs; else, the root file-system would appear twice, causing
469         # one of the updates to fail and spam the log
470         FSType rootfs
471         # ignore the usual virtual / temporary file-systems
472         FSType sysfs
473         FSType proc
474         FSType devtmpfs
475         FSType devpts
476         FSType tmpfs
477         FSType fusectl
478         FSType cgroup
479         IgnoreSelected true
481 #       ReportByDevice false
482 #       ReportInodes false
484 #       ValuesAbsolute true
485 #       ValuesPercentage false
486 </Plugin>
488 #<Plugin disk>
489 #       Disk "hda"
490 #       Disk "/sda[23]/"
491 #       IgnoreSelected false
492 #       UseBSDName false
493 #       UdevNameAttr "DEVNAME"
494 #</Plugin>
496 #<Plugin dns>
497 #       Interface "eth0"
498 #       IgnoreSource "192.168.0.1"
499 #       SelectNumericQueryTypes false
500 #</Plugin>
502 #<Plugin email>
503 #       SocketFile "/var/run/collectd-email"
504 #       SocketGroup "collectd"
505 #       SocketPerms "0770"
506 #       MaxConns 5
507 #</Plugin>
509 #<Plugin ethstat>
510 #       Interface "eth0"
511 #       Map "rx_csum_offload_errors" "if_rx_errors" "checksum_offload"
512 #       Map "multicast" "if_multicast"
513 #       MappedOnly false
514 #</Plugin>
516 #<Plugin exec>
517 #       Exec user "/path/to/exec"
518 #       Exec "user:group" "/path/to/exec"
519 #       NotificationExec user "/path/to/exec"
520 #</Plugin>
522 #<Plugin fhcount>
523 #       ValuesAbsolute true
524 #       ValuesPercentage false
525 #</Plugin>
527 #<Plugin filecount>
528 #       <Directory "/path/to/dir">
529 #               Instance "foodir"
530 #               Name "*.conf"
531 #               MTime "-5m"
532 #               Size "+10k"
533 #               Recursive true
534 #               IncludeHidden false
535 #       </Directory>
536 #</Plugin>
538 #<Plugin gmond>
539 #       MCReceiveFrom "239.2.11.71" "8649"
541 #       <Metric "swap_total">
542 #               Type "swap"
543 #               TypeInstance "total"
544 #               DataSource "value"
545 #       </Metric>
547 #       <Metric "swap_free">
548 #               Type "swap"
549 #               TypeInstance "free"
550 #               DataSource "value"
551 #       </Metric>
552 #</Plugin>
554 #<Plugin gps>
555 #       Host "127.0.0.1"
556 #       Port "2947"
557 #       Timeout 0.015
558 #       PauseConnect 5
559 #</Plugin>
561 #<Plugin hddtemp>
562 #       Host "127.0.0.1"
563 #       Port 7634
564 #</Plugin>
566 #<Plugin interface>
567 #       Interface "eth0"
568 #       IgnoreSelected false
569 #       ReportInactive true
570 #       UniqueName false
571 #</Plugin>
573 #<Plugin ipmi>
574 #       Sensor "some_sensor"
575 #       Sensor "another_one"
576 #       IgnoreSelected false
577 #       NotifySensorAdd false
578 #       NotifySensorRemove true
579 #       NotifySensorNotPresent false
580 #</Plugin>
582 #<Plugin iptables>
583 #       Chain "table" "chain"
584 #       Chain6 "table" "chain"
585 #</Plugin>
587 #<Plugin irq>
588 #       Irq 7
589 #       Irq 8
590 #       Irq 9
591 #       IgnoreSelected true
592 #</Plugin>
594 #<Plugin java>
595 #       JVMArg "-verbose:jni"
596 #       JVMArg "-Djava.class.path=/usr/share/collectd/java/collectd-api.jar"
598 #       LoadPlugin "org.collectd.java.GenericJMX"
599 #       <Plugin "GenericJMX">
600 #               # See /usr/share/doc/collectd/examples/GenericJMX.conf
601 #               # for an example config.
602 #       </Plugin>
603 #</Plugin>
605 #<Plugin load>
606 #       ReportRelative true
607 #</Plugin>
609 #<Plugin lua>
610 #       BasePath "/usr/share/collectd/lua"
611 #       Script "script1.lua"
612 #       Script "script2.lua"
613 #</Plugin>
615 #<Plugin madwifi>
616 #       Interface "wlan0"
617 #       IgnoreSelected false
618 #       Source "SysFS"
619 #       WatchSet "None"
620 #       WatchAdd "node_octets"
621 #       WatchAdd "node_rssi"
622 #       WatchAdd "is_rx_acl"
623 #       WatchAdd "is_scan_active"
624 #</Plugin>
626 #<Plugin mbmon>
627 #       Host "127.0.0.1"
628 #       Port 411
629 #</Plugin>
631 #<Plugin md>
632 #       Device "/dev/md0"
633 #       IgnoreSelected false
634 #</Plugin>
636 #<Plugin memcachec>
637 #       <Page "plugin_instance">
638 #               Server "localhost"
639 #               Key "page_key"
640 #               <Match>
641 #                       Regex "(\\d+) bytes sent"
642 #                       ExcludeRegex "<lines to be excluded>"
643 #                       DSType CounterAdd
644 #                       Type "ipt_octets"
645 #                       Instance "type_instance"
646 #               </Match>
647 #       </Page>
648 #</Plugin>
650 #<Plugin memcached>
651 #       <Instance "local">
652 #               Socket "/var/run/memcached.sock"
653 # or:
654 #               Host "127.0.0.1"
655 #               Port "11211"
656 #       </Instance>
657 #</Plugin>
659 #<Plugin memory>
660 #       ValuesAbsolute true
661 #       ValuesPercentage false
662 #</Plugin>
664 #<Plugin modbus>
665 #       <Data "data_name">
666 #               RegisterBase 1234
667 #               RegisterCmd ReadHolding
668 #               RegisterType float
669 #               Type gauge
670 #               Instance "..."
671 #       </Data>
673 #       <Host "name">
674 #               Address "addr"
675 #               Port "1234"
676 #               Interval 60
678 #               <Slave 1>
679 #                       Instance "foobar" # optional
680 #                       Collect "data_name"
681 #               </Slave>
682 #       </Host>
683 #</Plugin>
685 #<Plugin mqtt>
686 #       <Publish "name">
687 #               Host "localhost"
688 #               Port 1883
689 #               ClientId "localhost"
690 #               User "user"
691 #               Password "secret"
692 #               QoS 0
693 #               Prefix "collectd"
694 #               StoreRates true
695 #               Retain false
696 #               CACert "/etc/ssl/ca.crt"
697 #               CertificateFile "/etc/ssl/client.crt"
698 #               CertificateKeyFile "/etc/ssl/client.pem"
699 #               TLSProtocol "tlsv1.2"
700 #               CipherSuite "ciphers"
701 #       <Publish>
702 #       <Subscribe "name">
703 #               Host "localhost"
704 #               Port 1883
705 #               ClientId "localhost"
706 #               User "user"
707 #               Password "secret"
708 #               QoS 2
709 #               Topic "collectd/#"
710 #               CleanSession true
711 #       </Subscribe>
712 #</Plugin>
714 #<Plugin mysql>
715 #       <Database db_name>
716 #               Host "database.serv.er"
717 #               Port "3306"
718 #               User "db_user"
719 #               Password "secret"
720 #               Database "db_name"
721 #               SSLKey "/path/to/key.pem"
722 #               SSLCert "/path/to/cert.pem"
723 #               SSLCA "/path/to/ca.pem"
724 #               SSLCAPath "/path/to/cas/"
725 #               SSLCipher "DHE-RSA-AES256-SHA"
726 #               MasterStats true
727 #               ConnectTimeout 10
728 #               InnodbStats true
729 #       </Database>
731 #       <Database db_name2>
732 #               Alias "squeeze"
733 #               Host "localhost"
734 #               Socket "/var/run/mysql/mysqld.sock"
735 #               SlaveStats true
736 #               SlaveNotifications true
737 #       </Database>
739 #       <Database galera>
740 #               Alias "galera"
741 #               Host "localhost"
742 #               Socket "/var/run/mysql/mysqld.sock"
743 #               WsrepStats true
744 #       </Database>
745 #</Plugin>
747 #<Plugin netlink>
748 #       Interface "All"
749 #       VerboseInterface "All"
750 #       QDisc "eth0" "pfifo_fast-1:0"
751 #       Class "ppp0" "htb-1:10"
752 #       Filter "ppp0" "u32-1:0"
753 #       IgnoreSelected false
754 #</Plugin>
756 #<Plugin network>
757 #       # client setup:
758 #       Server "ff18::efc0:4a42" "25826"
759 #       <Server "239.192.74.66" "25826">
760 #               SecurityLevel Encrypt
761 #               Username "user"
762 #               Password "secret"
763 #               Interface "eth0"
764 #               ResolveInterval 14400
765 #       </Server>
766 #       TimeToLive 128
768 #       # server setup:
769 #       Listen "ff18::efc0:4a42" "25826"
770 #       <Listen "239.192.74.66" "25826">
771 #               SecurityLevel Sign
772 #               AuthFile "/etc/collectd/passwd"
773 #               Interface "eth0"
774 #       </Listen>
775 #       MaxPacketSize 1452
777 #       # proxy setup (client and server as above):
778 #       Forward true
780 #       # statistics about the network plugin itself
781 #       ReportStats false
783 #       # "garbage collection"
784 #       CacheFlush 1800
785 #</Plugin>
787 #<Plugin nginx>
788 #       URL "http://localhost/status?auto"
789 #       User "www-user"
790 #       Password "secret"
791 #       VerifyPeer false
792 #       VerifyHost false
793 #       CACert "/etc/ssl/ca.crt"
794 #</Plugin>
796 #<Plugin notify_desktop>
797 #       OkayTimeout 1000
798 #       WarningTimeout 5000
799 #       FailureTimeout 0
800 #</Plugin>
802 #<Plugin notify_email>
803 #       SMTPServer "localhost"
804 #       SMTPPort 25
805 #       SMTPUser "my-username"
806 #       SMTPPassword "my-password"
807 #       From "collectd@main0server.com"
808 #       # <WARNING/FAILURE/OK> on <hostname>.
809 #       # Beware! Do not use not more than two placeholders (%)!
810 #       Subject "[collectd] %s on %s!"
811 #       Recipient "email1@domain1.net"
812 #       Recipient "email2@domain2.com"
813 #</Plugin>
815 #<Plugin notify_nagios>
816 #       CommandFile "/var/lib/icinga/rw/icinga.cmd"
817 #</Plugin>
819 #<Plugin ntpd>
820 #       Host "localhost"
821 #       Port 123
822 #       ReverseLookups false
823 #       IncludeUnitID true
824 #</Plugin>
826 #<Plugin nut>
827 #       UPS "upsname@hostname:port"
828 #</Plugin>
830 #<Plugin olsrd>
831 #       Host "127.0.0.1"
832 #       Port "2006"
833 #       CollectLinks "Summary"
834 #       CollectRoutes "Summary"
835 #       CollectTopology "Summary"
836 #</Plugin>
838 #<Plugin onewire>
839 #       Device "-s localhost:4304"
840 #       Sensor "F10FCA000800"
841 #       IgnoreSelected false
842 #</Plugin>
844 #<Plugin openldap>
845 #       <Instance "localhost">
846 #               URL "ldap://localhost:389"
847 #               StartTLS false
848 #               VerifyHost true
849 #               CACert "/path/to/ca.crt"
850 #               Timeout -1
851 #               Version 3
852 #       </Instance>
853 #</Plugin>
855 #<Plugin openvpn>
856 #       StatusFile "/etc/openvpn/openvpn-status.log"
857 #       ImprovedNamingSchema false
858 #       CollectCompression true
859 #       CollectIndividualUsers true
860 #       CollectUserCount false
861 #</Plugin>
863 #<Plugin perl>
864 #       IncludeDir "/my/include/path"
865 #       BaseName "Collectd::Plugins"
866 #       EnableDebugger ""
867 #       LoadPlugin Monitorus
868 #       LoadPlugin OpenVZ
870 #       <Plugin foo>
871 #               Foo "Bar"
872 #               Qux "Baz"
873 #       </Plugin>
874 #</Plugin>
876 #<Plugin pinba>
877 #       Address "::0"
878 #       Port "30002"
879 #       <View "name">
880 #               Host "host name"
881 #               Server "server name"
882 #               Script "script name"
883 #       <View>
884 #</Plugin>
886 #<Plugin ping>
887 #       Host "host.foo.bar"
888 #       Host "host.baz.qux"
889 #       Interval 1.0
890 #       Timeout 0.9
891 #       TTL 255
892 #       SourceAddress "1.2.3.4"
893 #       Device "eth0"
894 #       MaxMissed -1
895 #</Plugin>
897 #<Plugin postgresql>
898 #       <Query magic>
899 #               Statement "SELECT magic FROM wizard WHERE host = $1;"
900 #               Param hostname
902 #               <Result>
903 #                       Type gauge
904 #                       InstancePrefix "magic"
905 #                       ValuesFrom "magic"
906 #               </Result>
907 #       </Query>
909 #       <Query rt36_tickets>
910 #               Statement "SELECT COUNT(type) AS count, type \
911 #                                 FROM (SELECT CASE \
912 #                                              WHEN resolved = 'epoch' THEN 'open' \
913 #                                              ELSE 'resolved' END AS type \
914 #                                              FROM tickets) type \
915 #                                 GROUP BY type;"
917 #               <Result>
918 #                       Type counter
919 #                       InstancePrefix "rt36_tickets"
920 #                       InstancesFrom "type"
921 #                       ValuesFrom "count"
922 #               </Result>
923 #       </Query>
925 #       <Writer sqlstore>
926 #               # See /usr/share/doc/collectd-core/examples/postgresql/collectd_insert.sql for details
927 #               Statement "SELECT collectd_insert($1, $2, $3, $4, $5, $6, $7, $8, $9);"
928 #               StoreRates true
929 #       </Writer>
931 #       <Database foo>
932 #               Host "hostname"
933 #               Port 5432
934 #               User "username"
935 #               Password "secret"
937 #               SSLMode "prefer"
938 #               KRBSrvName "kerberos_service_name"
940 #               Query magic
941 #       </Database>
943 #       <Database bar>
944 #               Interval 60
945 #               Service "service_name"
947 #               Query backend # predefined
948 #               Query rt36_tickets
949 #       </Database>
951 #       <Database qux>
952 #               Service "collectd_store"
953 #               Writer sqlstore
954 #               # see collectd.conf(5) for details
955 #               CommitInterval 30
956 #       </Database>
957 #</Plugin>
959 #<Plugin powerdns>
960 #       <Server "server_name">
961 #               Collect "latency"
962 #               Collect "udp-answers" "udp-queries"
963 #               Socket "/var/run/pdns.controlsocket"
964 #       </Server>
965 #       <Recursor "recursor_name">
966 #               Collect "questions"
967 #               Collect "cache-hits" "cache-misses"
968 #               Socket "/var/run/pdns_recursor.controlsocket"
969 #       </Recursor>
970 #       LocalSocket "/opt/collectd/var/run/collectd-powerdns"
971 #</Plugin>
973 #<Plugin processes>
974 #       Process "name"
975 #       ProcessMatch "foobar" "/usr/bin/perl foobar\\.pl.*"
976 #</Plugin>
978 #<Plugin protocols>
979 #       Value "/^Tcp:/"
980 #       IgnoreSelected false
981 #</Plugin>
983 #<Plugin python>
984 #       ModulePath "/path/to/your/python/modules"
985 #       LogTraces true
986 #       Interactive true
987 #       Import "spam"
989 #       <Module spam>
990 #               spam "wonderful" "lovely"
991 #       </Module>
992 #</Plugin>
994 #<Plugin redis>
995 #       <Node example>
996 #               Host "redis.example.com"
997 #               Port "6379"
998 #               Timeout 2000
999 #       </Node>
1000 #</Plugin>
1002 #<Plugin rrdcached>
1003 #       DaemonAddress "unix:/var/run/rrdcached.sock"
1004 #       DataDir "/var/lib/rrdcached/db/collectd"
1005 #       CreateFiles true
1006 #       CreateFilesAsync false
1007 #       CollectStatistics true
1009 # The following settings are rather advanced
1010 # and should usually not be touched:
1011 #       StepSize 10
1012 #       HeartBeat 20
1013 #       RRARows 1200
1014 #       RRATimespan 158112000
1015 #       XFF 0.1
1016 #</Plugin>
1018 <Plugin rrdtool>
1019         DataDir "/var/lib/collectd/rrd"
1020 #       CacheTimeout 120
1021 #       CacheFlush 900
1022 #       WritesPerSecond 30
1023 #       CreateFilesAsync false
1024 #       RandomTimeout 0
1026 # The following settings are rather advanced
1027 # and should usually not be touched:
1028 #       StepSize 10
1029 #       HeartBeat 20
1030 #       RRARows 1200
1031 #       RRATimespan 158112000
1032 #       XFF 0.1
1033 </Plugin>
1035 #<Plugin sensors>
1036 #       SensorConfigFile "/etc/sensors3.conf"
1037 #       Sensor "it8712-isa-0290/temperature-temp1"
1038 #       Sensor "it8712-isa-0290/fanspeed-fan3"
1039 #       Sensor "it8712-isa-0290/voltage-in8"
1040 #       IgnoreSelected false
1041 #</Plugin>
1043 #<Plugin sigrok>
1044 #       LogLevel 3
1045 #       <Device "AC Voltage">
1046 #               Driver "fluke-dmm"
1047 #               MinimumInterval 10
1048 #               Conn "/dev/ttyUSB2"
1049 #       </Device>
1050 #       <Device "Sound Level">
1051 #               Driver "cem-dt-885x"
1052 #               Conn "/dev/ttyUSB1"
1053 #       </Device>
1054 #</Plugin>
1056 #<Plugin smart>
1057 #       Disk "/^[hs]d[a-f][0-9]?$/"
1058 #       IgnoreSelected false
1059 #</Plugin>
1061 # See /usr/share/doc/collectd/examples/snmp-data.conf.gz for a
1062 # comprehensive sample configuration.
1063 #<Plugin snmp>
1064 #       <Data "powerplus_voltge_input">
1065 #               Type "voltage"
1066 #               Table false
1067 #               Instance "input_line1"
1068 #               Scale 0.1
1069 #               Values "SNMPv2-SMI::enterprises.6050.5.4.1.1.2.1"
1070 #       </Data>
1071 #       <Data "hr_users">
1072 #               Type "users"
1073 #               Table false
1074 #               Instance ""
1075 #               Shift -1
1076 #               Values "HOST-RESOURCES-MIB::hrSystemNumUsers.0"
1077 #       </Data>
1078 #       <Data "std_traffic">
1079 #               Type "if_octets"
1080 #               Table true
1081 #               InstancePrefix "traffic"
1082 #               Instance "IF-MIB::ifDescr"
1083 #               Values "IF-MIB::ifInOctets" "IF-MIB::ifOutOctets"
1084 #       </Data>
1086 #       <Host "some.switch.mydomain.org">
1087 #               Address "192.168.0.2"
1088 #               Version 1
1089 #               Community "community_string"
1090 #               Collect "std_traffic"
1091 #               Inverval 120
1092 #       </Host>
1093 #       <Host "some.server.mydomain.org">
1094 #               Address "192.168.0.42"
1095 #               Version 2
1096 #               Community "another_string"
1097 #               Collect "std_traffic" "hr_users"
1098 #       </Host>
1099 #       <Host "some.ups.mydomain.org">
1100 #               Address "192.168.0.3"
1101 #               Version 1
1102 #               Community "more_communities"
1103 #               Collect "powerplus_voltge_input"
1104 #               Interval 300
1105 #       </Host>
1106 #</Plugin>
1108 #<Plugin statsd>
1109 #       Host "::"
1110 #       Port "8125"
1111 #       DeleteCounters false
1112 #       DeleteTimers   false
1113 #       DeleteGauges   false
1114 #       DeleteSets     false
1115 #       CounterSum     false
1116 #       TimerPercentile 90.0
1117 #       TimerPercentile 95.0
1118 #       TimerPercentile 99.0
1119 #       TimerLower     false
1120 #       TimerUpper     false
1121 #       TimerSum       false
1122 #       TimerCount     false
1123 #</Plugin>
1125 #<Plugin swap>
1126 #       ReportByDevice false
1127 #       ReportBytes true
1128 #</Plugin>
1130 #<Plugin table>
1131 #       <Table "/proc/slabinfo">
1132 #               Instance "slabinfo"
1133 #               Separator " "
1134 #               <Result>
1135 #                       Type gauge
1136 #                       InstancePrefix "active_objs"
1137 #                       InstancesFrom 0
1138 #                       ValuesFrom 1
1139 #               </Result>
1140 #               <Result>
1141 #                       Type gauge
1142 #                       InstancePrefix "objperslab"
1143 #                       InstancesFrom 0
1144 #                       ValuesFrom 4
1145 #               </Result>
1146 #       </Table>
1147 #</Plugin>
1149 #<Plugin tail>
1150 #       <File "/var/log/exim4/mainlog">
1151 #               Instance "exim"
1152 #               Interval 60
1153 #               <Match>
1154 #                       Regex "S=([1-9][0-9]*)"
1155 #                       DSType "CounterAdd"
1156 #                       Type "ipt_bytes"
1157 #                       Instance "total"
1158 #               </Match>
1159 #               <Match>
1160 #                       Regex "\\<R=local_user\\>"
1161 #                       ExcludeRegex "\\<R=local_user\\>.*mail_spool defer"
1162 #                       DSType "CounterInc"
1163 #                       Type "counter"
1164 #                       Instance "local_user"
1165 #               </Match>
1166 #       </File>
1167 #</Plugin>
1169 #<Plugin tail_csv>
1170 #       <Metric "dropped">
1171 #               Type "percent"
1172 #               Instance "dropped"
1173 #               ValueFrom 1
1174 #       </Metric>
1175 #       <Metric "mbps">
1176 #               Type "bytes"
1177 #               Instance "wire-realtime"
1178 #               ValueFrom 2
1179 #       </Metric>
1180 #       <Metric "alerts">
1181 #               Type "alerts_per_second"
1182 #               ValueFrom 3
1183 #       </Metric>
1184 #       <Metric "kpps">
1185 #               Type "kpackets_wire_per_sec.realtime"
1186 #               ValueFrom 4
1187 #       </Metric>
1188 #       <File "/var/log/snort/snort.stats">
1189 #               Instance "snort-eth0"
1190 #               Interval 600
1191 #               Collect "dropped" "mbps" "alerts" "kpps"
1192 #               TimeFrom 0
1193 #       </File>
1194 #</Plugin>
1196 #<Plugin tcpconns>
1197 #       ListeningPorts false
1198 #       AllPortsSummary false
1199 #       LocalPort "25"
1200 #       RemotePort "25"
1201 #</Plugin>
1203 #<Plugin teamspeak2>
1204 #       Host "127.0.0.1"
1205 #       Port "51234"
1206 #       Server "8767"
1207 #</Plugin>
1209 #<Plugin ted>
1210 #       Device "/dev/ttyUSB0"
1211 #       Retries 0
1212 #</Plugin>
1214 #<Plugin thermal>
1215 #       ForceUseProcfs false
1216 #       Device "THRM"
1217 #       IgnoreSelected false
1218 #</Plugin>
1220 #<Plugin tokyotyrant>
1221 #       Host "localhost"
1222 #       Port "1978"
1223 #</Plugin>
1225 #<Plugin turbostat>
1226 ##      None of the following option should be set manually
1227 ##      This plugin automatically detect most optimal options
1228 ##      Only set values here if:
1229 ##      - The module asks you to
1230 ##      - You want to disable the collection of some data
1231 ##      - Your (Intel) CPU is not supported (yet) by the module
1232 ##      - The module generates a lot of errors 'MSR offset 0x... read failed'
1233 ##      In the last two cases, please open a bug request
1235 #       TCCActivationTemp "100"
1236 #       CoreCstates "392"
1237 #       PackageCstates "396"
1238 #       SystemManagementInterrupt true
1239 #       DigitalTemperatureSensor true
1240 #       PackageThermalManagement true
1241 #       RunningAveragePowerLimit "7"
1242 #</Plugin>
1244 #<Plugin unixsock>
1245 #       SocketFile "/var/run/collectd-unixsock"
1246 #       SocketGroup "collectd"
1247 #       SocketPerms "0660"
1248 #       DeleteSocket false
1249 #</Plugin>
1251 #<Plugin uuid>
1252 #       UUIDFile "/etc/uuid"
1253 #</Plugin>
1255 #<Plugin varnish>
1256 #       <Instance>
1257 #               CollectBackend true
1258 #               CollectBan false           # Varnish 3 and above
1259 #               CollectCache true
1260 #               CollectConnections true
1261 #               CollectDirectorDNS false   # Varnish 3 only
1262 #               CollectESI false
1263 #               CollectFetch false
1264 #               CollectHCB false
1265 #               CollectObjects false
1266 #               CollectPurge false         # Varnish 2 only
1267 #               CollectSession false
1268 #               CollectSHM true
1269 #               CollectSMA false           # Varnish 2 only
1270 #               CollectSMS false
1271 #               CollectSM false            # Varnish 2 only
1272 #               CollectStruct false
1273 #               CollectTotals false
1274 #               CollectUptime false        # Varnish 3 and above
1275 #               CollectdVCL false
1276 #               CollectVSM false           # Varnish 4 only
1277 #               CollectWorkers false
1278 #       </Instance>
1280 #       <Instance "myinstance">
1281 #               CollectCache true
1282 #       </Instance>
1283 #</Plugin>
1285 #<Plugin virt>
1286 #       Connection "xen:///"
1287 #       RefreshInterval 60
1288 #       Domain "name"
1289 #       BlockDevice "name:device"
1290 #       InterfaceDevice "name:device"
1291 #       IgnoreSelected false
1292 #       HostnameFormat name
1293 #       InterfaceFormat name
1294 #       PluginInstanceFormat name
1295 #</Plugin>
1297 #<Plugin vmem>
1298 #       Verbose false
1299 #</Plugin>
1301 #<Plugin write_graphite>
1302 #       <Node "example">
1303 #               Host "localhost"
1304 #               Port "2003"
1305 #               Protocol "tcp"
1306 #               ReconnectInterval 0
1307 #               LogSendErrors true
1308 #               Prefix "collectd"
1309 #               Postfix "collectd"
1310 #               StoreRates true
1311 #               AlwaysAppendDS false
1312 #               EscapeCharacter "_"
1313 #       </Node>
1314 #</Plugin>
1316 #<Plugin write_http>
1317 #       <Node "example">
1318 #               URL "http://example.com/collectd-post"
1319 #               User "collectd"
1320 #               Password "secret"
1321 #               VerifyPeer true
1322 #               VerifyHost true
1323 #               CACert "/etc/ssl/ca.crt"
1324 #               CAPath "/etc/ssl/certs/"
1325 #               ClientKey "/etc/ssl/client.pem"
1326 #               ClientCert "/etc/ssl/client.crt"
1327 #               ClientKeyPass "secret"
1328 #               Header "X-Custom-Header: custom_value"
1329 #               SSLVersion "TLSv1"
1330 #               Format "Command"
1331 #               Metrics true
1332 #               Notifications false
1333 #               StoreRates false
1334 #               BufferSize 4096
1335 #               LowSpeedLimit 0
1336 #               Timeout 0
1337 #               Prefix "collectd/"
1338 #       </Node>
1339 #</Plugin>
1341 #<Plugin write_kafka>
1342 #       Property "metadata.broker.list" "localhost:9092"
1343 #       <Topic "collectd">
1344 #               Format JSON
1345 #       </Topic>
1346 #</Plugin>
1348 #<Plugin write_redis>
1349 #       <Node "example">
1350 #               Host "localhost"
1351 #               Port "6379"
1352 #               Timeout 1000
1353 #       <Node>
1354 #</Plugin>
1356 #<Plugin write_riemann>
1357 #       <Node "example">
1358 #               Host "localhost"
1359 #               Port 5555
1360 #               Protocol TCP
1361 #               Batch true
1362 #               BatchMaxSize 8192
1363 #               StoreRates true
1364 #               AlwaysAppendDS false
1365 #               TTLFactor 2.0
1366 #               Notifications true
1367 #               CheckThresholds false
1368 #               EventServicePrefix ""
1369 #       </Node>
1370 #       Tag "foobar"
1371 #       Attribute "foo" "bar"
1372 #</Plugin>
1374 #<Plugin write_sensu>
1375 #       <Node "example">
1376 #               Host "localhost"
1377 #               Port 3030
1378 #               StoreRates true
1379 #               AlwaysAppendDS false
1380 #               Notifications true
1381 #               Metrics true
1382 #               EventServicePrefix ""
1383 #               MetricHandler "influx"
1384 #               MetricHandler "default"
1385 #               NotificationHandler "flapjack"
1386 #               NotificationHandler "howling_monkey"
1387 #       </Node>
1388 #       Tag "foobar"
1389 #       Attribute "foo" "bar"
1390 #</Plugin>
1392 #<Plugin write_tsdb>
1393 #       <Node>
1394 #               Host "localhost"
1395 #               Port "4242"
1396 #               HostTags "status=production"
1397 #               StoreRates false
1398 #               AlwaysAppendDS false
1399 #       </Node>
1400 #</Plugin>
1402 #<Plugin zookeeper>
1403 #       Host "localhost"
1404 #       Port "2181"
1405 #</Plugin>
1407 <Include "/etc/collectd/collectd.conf.d">
1408         Filter "*.conf"
1409 </Include>