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 # When enabled, plugins are loaded automatically with the default options #
22 # when an appropriate <Plugin ...> block is encountered. #
23 # Disabled by default. #
24 #----------------------------------------------------------------------------#
25 #AutoLoadPlugin false
27 #----------------------------------------------------------------------------#
28 # Interval at which to query values. This may be overwritten on a per-plugin #
29 # base by using the 'Interval' option of the LoadPlugin block: #
30 # <LoadPlugin foo> #
31 # Interval 60 #
32 # </LoadPlugin> #
33 #----------------------------------------------------------------------------#
34 #Interval 10
36 #Timeout 2
37 #ReadThreads 5
38 #WriteThreads 5
40 # Limit the size of the write queue. Default is no limit. Setting up a limit is
41 # recommended for servers handling a high volume of traffic.
42 #WriteQueueLimitHigh 1000000
43 #WriteQueueLimitLow 800000
45 ##############################################################################
46 # Logging #
47 #----------------------------------------------------------------------------#
48 # Plugins which provide logging functions should be loaded first, so log #
49 # messages generated when loading or configuring other plugins can be #
50 # accessed. #
51 ##############################################################################
53 @LOAD_PLUGIN_SYSLOG@LoadPlugin syslog
54 @LOAD_PLUGIN_LOGFILE@LoadPlugin logfile
55 @LOAD_PLUGIN_LOG_LOGSTASH@LoadPlugin log_logstash
57 #<Plugin logfile>
58 # LogLevel @DEFAULT_LOG_LEVEL@
59 # File STDOUT
60 # Timestamp true
61 # PrintSeverity false
62 #</Plugin>
64 #<Plugin log_logstash>
65 # LogLevel @DEFAULT_LOG_LEVEL@
66 # File "@localstatedir@/log/@PACKAGE_NAME@.json.log"
67 #</Plugin>
69 #<Plugin syslog>
70 # LogLevel @DEFAULT_LOG_LEVEL@
71 #</Plugin>
73 ##############################################################################
74 # LoadPlugin section #
75 #----------------------------------------------------------------------------#
76 # Lines beginning with a single `#' belong to plugins which have been built #
77 # but are disabled by default. #
78 # #
79 # Lines begnning with `##' belong to plugins which have not been built due #
80 # to missing dependencies or because they have been deactivated explicitly. #
81 ##############################################################################
83 #@BUILD_PLUGIN_AGGREGATION_TRUE@LoadPlugin aggregation
84 #@BUILD_PLUGIN_AMQP_TRUE@LoadPlugin amqp
85 #@BUILD_PLUGIN_APACHE_TRUE@LoadPlugin apache
86 #@BUILD_PLUGIN_APCUPS_TRUE@LoadPlugin apcups
87 #@BUILD_PLUGIN_APPLE_SENSORS_TRUE@LoadPlugin apple_sensors
88 #@BUILD_PLUGIN_AQUAERO_TRUE@LoadPlugin aquaero
89 #@BUILD_PLUGIN_ASCENT_TRUE@LoadPlugin ascent
90 #@BUILD_PLUGIN_BAROMETER_TRUE@LoadPlugin barometer
91 #@BUILD_PLUGIN_BATTERY_TRUE@LoadPlugin battery
92 #@BUILD_PLUGIN_BIND_TRUE@LoadPlugin bind
93 #@BUILD_PLUGIN_CONNTRACK_TRUE@LoadPlugin conntrack
94 #@BUILD_PLUGIN_CONTEXTSWITCH_TRUE@LoadPlugin contextswitch
95 #@BUILD_PLUGIN_CGROUPS_TRUE@LoadPlugin cgroups
96 @BUILD_PLUGIN_CPU_TRUE@@BUILD_PLUGIN_CPU_TRUE@LoadPlugin cpu
97 #@BUILD_PLUGIN_CPUFREQ_TRUE@LoadPlugin cpufreq
98 @LOAD_PLUGIN_CSV@LoadPlugin csv
99 #@BUILD_PLUGIN_CURL_TRUE@LoadPlugin curl
100 #@BUILD_PLUGIN_CURL_JSON_TRUE@LoadPlugin curl_json
101 #@BUILD_PLUGIN_CURL_XML_TRUE@LoadPlugin curl_xml
102 #@BUILD_PLUGIN_DBI_TRUE@LoadPlugin dbi
103 #@BUILD_PLUGIN_DF_TRUE@LoadPlugin df
104 #@BUILD_PLUGIN_DISK_TRUE@LoadPlugin disk
105 #@BUILD_PLUGIN_DNS_TRUE@LoadPlugin dns
106 #@BUILD_PLUGIN_DRBD_TRUE@LoadPlugin drbd
107 #@BUILD_PLUGIN_EMAIL_TRUE@LoadPlugin email
108 #@BUILD_PLUGIN_ENTROPY_TRUE@LoadPlugin entropy
109 #@BUILD_PLUGIN_ETHSTAT_TRUE@LoadPlugin ethstat
110 #@BUILD_PLUGIN_EXEC_TRUE@LoadPlugin exec
111 #@BUILD_PLUGIN_FILECOUNT_TRUE@LoadPlugin filecount
112 #@BUILD_PLUGIN_FSCACHE_TRUE@LoadPlugin fscache
113 #@BUILD_PLUGIN_GMOND_TRUE@LoadPlugin gmond
114 #@BUILD_PLUGIN_HDDTEMP_TRUE@LoadPlugin hddtemp
115 @BUILD_PLUGIN_INTERFACE_TRUE@@BUILD_PLUGIN_INTERFACE_TRUE@LoadPlugin interface
116 #@BUILD_PLUGIN_IPTABLES_TRUE@LoadPlugin iptables
117 #@BUILD_PLUGIN_IPMI_TRUE@LoadPlugin ipmi
118 #@BUILD_PLUGIN_IPVS_TRUE@LoadPlugin ipvs
119 #@BUILD_PLUGIN_IRQ_TRUE@LoadPlugin irq
120 #@BUILD_PLUGIN_JAVA_TRUE@LoadPlugin java
121 #@BUILD_PLUGIN_LIBVIRT_TRUE@LoadPlugin libvirt
122 @BUILD_PLUGIN_LOAD_TRUE@@BUILD_PLUGIN_LOAD_TRUE@LoadPlugin load
123 #@BUILD_PLUGIN_LPAR_TRUE@LoadPlugin lpar
124 #@BUILD_PLUGIN_LVM_TRUE@LoadPlugin lvm
125 #@BUILD_PLUGIN_MADWIFI_TRUE@LoadPlugin madwifi
126 #@BUILD_PLUGIN_MBMON_TRUE@LoadPlugin mbmon
127 #@BUILD_PLUGIN_MD_TRUE@LoadPlugin md
128 #@BUILD_PLUGIN_MEMCACHEC_TRUE@LoadPlugin memcachec
129 #@BUILD_PLUGIN_MEMCACHED_TRUE@LoadPlugin memcached
130 @BUILD_PLUGIN_MEMORY_TRUE@@BUILD_PLUGIN_MEMORY_TRUE@LoadPlugin memory
131 #@BUILD_PLUGIN_MODBUS_TRUE@LoadPlugin modbus
132 #@BUILD_PLUGIN_MULTIMETER_TRUE@LoadPlugin multimeter
133 #@BUILD_PLUGIN_MYSQL_TRUE@LoadPlugin mysql
134 #@BUILD_PLUGIN_NETAPP_TRUE@LoadPlugin netapp
135 #@BUILD_PLUGIN_NETLINK_TRUE@LoadPlugin netlink
136 @LOAD_PLUGIN_NETWORK@LoadPlugin network
137 #@BUILD_PLUGIN_NFS_TRUE@LoadPlugin nfs
138 #@BUILD_PLUGIN_NGINX_TRUE@LoadPlugin nginx
139 #@BUILD_PLUGIN_NOTIFY_DESKTOP_TRUE@LoadPlugin notify_desktop
140 #@BUILD_PLUGIN_NOTIFY_EMAIL_TRUE@LoadPlugin notify_email
141 #@BUILD_PLUGIN_NTPD_TRUE@LoadPlugin ntpd
142 #@BUILD_PLUGIN_NUMA_TRUE@LoadPlugin numa
143 #@BUILD_PLUGIN_NUT_TRUE@LoadPlugin nut
144 #@BUILD_PLUGIN_OLSRD_TRUE@LoadPlugin olsrd
145 #@BUILD_PLUGIN_ONEWIRE_TRUE@LoadPlugin onewire
146 #@BUILD_PLUGIN_OPENVPN_TRUE@LoadPlugin openvpn
147 #@BUILD_PLUGIN_ORACLE_TRUE@LoadPlugin oracle
148 #@BUILD_PLUGIN_PERL_TRUE@<LoadPlugin perl>
149 #@BUILD_PLUGIN_PERL_TRUE@ Globals true
150 #@BUILD_PLUGIN_PERL_TRUE@</LoadPlugin>
151 #@BUILD_PLUGIN_PINBA_TRUE@LoadPlugin pinba
152 #@BUILD_PLUGIN_PING_TRUE@LoadPlugin ping
153 #@BUILD_PLUGIN_POSTGRESQL_TRUE@LoadPlugin postgresql
154 #@BUILD_PLUGIN_POWERDNS_TRUE@LoadPlugin powerdns
155 #@BUILD_PLUGIN_PROCESSES_TRUE@LoadPlugin processes
156 #@BUILD_PLUGIN_PROTOCOLS_TRUE@LoadPlugin protocols
157 #@BUILD_PLUGIN_PYTHON_TRUE@<LoadPlugin python>
158 #@BUILD_PLUGIN_PYTHON_TRUE@ Globals true
159 #@BUILD_PLUGIN_PYTHON_TRUE@</LoadPlugin>
160 #@BUILD_PLUGIN_REDIS_TRUE@LoadPlugin redis
161 #@BUILD_PLUGIN_ROUTEROS_TRUE@LoadPlugin routeros
162 #@BUILD_PLUGIN_RRDCACHED_TRUE@LoadPlugin rrdcached
163 @LOAD_PLUGIN_RRDTOOL@LoadPlugin rrdtool
164 #@BUILD_PLUGIN_SENSORS_TRUE@LoadPlugin sensors
165 #@BUILD_PLUGIN_SERIAL_TRUE@LoadPlugin serial
166 #@BUILD_PLUGIN_SIGROK_TRUE@LoadPlugin sigrok
167 #@BUILD_PLUGIN_SNMP_TRUE@LoadPlugin snmp
168 #@BUILD_PLUGIN_STATSD_TRUE@LoadPlugin statsd
169 #@BUILD_PLUGIN_SWAP_TRUE@LoadPlugin swap
170 #@BUILD_PLUGIN_TABLE_TRUE@LoadPlugin table
171 #@BUILD_PLUGIN_TAIL_TRUE@LoadPlugin tail
172 #@BUILD_PLUGIN_TAIL_CSV_TRUE@LoadPlugin tail_csv
173 #@BUILD_PLUGIN_TAPE_TRUE@LoadPlugin tape
174 #@BUILD_PLUGIN_TCPCONNS_TRUE@LoadPlugin tcpconns
175 #@BUILD_PLUGIN_TEAMSPEAK2_TRUE@LoadPlugin teamspeak2
176 #@BUILD_PLUGIN_TED_TRUE@LoadPlugin ted
177 #@BUILD_PLUGIN_THERMAL_TRUE@LoadPlugin thermal
178 #@BUILD_PLUGIN_TOKYOTYRANT_TRUE@LoadPlugin tokyotyrant
179 #@BUILD_PLUGIN_UNIXSOCK_TRUE@LoadPlugin unixsock
180 #@BUILD_PLUGIN_UPTIME_TRUE@LoadPlugin uptime
181 #@BUILD_PLUGIN_USERS_TRUE@LoadPlugin users
182 #@BUILD_PLUGIN_UUID_TRUE@LoadPlugin uuid
183 #@BUILD_PLUGIN_VARNISH_TRUE@LoadPlugin varnish
184 #@BUILD_PLUGIN_MIC_TRUE@LoadPlugin mic
185 #@BUILD_PLUGIN_VMEM_TRUE@LoadPlugin vmem
186 #@BUILD_PLUGIN_VSERVER_TRUE@LoadPlugin vserver
187 #@BUILD_PLUGIN_WIRELESS_TRUE@LoadPlugin wireless
188 #@BUILD_PLUGIN_WRITE_GRAPHITE_TRUE@LoadPlugin write_graphite
189 #@BUILD_PLUGIN_WRITE_HTTP_TRUE@LoadPlugin write_http
190 #@BUILD_PLUGIN_WRITE_KAFKA_TRUE@LoadPlugin write_kafka
191 #@BUILD_PLUGIN_WRITE_MONGODB_TRUE@LoadPlugin write_mongodb
192 #@BUILD_PLUGIN_WRITE_REDIS_TRUE@LoadPlugin write_redis
193 #@BUILD_PLUGIN_WRITE_RIEMANN_TRUE@LoadPlugin write_riemann
194 #@BUILD_PLUGIN_XMMS_TRUE@LoadPlugin xmms
195 #@BUILD_PLUGIN_ZFS_ARC_TRUE@LoadPlugin zfs_arc
197 ##############################################################################
198 # Plugin configuration #
199 #----------------------------------------------------------------------------#
200 # In this section configuration stubs for each plugin are provided. A desc- #
201 # ription of those options is available in the collectd.conf(5) manual page. #
202 ##############################################################################
204 #<Plugin aggregation>
205 # <Aggregation>
206 # #Host "unspecified"
207 # Plugin "cpu"
208 # #PluginInstance "unspecified"
209 # Type "cpu"
210 # #TypeInstance "unspecified"
211 #
212 # GroupBy "Host"
213 # GroupBy "TypeInstance"
214 #
215 # CalculateNum false
216 # CalculateSum false
217 # CalculateAverage true
218 # CalculateMinimum false
219 # CalculateMaximum false
220 # CalculateStddev false
221 # </Aggregation>
222 #</Plugin>
224 #<Plugin amqp>
225 # <Publish "name">
226 # Host "localhost"
227 # Port "5672"
228 # VHost "/"
229 # User "guest"
230 # Password "guest"
231 # Exchange "amq.fanout"
232 # RoutingKey "collectd"
233 # Persistent false
234 # StoreRates false
235 # </Publish>
236 #</Plugin>
238 #<Plugin apache>
239 # <Instance "local">
240 # URL "http://localhost/status?auto"
241 # User "www-user"
242 # Password "secret"
243 # CACert "/etc/ssl/ca.crt"
244 # </Instance>
245 #</Plugin>
247 #<Plugin apcups>
248 # Host "localhost"
249 # Port "3551"
250 # ReportSeconds true
251 #</Plugin>
253 #<Plugin aquaero>
254 # Device ""
255 #</Plugin>
257 #<Plugin ascent>
258 # URL "http://localhost/ascent/status/"
259 # User "www-user"
260 # Password "secret"
261 # CACert "/etc/ssl/ca.crt"
262 #</Plugin>
264 #<Plugin "barometer">
265 # Device "/dev/i2c-0";
266 # Oversampling 512
267 # PressureOffset 0.0
268 # TemperatureOffset 0.0
269 # Normalization 2
270 # Altitude 238.0
271 # TemperatureSensor "myserver/onewire-F10FCA000800/temperature"
272 #</Plugin>
274 #<Plugin "bind">
275 # URL "http://localhost:8053/"
276 # ParseTime false
277 # OpCodes true
278 # QTypes true
279 #
280 # ServerStats true
281 # ZoneMaintStats true
282 # ResolverStats false
283 # MemoryStats true
284 #
285 # <View "_default">
286 # QTypes true
287 # ResolverStats true
288 # CacheRRSets true
289 #
290 # Zone "127.in-addr.arpa/IN"
291 # </View>
292 #</Plugin>
294 #<Plugin cgroup>
295 # CGroup "libvirt"
296 # IgnoreSelected false
297 #</Plugin>
299 #<Plugin cpu>
300 # ReportActive false
301 # ReportByCpu true
302 # ValuesPercentage false
303 #</Plugin>
304 #
305 #<Plugin csv>
306 # DataDir "@localstatedir@/lib/@PACKAGE_NAME@/csv"
307 # StoreRates false
308 #</Plugin>
310 #<Plugin curl>
311 # <Page "stock_quotes">
312 # URL "http://finance.google.com/finance?q=NYSE%3AAMD"
313 # User "foo"
314 # Password "bar"
315 # MeasureResponseTime false
316 # <Match>
317 # Regex "<span +class=\"pr\"[^>]*> *([0-9]*\\.[0-9]+) *</span>"
318 # DSType "GaugeAverage"
319 # Type "stock_value"
320 # Instance "AMD"
321 # </Match>
322 # </Page>
323 #</Plugin>
325 #<Plugin curl_json>
326 ## See: http://wiki.apache.org/couchdb/Runtime_Statistics
327 # <URL "http://localhost:5984/_stats">
328 # Instance "httpd"
329 # <Key "httpd/requests/count">
330 # Type "http_requests"
331 # </Key>
332 #
333 # <Key "httpd_request_methods/*/count">
334 # Type "http_request_methods"
335 # </Key>
336 #
337 # <Key "httpd_status_codes/*/count">
338 # Type "http_response_codes"
339 # </Key>
340 # </URL>
341 ## Database status metrics:
342 # <URL "http://localhost:5984/_all_dbs">
343 # Instance "dbs"
344 # <Key "*/doc_count">
345 # Type "gauge"
346 # </Key>
347 # <Key "*/doc_del_count">
348 # Type "counter"
349 # </Key>
350 # <Key "*/disk_size">
351 # Type "bytes"
352 # </Key>
353 # </URL>
354 #</Plugin>
356 #<Plugin curl_xml>
357 # <URL "http://localhost/stats.xml">
358 # Host "my_host"
359 # Instance "some_instance"
360 # User "collectd"
361 # Password "thaiNg0I"
362 # VerifyPeer true
363 # VerifyHost true
364 # CACert "/path/to/ca.crt"
365 #
366 # <XPath "table[@id=\"magic_level\"]/tr">
367 # Type "magic_level"
368 # #InstancePrefix "prefix-"
369 # InstanceFrom "td[1]"
370 # ValuesFrom "td[2]/span[@class=\"level\"]"
371 # </XPath>
372 # </URL>
373 #</Plugin>
375 #<Plugin dbi>
376 # <Query "num_of_customers">
377 # Statement "SELECT 'customers' AS c_key, COUNT(*) AS c_value FROM customers_tbl"
378 # <Result>
379 # Type "gauge"
380 # InstancesFrom "c_key"
381 # ValuesFrom "c_value"
382 # </Result>
383 # </Query>
384 # <Database "customers_db">
385 # Driver "mysql"
386 # DriverOption "host" "localhost"
387 # DriverOption "username" "collectd"
388 # DriverOption "password" "AeXohy0O"
389 # DriverOption "dbname" "custdb0"
390 # #SelectDB "custdb0"
391 # Query "num_of_customers"
392 # #Query "..."
393 # #Host "..."
394 # </Database>
395 #</Plugin>
397 #<Plugin df>
398 # Device "/dev/hda1"
399 # Device "192.168.0.2:/mnt/nfs"
400 # MountPoint "/home"
401 # FSType "ext3"
402 # IgnoreSelected false
403 # ReportByDevice false
404 # ReportReserved false
405 # ReportInodes false
406 # ValuesAbsolute true
407 # ValuesPercentage false
408 #</Plugin>
410 #<Plugin disk>
411 # Disk "/^[hs]d[a-f][0-9]?$/"
412 # IgnoreSelected false
413 # UseBSDName false
414 # UdevNameAttr "DEVNAME"
415 #</Plugin>
417 #<Plugin dns>
418 # Interface "eth0"
419 # IgnoreSource "192.168.0.1"
420 # SelectNumericQueryTypes true
421 #</Plugin>
423 #<Plugin email>
424 # SocketFile "@localstatedir@/run/@PACKAGE_NAME@-email"
425 # SocketGroup "collectd"
426 # SocketPerms "0770"
427 # MaxConns 5
428 #</Plugin>
430 #<Plugin ethstat>
431 # Interface "eth0"
432 # Map "rx_csum_offload_errors" "if_rx_errors" "checksum_offload"
433 # Map "multicast" "if_multicast"
434 # MappedOnly false
435 #</Plugin>
437 #<Plugin exec>
438 # Exec "user:group" "/path/to/exec"
439 # NotificationExec "user:group" "/path/to/exec"
440 #</Plugin>
442 #<Plugin filecount>
443 # <Directory "/path/to/dir">
444 # Instance "foodir"
445 # Name "*.conf"
446 # MTime "-5m"
447 # Size "+10k"
448 # Recursive true
449 # IncludeHidden false
450 # </Directory>
451 #</Plugin>
453 #<Plugin gmond>
454 # MCReceiveFrom "239.2.11.71" "8649"
455 # <Metric "swap_total">
456 # Type "swap"
457 # TypeInstance "total"
458 # DataSource "value"
459 # </Metric>
460 # <Metric "swap_free">
461 # Type "swap"
462 # TypeInstance "free"
463 # DataSource "value"
464 # </Metric>
465 #</Plugin>
467 #<Plugin hddtemp>
468 # Host "127.0.0.1"
469 # Port "7634"
470 #</Plugin>
472 #<Plugin interface>
473 # Interface "eth0"
474 # IgnoreSelected false
475 #</Plugin>
477 #<Plugin ipmi>
478 # Sensor "some_sensor"
479 # Sensor "another_one"
480 # IgnoreSelected false
481 # NotifySensorAdd false
482 # NotifySensorRemove true
483 # NotifySensorNotPresent false
484 #</Plugin>
486 #<Plugin iptables>
487 # Chain table chain
488 #</Plugin>
490 #<Plugin irq>
491 # Irq 7
492 # Irq 8
493 # Irq 9
494 # IgnoreSelected true
495 #</Plugin>
497 #<Plugin java>
498 # JVMArg "-verbose:jni"
499 # JVMArg "-Djava.class.path=@prefix@/share/collectd/java/collectd-api.jar"
500 #
501 # LoadPlugin "org.collectd.java.Foobar"
502 # <Plugin "org.collectd.java.Foobar">
503 # # To be parsed by the plugin
504 # </Plugin>
505 #</Plugin>
507 #<Plugin libvirt>
508 # Connection "xen:///"
509 # RefreshInterval 60
510 # Domain "name"
511 # BlockDevice "name:device"
512 # InterfaceDevice "name:device"
513 # IgnoreSelected false
514 # HostnameFormat name
515 # InterfaceFormat name
516 # PluginInstanceFormat name
517 #</Plugin>
519 #<Plugin load>
520 # ReportRelative true
521 #</Plugin>
523 #<Plugin lpar>
524 # CpuPoolStats false
525 # ReportBySerial false
526 #</Plugin>
528 #<Plugin madwifi>
529 # Interface "wlan0"
530 # IgnoreSelected false
531 # Source "SysFS"
532 # WatchSet "None"
533 # WatchAdd "node_octets"
534 # WatchAdd "node_rssi"
535 # WatchAdd "is_rx_acl"
536 # WatchAdd "is_scan_active"
537 #</Plugin>
539 #<Plugin mbmon>
540 # Host "127.0.0.1"
541 # Port "411"
542 #</Plugin>
544 #<Plugin md>
545 # Device "/dev/md0"
546 # IgnoreSelected false
547 #</Plugin>
549 #<Plugin memcachec>
550 # <Page "plugin_instance">
551 # Server "localhost"
552 # Key "page_key"
553 # <Match>
554 # Regex "(\\d+) bytes sent"
555 # ExcludeRegex "<lines to be excluded>"
556 # DSType CounterAdd
557 # Type "ipt_octets"
558 # Instance "type_instance"
559 # </Match>
560 # </Page>
561 #</Plugin>
563 #<Plugin memcached>
564 # <Instance "local">
565 # Host "127.0.0.1"
566 # Port "11211"
567 # </Instance>
568 #</Plugin>
570 #<Plugin memory>
571 # ValuesAbsolute true
572 # ValuesPercentage false
573 #</Plugin>
575 #<Plugin modbus>
576 # <Data "data_name">
577 # RegisterBase 1234
578 # RegisterType float
579 # Type gauge
580 # Instance "..."
581 # </Data>
582 #
583 # <Host "name">
584 # Address "addr"
585 # Port "1234"
586 # Interval 60
587 #
588 # <Slave 1>
589 # Instance "foobar" # optional
590 # Collect "data_name"
591 # </Slave>
592 # </Host>
593 #</Plugin>
595 #<Plugin mysql>
596 # <Database db_name>
597 # Host "database.serv.er"
598 # User "db_user"
599 # Password "secret"
600 # Database "db_name"
601 # MasterStats true
602 # ConnectTimeout 10
603 # </Database>
604 #
605 # <Database db_name2>
606 # Alias "squeeze"
607 # Host "localhost"
608 # Socket "/var/run/mysql/mysqld.sock"
609 # SlaveStats true
610 # SlaveNotifications true
611 # </Database>
612 #</Plugin>
614 #<Plugin netapp>
615 # <Host "netapp1.example.com">
616 # Protocol "https"
617 # Address "10.0.0.1"
618 # Port 443
619 # User "username"
620 # Password "aef4Aebe"
621 # Interval 30
622 #
623 # <WAFL>
624 # Interval 30
625 # GetNameCache true
626 # GetDirCache true
627 # GetBufferCache true
628 # GetInodeCache true
629 # </WAFL>
630 #
631 # <Disks>
632 # Interval 30
633 # GetBusy true
634 # </Disks>
635 #
636 # <VolumePerf>
637 # Interval 30
638 # GetIO "volume0"
639 # IgnoreSelectedIO false
640 # GetOps "volume0"
641 # IgnoreSelectedOps false
642 # GetLatency "volume0"
643 # IgnoreSelectedLatency false
644 # </VolumePerf>
645 #
646 # <VolumeUsage>
647 # Interval 30
648 # GetCapacity "vol0"
649 # GetCapacity "vol1"
650 # IgnoreSelectedCapacity false
651 # GetSnapshot "vol1"
652 # GetSnapshot "vol3"
653 # IgnoreSelectedSnapshot false
654 # </VolumeUsage>
655 #
656 # <System>
657 # Interval 30
658 # GetCPULoad true
659 # GetInterfaces true
660 # GetDiskOps true
661 # GetDiskIO true
662 # </System>
663 # </Host>
664 #</Plugin>
666 #<Plugin netlink>
667 # Interface "All"
668 # VerboseInterface "All"
669 # QDisc "eth0" "pfifo_fast-1:0"
670 # Class "ppp0" "htb-1:10"
671 # Filter "ppp0" "u32-1:0"
672 # IgnoreSelected false
673 #</Plugin>
675 @LOAD_PLUGIN_NETWORK@<Plugin network>
676 # # client setup:
677 @LOAD_PLUGIN_NETWORK@ Server "ff18::efc0:4a42" "25826"
678 @LOAD_PLUGIN_NETWORK@ <Server "239.192.74.66" "25826">
679 # SecurityLevel Encrypt
680 # Username "user"
681 # Password "secret"
682 # Interface "eth0"
683 @LOAD_PLUGIN_NETWORK@ </Server>
684 # TimeToLive "128"
685 #
686 # # server setup:
687 # Listen "ff18::efc0:4a42" "25826"
688 # <Listen "239.192.74.66" "25826">
689 # SecurityLevel Sign
690 # AuthFile "/etc/collectd/passwd"
691 # Interface "eth0"
692 # </Listen>
693 # MaxPacketSize 1024
694 #
695 # # proxy setup (client and server as above):
696 # Forward true
697 #
698 # # statistics about the network plugin itself
699 # ReportStats false
700 #
701 # # "garbage collection"
702 # CacheFlush 1800
703 @LOAD_PLUGIN_NETWORK@</Plugin>
705 #<Plugin nginx>
706 # URL "http://localhost/status?auto"
707 # User "www-user"
708 # Password "secret"
709 # CACert "/etc/ssl/ca.crt"
710 #</Plugin>
712 #<Plugin notify_desktop>
713 # OkayTimeout 1000
714 # WarningTimeout 5000
715 # FailureTimeout 0
716 #</Plugin>
718 #<Plugin notify_email>
719 # SMTPServer "localhost"
720 # SMTPPort 25
721 # SMTPUser "my-username"
722 # SMTPPassword "my-password"
723 # From "collectd@main0server.com"
724 # # <WARNING/FAILURE/OK> on <hostname>. beware! do not use not more than two %s in this string!!!
725 # Subject "Aaaaaa!! %s on %s!!!!!"
726 # Recipient "email1@domain1.net"
727 # Recipient "email2@domain2.com"
728 #</Plugin>
730 #<Plugin ntpd>
731 # Host "localhost"
732 # Port 123
733 # ReverseLookups false
734 # IncludeUnitID true
735 #</Plugin>
737 #<Plugin nut>
738 # UPS "upsname@hostname:port"
739 #</Plugin>
741 #<Plugin olsrd>
742 # Host "127.0.0.1"
743 # Port "2006"
744 # CollectLinks "Summary"
745 # CollectRoutes "Summary"
746 # CollectTopology "Summary"
747 #</Plugin>
749 #<Plugin onewire>
750 # Device "-s localhost:4304"
751 # Sensor "F10FCA000800"
752 # IgnoreSelected false
753 #</Plugin>
755 #<Plugin openvpn>
756 # StatusFile "/etc/openvpn/openvpn-status.log"
757 # ImprovedNamingSchema false
758 # CollectCompression true
759 # CollectIndividualUsers true
760 # CollectUserCount false
761 #</Plugin>
763 #<Plugin oracle>
764 # <Query "out_of_stock">
765 # Statement "SELECT category, COUNT(*) AS value FROM products WHERE in_stock = 0 GROUP BY category"
766 # <Result>
767 # Type "gauge"
768 # InstancesFrom "category"
769 # ValuesFrom "value"
770 # </Result>
771 # </Query>
772 # <Database "product_information">
773 # ConnectID "db01"
774 # Username "oracle"
775 # Password "secret"
776 # Query "out_of_stock"
777 # </Database>
778 #</Plugin>
780 #<Plugin perl>
781 # IncludeDir "/my/include/path"
782 # BaseName "Collectd::Plugins"
783 # EnableDebugger ""
784 # LoadPlugin Monitorus
785 # LoadPlugin OpenVZ
786 #
787 # <Plugin foo>
788 # Foo "Bar"
789 # Qux "Baz"
790 # </Plugin>
791 #</Plugin>
793 #<Plugin pinba>
794 # Address "::0"
795 # Port "30002"
796 # <View "name">
797 # Host "host name"
798 # Server "server name"
799 # Script "script name"
800 # </View>
801 #</Plugin>
803 #<Plugin ping>
804 # Host "host.foo.bar"
805 # Interval 1.0
806 # Timeout 0.9
807 # TTL 255
808 # SourceAddress "1.2.3.4"
809 # Device "eth0"
810 # MaxMissed -1
811 #</Plugin>
813 #<Plugin postgresql>
814 # <Query magic>
815 # Statement "SELECT magic FROM wizard WHERE host = $1;"
816 # Param hostname
817 # <Result>
818 # Type gauge
819 # InstancePrefix "magic"
820 # ValuesFrom magic
821 # </Result>
822 # </Query>
823 # <Query rt36_tickets>
824 # Statement "SELECT COUNT(type) AS count, type \
825 # FROM (SELECT CASE \
826 # WHEN resolved = 'epoch' THEN 'open' \
827 # ELSE 'resolved' END AS type \
828 # FROM tickets) type \
829 # GROUP BY type;"
830 # <Result>
831 # Type counter
832 # InstancePrefix "rt36_tickets"
833 # InstancesFrom "type"
834 # ValuesFrom "count"
835 # </Result>
836 # </Query>
837 # <Writer sqlstore>
838 # # See contrib/postgresql/collectd_insert.sql for details
839 # Statement "SELECT collectd_insert($1, $2, $3, $4, $5, $6, $7, $8, $9);"
840 # StoreRates true
841 # </Writer>
842 # <Database foo>
843 # Host "hostname"
844 # Port "5432"
845 # User "username"
846 # Password "secret"
847 # SSLMode "prefer"
848 # KRBSrvName "kerberos_service_name"
849 # Query magic
850 # </Database>
851 # <Database bar>
852 # Interval 60
853 # Service "service_name"
854 # Query backend # predefined
855 # Query rt36_tickets
856 # </Database>
857 # <Database qux>
858 # Service "collectd_store"
859 # Writer sqlstore
860 # # see collectd.conf(5) for details
861 # CommitInterval 30
862 # </Database>
863 #</Plugin>
865 #<Plugin powerdns>
866 # <Server "server_name">
867 # Collect "latency"
868 # Collect "udp-answers" "udp-queries"
869 # Socket "/var/run/pdns.controlsocket"
870 # </Server>
871 # <Recursor "recursor_name">
872 # Collect "questions"
873 # Collect "cache-hits" "cache-misses"
874 # Socket "/var/run/pdns_recursor.controlsocket"
875 # </Recursor>
876 # LocalSocket "/opt/collectd/var/run/collectd-powerdns"
877 #</Plugin>
879 #<Plugin processes>
880 # Process "name"
881 #</Plugin>
883 #<Plugin protocols>
884 # Value "/^Tcp:/"
885 # IgnoreSelected false
886 #</Plugin>
888 #<Plugin python>
889 # ModulePath "/path/to/your/python/modules"
890 # LogTraces true
891 # Interactive true
892 # Import "spam"
893 #
894 # <Module spam>
895 # spam "wonderful" "lovely"
896 # </Module>
897 #</Plugin>
899 #<Plugin redis>
900 # <Node example>
901 # Host "redis.example.com"
902 # Port "6379"
903 # Timeout 2000
904 # </Node>
905 #</Plugin>
907 #<Plugin routeros>
908 # <Router>
909 # Host "router.example.com"
910 # Port "8728"
911 # User "admin"
912 # Password "dozaiTh4"
913 # CollectInterface true
914 # CollectRegistrationTable true
915 # CollectCPULoad true
916 # CollectMemory true
917 # CollectDF true
918 # CollectDisk true
919 # </Router>
920 #</Plugin>
922 #<Plugin rrdcached>
923 # DaemonAddress "unix:/tmp/rrdcached.sock"
924 # DataDir "@localstatedir@/lib/@PACKAGE_NAME@/rrd"
925 # CreateFiles true
926 # CreateFilesAsync false
927 # CollectStatistics true
928 #</Plugin>
930 #<Plugin rrdtool>
931 # DataDir "@localstatedir@/lib/@PACKAGE_NAME@/rrd"
932 # CreateFilesAsync false
933 # CacheTimeout 120
934 # CacheFlush 900
935 # WritesPerSecond 50
936 #</Plugin>
938 #<Plugin sensors>
939 # SensorConfigFile "/etc/sensors.conf"
940 # Sensor "it8712-isa-0290/temperature-temp1"
941 # Sensor "it8712-isa-0290/fanspeed-fan3"
942 # Sensor "it8712-isa-0290/voltage-in8"
943 # IgnoreSelected false
944 #</Plugin>
946 #<Plugin sigrok>
947 # LogLevel 3
948 # <Device "AC Voltage">
949 # Driver "fluke-dmm"
950 # MinimumInterval 10
951 # Conn "/dev/ttyUSB2"
952 # </Device>
953 # <Device "Sound Level">
954 # Driver "cem-dt-885x"
955 # Conn "/dev/ttyUSB1"
956 # </Device>
957 #</Plugin>
959 #<Plugin snmp>
960 # <Data "powerplus_voltge_input">
961 # Type "voltage"
962 # Table false
963 # Instance "input_line1"
964 # Values "SNMPv2-SMI::enterprises.6050.5.4.1.1.2.1"
965 # </Data>
966 # <Data "hr_users">
967 # Type "users"
968 # Table false
969 # Instance ""
970 # Values "HOST-RESOURCES-MIB::hrSystemNumUsers.0"
971 # </Data>
972 # <Data "std_traffic">
973 # Type "if_octets"
974 # Table true
975 # Instance "IF-MIB::ifDescr"
976 # Values "IF-MIB::ifInOctets" "IF-MIB::ifOutOctets"
977 # </Data>
978 #
979 # <Host "some.switch.mydomain.org">
980 # Address "192.168.0.2"
981 # Version 1
982 # Community "community_string"
983 # Collect "std_traffic"
984 # Interval 120
985 # </Host>
986 # <Host "some.server.mydomain.org">
987 # Address "192.168.0.42"
988 # Version 2
989 # Community "another_string"
990 # Collect "std_traffic" "hr_users"
991 # </Host>
992 # <Host "some.ups.mydomain.org">
993 # Address "192.168.0.3"
994 # Version 1
995 # Community "more_communities"
996 # Collect "powerplus_voltge_input"
997 # Interval 300
998 # </Host>
999 #</Plugin>
1001 #<Plugin statsd>
1002 # Host "::"
1003 # Port "8125"
1004 # DeleteCounters false
1005 # DeleteTimers false
1006 # DeleteGauges false
1007 # DeleteSets false
1008 # TimerPercentile 90.0
1009 #</Plugin>
1011 #<Plugin swap>
1012 # ReportByDevice false
1013 # ReportBytes true
1014 # ValuesAbsolute true
1015 # ValuesPercentage false
1016 #</Plugin>
1018 #<Plugin table>
1019 # <Table "/proc/slabinfo">
1020 # Instance "slabinfo"
1021 # Separator " "
1022 # <Result>
1023 # Type gauge
1024 # InstancePrefix "active_objs"
1025 # InstancesFrom 0
1026 # ValuesFrom 1
1027 # </Result>
1028 # <Result>
1029 # Type gauge
1030 # InstancePrefix "objperslab"
1031 # InstancesFrom 0
1032 # ValuesFrom 4
1033 # </Result>
1034 # </Table>
1035 #</Plugin>
1037 #<Plugin tail>
1038 # <File "/var/log/exim4/mainlog">
1039 # Instance "exim"
1040 # Interval 60
1041 # <Match>
1042 # Regex "S=([1-9][0-9]*)"
1043 # DSType "CounterAdd"
1044 # Type "ipt_bytes"
1045 # Instance "total"
1046 # </Match>
1047 # <Match>
1048 # Regex "\\<R=local_user\\>"
1049 # ExcludeRegex "\\<R=local_user\\>.*mail_spool defer"
1050 # DSType "CounterInc"
1051 # Type "counter"
1052 # Instance "local_user"
1053 # </Match>
1054 # </File>
1055 #</Plugin>
1057 #<Plugin tail_csv>
1058 # <Metric "dropped">
1059 # Type "percent"
1060 # Instance "dropped"
1061 # ValueFrom 1
1062 # </Metric>
1063 # <Metric "mbps">
1064 # Type "bytes"
1065 # Instance "wire-realtime"
1066 # ValueFrom 2
1067 # </Metric>
1068 # <Metric "alerts">
1069 # Type "alerts_per_second"
1070 # ValueFrom 3
1071 # </Metric>
1072 # <Metric "kpps">
1073 # Type "kpackets_wire_per_sec.realtime"
1074 # ValueFrom 4
1075 # </Metric>
1076 # <File "/var/log/snort/snort.stats">
1077 # Instance "snort-eth0"
1078 # Interval 600
1079 # Collect "dropped" "mbps" "alerts" "kpps"
1080 # TimeFrom 0
1081 # </File>
1082 #</Plugin>
1084 #<Plugin tcpconns>
1085 # ListeningPorts false
1086 # LocalPort "25"
1087 # RemotePort "25"
1088 #</Plugin>
1090 #<Plugin teamspeak2>
1091 # Host "127.0.0.1"
1092 # Port "51234"
1093 # Server "8767"
1094 #</Plugin>
1096 #<Plugin ted>
1097 # Device "/dev/ttyUSB0"
1098 # Retries 0
1099 #</Plugin>
1101 #<Plugin thermal>
1102 # ForceUseProcfs false
1103 # Device "THRM"
1104 # IgnoreSelected false
1105 #</Plugin>
1107 #<Plugin tokyotyrant>
1108 # Host "localhost"
1109 # Port "1978"
1110 #</Plugin>
1112 #<Plugin unixsock>
1113 # SocketFile "@prefix@/var/run/@PACKAGE_NAME@-unixsock"
1114 # SocketGroup "collectd"
1115 # SocketPerms "0660"
1116 # DeleteSocket false
1117 #</Plugin>
1119 #<Plugin uuid>
1120 # UUIDFile "/etc/uuid"
1121 #</Plugin>
1123 #<Plugin mic>
1124 # ShowCPU true
1125 # ShowCPUCores true
1126 # ShowMemory true
1127 # ShowTemperatures true
1128 ## Temperature Sensors can be ignored/shown by repeated #Temperature lines, and
1129 ## then inverted with a IgnoreSelectedTemperature.
1130 ## Known Temperature sensors: die, devmem, fin, fout, vccp, vddg, vddq
1131 # Temperature vddg
1132 # IgnoreSelectedTemperature true
1133 # ShowPower true
1134 ## Power Sensors can be ignored/shown by repeated #Power lines, and
1135 ## then inverted with a IgnoreSelectedTemperature.
1136 ## Known Temperature sensors: total0, total1, inst, imax, pci3, c2x3, c2x4, vccp, vddg, vddq
1137 # Power total1
1138 # IgnoreSelectedPower true
1139 #</Plugin>
1141 #<Plugin varnish>
1142 # This tag support an argument if you want to
1143 # monitor the local instance just use </Instance>
1144 # If you prefer defining another instance you can do
1145 # so by using <Instance "myinstance">
1146 # <Instance>
1147 # CollectCache true
1148 # CollectBackend true
1149 # CollectBan false # Varnish 3 only
1150 # CollectConnections true
1151 # CollectDirectorDNS false # Varnish 3 only
1152 # CollectSHM true
1153 # CollectESI false
1154 # CollectFetch false
1155 # CollectHCB false
1156 # CollectObjects false
1157 # CollectPurge false # Varnish 2 only
1158 # CollectSession false
1159 # CollectSMA false # Varnish 2 only
1160 # CollectSMS false
1161 # CollectSM false # Varnish 2 only
1162 # CollectStruct false
1163 # CollectTotals false
1164 # CollectUptime false
1165 # CollectVCL false
1166 # CollectWorkers false
1167 # </Instance>
1168 #</Plugin>
1170 #<Plugin vmem>
1171 # Verbose false
1172 #</Plugin>
1174 #<Plugin write_graphite>
1175 # <Node "example">
1176 # Host "localhost"
1177 # Port "2003"
1178 # Protocol "tcp"
1179 # LogSendErrors true
1180 # Prefix "collectd"
1181 # Postfix "collectd"
1182 # StoreRates true
1183 # AlwaysAppendDS false
1184 # EscapeCharacter "_"
1185 # </Node>
1186 #</Plugin>
1188 #<Plugin write_http>
1189 # <URL "http://example.com/collectd-post">
1190 # User "collectd"
1191 # Password "weCh3ik0"
1192 # VerifyPeer true
1193 # VerifyHost true
1194 # CACert "/etc/ssl/ca.crt"
1195 # CAPath "/etc/ssl/certs/"
1196 # ClientKey "/etc/ssl/client.pem"
1197 # ClientCert "/etc/ssl/client.crt"
1198 # ClientKeyPass "secret"
1199 # SSLVersion "TLSv1"
1200 # Format "Command"
1201 # StoreRates false
1202 # </URL>
1203 #</Plugin>
1205 #<Plugin write_kafka>
1206 # Property "metadata.broker.list" "localhost:9092"
1207 # <Topic "collectd">
1208 # Format JSON
1209 # </Topic>
1210 #</Plugin>
1212 #<Plugin write_mongodb>
1213 # <Node "example">
1214 # Host "localhost"
1215 # Port "27017"
1216 # Timeout 1000
1217 # StoreRates false
1218 # Database "auth_db"
1219 # User "auth_user"
1220 # Password "auth_passwd"
1221 # </Node>
1222 #</Plugin>
1224 #<Plugin write_redis>
1225 # <Node "example">
1226 # Host "localhost"
1227 # Port "6379"
1228 # Timeout 1000
1229 # </Node>
1230 #</Plugin>
1232 #<Plugin write_riemann>
1233 # <Node "example">
1234 # Host "localhost"
1235 # Port 5555
1236 # Protocol UDP
1237 # StoreRates true
1238 # AlwaysAppendDS false
1239 # TTLFactor 2.0
1240 # </Node>
1241 # Tag "foobar"
1242 # Attribute "foo" "bar"
1243 #</Plugin>
1245 ##############################################################################
1246 # Filter configuration #
1247 #----------------------------------------------------------------------------#
1248 # The following configures collectd's filtering mechanism. Before changing #
1249 # anything in this section, please read the `FILTER CONFIGURATION' section #
1250 # in the collectd.conf(5) manual page. #
1251 ##############################################################################
1253 # Load required matches:
1254 #@BUILD_PLUGIN_MATCH_EMPTY_COUNTER_TRUE@LoadPlugin match_empty_counter
1255 #@BUILD_PLUGIN_MATCH_HASHED_TRUE@LoadPlugin match_hashed
1256 #@BUILD_PLUGIN_MATCH_REGEX_TRUE@LoadPlugin match_regex
1257 #@BUILD_PLUGIN_MATCH_VALUE_TRUE@LoadPlugin match_value
1258 #@BUILD_PLUGIN_MATCH_TIMEDIFF_TRUE@LoadPlugin match_timediff
1260 # Load required targets:
1261 #@BUILD_PLUGIN_TARGET_NOTIFICATION_TRUE@LoadPlugin target_notification
1262 #@BUILD_PLUGIN_TARGET_REPLACE_TRUE@LoadPlugin target_replace
1263 #@BUILD_PLUGIN_TARGET_SCALE_TRUE@LoadPlugin target_scale
1264 #@BUILD_PLUGIN_TARGET_SET_TRUE@LoadPlugin target_set
1265 #@BUILD_PLUGIN_TARGET_V5UPGRADE_TRUE@LoadPlugin target_v5upgrade
1267 #----------------------------------------------------------------------------#
1268 # The following block demonstrates the default behavior if no filtering is #
1269 # configured at all: All values will be sent to all available write plugins. #
1270 #----------------------------------------------------------------------------#
1272 #<Chain "PostCache">
1273 # Target "write"
1274 #</Chain>
1276 ##############################################################################
1277 # Threshold configuration #
1278 #----------------------------------------------------------------------------#
1279 # The following outlines how to configure collectd's threshold checking #
1280 # plugin. The plugin and possible configuration options are documented in #
1281 # the collectd-threshold(5) manual page. #
1282 ##############################################################################
1284 #@BUILD_PLUGIN_THRESHOLD_TRUE@LoadPlugin "threshold"
1285 #<Plugin threshold>
1286 # <Type "foo">
1287 # WarningMin 0.00
1288 # WarningMax 1000.00
1289 # FailureMin 0.00
1290 # FailureMax 1200.00
1291 # Invert false
1292 # Instance "bar"
1293 # </Type>
1294 #
1295 # <Plugin "interface">
1296 # Instance "eth0"
1297 # <Type "if_octets">
1298 # FailureMax 10000000
1299 # DataSource "rx"
1300 # </Type>
1301 # </Plugin>
1302 #
1303 # <Host "hostname">
1304 # <Type "cpu">
1305 # Instance "idle"
1306 # FailureMin 10
1307 # </Type>
1308 #
1309 # <Plugin "memory">
1310 # <Type "memory">
1311 # Instance "cached"
1312 # WarningMin 100000000
1313 # </Type>
1314 # </Plugin>
1315 #
1316 # <Type "load">
1317 # DataSource "midterm"
1318 # FailureMax 4
1319 # Hits 3
1320 # Hysteresis 3
1321 # </Type>
1322 # </Host>
1323 #</Plugin>