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