bdc4969cd4aaf55eafc84b8edd2aa192a8d4521c
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 # InnodbStats true
604 # </Database>
605 #
606 # <Database db_name2>
607 # Alias "squeeze"
608 # Host "localhost"
609 # Socket "/var/run/mysql/mysqld.sock"
610 # SlaveStats true
611 # SlaveNotifications true
612 # </Database>
613 #</Plugin>
615 #<Plugin netapp>
616 # <Host "netapp1.example.com">
617 # Protocol "https"
618 # Address "10.0.0.1"
619 # Port 443
620 # User "username"
621 # Password "aef4Aebe"
622 # Interval 30
623 #
624 # <WAFL>
625 # Interval 30
626 # GetNameCache true
627 # GetDirCache true
628 # GetBufferCache true
629 # GetInodeCache true
630 # </WAFL>
631 #
632 # <Disks>
633 # Interval 30
634 # GetBusy true
635 # </Disks>
636 #
637 # <VolumePerf>
638 # Interval 30
639 # GetIO "volume0"
640 # IgnoreSelectedIO false
641 # GetOps "volume0"
642 # IgnoreSelectedOps false
643 # GetLatency "volume0"
644 # IgnoreSelectedLatency false
645 # </VolumePerf>
646 #
647 # <VolumeUsage>
648 # Interval 30
649 # GetCapacity "vol0"
650 # GetCapacity "vol1"
651 # IgnoreSelectedCapacity false
652 # GetSnapshot "vol1"
653 # GetSnapshot "vol3"
654 # IgnoreSelectedSnapshot false
655 # </VolumeUsage>
656 #
657 # <System>
658 # Interval 30
659 # GetCPULoad true
660 # GetInterfaces true
661 # GetDiskOps true
662 # GetDiskIO true
663 # </System>
664 # </Host>
665 #</Plugin>
667 #<Plugin netlink>
668 # Interface "All"
669 # VerboseInterface "All"
670 # QDisc "eth0" "pfifo_fast-1:0"
671 # Class "ppp0" "htb-1:10"
672 # Filter "ppp0" "u32-1:0"
673 # IgnoreSelected false
674 #</Plugin>
676 @LOAD_PLUGIN_NETWORK@<Plugin network>
677 # # client setup:
678 @LOAD_PLUGIN_NETWORK@ Server "ff18::efc0:4a42" "25826"
679 @LOAD_PLUGIN_NETWORK@ <Server "239.192.74.66" "25826">
680 # SecurityLevel Encrypt
681 # Username "user"
682 # Password "secret"
683 # Interface "eth0"
684 @LOAD_PLUGIN_NETWORK@ </Server>
685 # TimeToLive "128"
686 #
687 # # server setup:
688 # Listen "ff18::efc0:4a42" "25826"
689 # <Listen "239.192.74.66" "25826">
690 # SecurityLevel Sign
691 # AuthFile "/etc/collectd/passwd"
692 # Interface "eth0"
693 # </Listen>
694 # MaxPacketSize 1024
695 #
696 # # proxy setup (client and server as above):
697 # Forward true
698 #
699 # # statistics about the network plugin itself
700 # ReportStats false
701 #
702 # # "garbage collection"
703 # CacheFlush 1800
704 @LOAD_PLUGIN_NETWORK@</Plugin>
706 #<Plugin nginx>
707 # URL "http://localhost/status?auto"
708 # User "www-user"
709 # Password "secret"
710 # CACert "/etc/ssl/ca.crt"
711 #</Plugin>
713 #<Plugin notify_desktop>
714 # OkayTimeout 1000
715 # WarningTimeout 5000
716 # FailureTimeout 0
717 #</Plugin>
719 #<Plugin notify_email>
720 # SMTPServer "localhost"
721 # SMTPPort 25
722 # SMTPUser "my-username"
723 # SMTPPassword "my-password"
724 # From "collectd@main0server.com"
725 # # <WARNING/FAILURE/OK> on <hostname>. beware! do not use not more than two %s in this string!!!
726 # Subject "Aaaaaa!! %s on %s!!!!!"
727 # Recipient "email1@domain1.net"
728 # Recipient "email2@domain2.com"
729 #</Plugin>
731 #<Plugin ntpd>
732 # Host "localhost"
733 # Port 123
734 # ReverseLookups false
735 # IncludeUnitID true
736 #</Plugin>
738 #<Plugin nut>
739 # UPS "upsname@hostname:port"
740 #</Plugin>
742 #<Plugin olsrd>
743 # Host "127.0.0.1"
744 # Port "2006"
745 # CollectLinks "Summary"
746 # CollectRoutes "Summary"
747 # CollectTopology "Summary"
748 #</Plugin>
750 #<Plugin onewire>
751 # Device "-s localhost:4304"
752 # Sensor "F10FCA000800"
753 # IgnoreSelected false
754 #</Plugin>
756 #<Plugin openvpn>
757 # StatusFile "/etc/openvpn/openvpn-status.log"
758 # ImprovedNamingSchema false
759 # CollectCompression true
760 # CollectIndividualUsers true
761 # CollectUserCount false
762 #</Plugin>
764 #<Plugin oracle>
765 # <Query "out_of_stock">
766 # Statement "SELECT category, COUNT(*) AS value FROM products WHERE in_stock = 0 GROUP BY category"
767 # <Result>
768 # Type "gauge"
769 # InstancesFrom "category"
770 # ValuesFrom "value"
771 # </Result>
772 # </Query>
773 # <Database "product_information">
774 # ConnectID "db01"
775 # Username "oracle"
776 # Password "secret"
777 # Query "out_of_stock"
778 # </Database>
779 #</Plugin>
781 #<Plugin perl>
782 # IncludeDir "/my/include/path"
783 # BaseName "Collectd::Plugins"
784 # EnableDebugger ""
785 # LoadPlugin Monitorus
786 # LoadPlugin OpenVZ
787 #
788 # <Plugin foo>
789 # Foo "Bar"
790 # Qux "Baz"
791 # </Plugin>
792 #</Plugin>
794 #<Plugin pinba>
795 # Address "::0"
796 # Port "30002"
797 # <View "name">
798 # Host "host name"
799 # Server "server name"
800 # Script "script name"
801 # </View>
802 #</Plugin>
804 #<Plugin ping>
805 # Host "host.foo.bar"
806 # Interval 1.0
807 # Timeout 0.9
808 # TTL 255
809 # SourceAddress "1.2.3.4"
810 # Device "eth0"
811 # MaxMissed -1
812 #</Plugin>
814 #<Plugin postgresql>
815 # <Query magic>
816 # Statement "SELECT magic FROM wizard WHERE host = $1;"
817 # Param hostname
818 # <Result>
819 # Type gauge
820 # InstancePrefix "magic"
821 # ValuesFrom magic
822 # </Result>
823 # </Query>
824 # <Query rt36_tickets>
825 # Statement "SELECT COUNT(type) AS count, type \
826 # FROM (SELECT CASE \
827 # WHEN resolved = 'epoch' THEN 'open' \
828 # ELSE 'resolved' END AS type \
829 # FROM tickets) type \
830 # GROUP BY type;"
831 # <Result>
832 # Type counter
833 # InstancePrefix "rt36_tickets"
834 # InstancesFrom "type"
835 # ValuesFrom "count"
836 # </Result>
837 # </Query>
838 # <Writer sqlstore>
839 # # See contrib/postgresql/collectd_insert.sql for details
840 # Statement "SELECT collectd_insert($1, $2, $3, $4, $5, $6, $7, $8, $9);"
841 # StoreRates true
842 # </Writer>
843 # <Database foo>
844 # Host "hostname"
845 # Port "5432"
846 # User "username"
847 # Password "secret"
848 # SSLMode "prefer"
849 # KRBSrvName "kerberos_service_name"
850 # Query magic
851 # </Database>
852 # <Database bar>
853 # Interval 60
854 # Service "service_name"
855 # Query backend # predefined
856 # Query rt36_tickets
857 # </Database>
858 # <Database qux>
859 # Service "collectd_store"
860 # Writer sqlstore
861 # # see collectd.conf(5) for details
862 # CommitInterval 30
863 # </Database>
864 #</Plugin>
866 #<Plugin powerdns>
867 # <Server "server_name">
868 # Collect "latency"
869 # Collect "udp-answers" "udp-queries"
870 # Socket "/var/run/pdns.controlsocket"
871 # </Server>
872 # <Recursor "recursor_name">
873 # Collect "questions"
874 # Collect "cache-hits" "cache-misses"
875 # Socket "/var/run/pdns_recursor.controlsocket"
876 # </Recursor>
877 # LocalSocket "/opt/collectd/var/run/collectd-powerdns"
878 #</Plugin>
880 #<Plugin processes>
881 # Process "name"
882 #</Plugin>
884 #<Plugin protocols>
885 # Value "/^Tcp:/"
886 # IgnoreSelected false
887 #</Plugin>
889 #<Plugin python>
890 # ModulePath "/path/to/your/python/modules"
891 # LogTraces true
892 # Interactive true
893 # Import "spam"
894 #
895 # <Module spam>
896 # spam "wonderful" "lovely"
897 # </Module>
898 #</Plugin>
900 #<Plugin redis>
901 # <Node example>
902 # Host "redis.example.com"
903 # Port "6379"
904 # Timeout 2000
905 # </Node>
906 #</Plugin>
908 #<Plugin routeros>
909 # <Router>
910 # Host "router.example.com"
911 # Port "8728"
912 # User "admin"
913 # Password "dozaiTh4"
914 # CollectInterface true
915 # CollectRegistrationTable true
916 # CollectCPULoad true
917 # CollectMemory true
918 # CollectDF true
919 # CollectDisk true
920 # </Router>
921 #</Plugin>
923 #<Plugin rrdcached>
924 # DaemonAddress "unix:/tmp/rrdcached.sock"
925 # DataDir "@localstatedir@/lib/@PACKAGE_NAME@/rrd"
926 # CreateFiles true
927 # CreateFilesAsync false
928 # CollectStatistics true
929 #</Plugin>
931 #<Plugin rrdtool>
932 # DataDir "@localstatedir@/lib/@PACKAGE_NAME@/rrd"
933 # CreateFilesAsync false
934 # CacheTimeout 120
935 # CacheFlush 900
936 # WritesPerSecond 50
937 #</Plugin>
939 #<Plugin sensors>
940 # SensorConfigFile "/etc/sensors.conf"
941 # Sensor "it8712-isa-0290/temperature-temp1"
942 # Sensor "it8712-isa-0290/fanspeed-fan3"
943 # Sensor "it8712-isa-0290/voltage-in8"
944 # IgnoreSelected false
945 #</Plugin>
947 #<Plugin sigrok>
948 # LogLevel 3
949 # <Device "AC Voltage">
950 # Driver "fluke-dmm"
951 # MinimumInterval 10
952 # Conn "/dev/ttyUSB2"
953 # </Device>
954 # <Device "Sound Level">
955 # Driver "cem-dt-885x"
956 # Conn "/dev/ttyUSB1"
957 # </Device>
958 #</Plugin>
960 #<Plugin snmp>
961 # <Data "powerplus_voltge_input">
962 # Type "voltage"
963 # Table false
964 # Instance "input_line1"
965 # Values "SNMPv2-SMI::enterprises.6050.5.4.1.1.2.1"
966 # </Data>
967 # <Data "hr_users">
968 # Type "users"
969 # Table false
970 # Instance ""
971 # Values "HOST-RESOURCES-MIB::hrSystemNumUsers.0"
972 # </Data>
973 # <Data "std_traffic">
974 # Type "if_octets"
975 # Table true
976 # Instance "IF-MIB::ifDescr"
977 # Values "IF-MIB::ifInOctets" "IF-MIB::ifOutOctets"
978 # </Data>
979 #
980 # <Host "some.switch.mydomain.org">
981 # Address "192.168.0.2"
982 # Version 1
983 # Community "community_string"
984 # Collect "std_traffic"
985 # Interval 120
986 # </Host>
987 # <Host "some.server.mydomain.org">
988 # Address "192.168.0.42"
989 # Version 2
990 # Community "another_string"
991 # Collect "std_traffic" "hr_users"
992 # </Host>
993 # <Host "some.ups.mydomain.org">
994 # Address "192.168.0.3"
995 # Version 1
996 # Community "more_communities"
997 # Collect "powerplus_voltge_input"
998 # Interval 300
999 # </Host>
1000 #</Plugin>
1002 #<Plugin statsd>
1003 # Host "::"
1004 # Port "8125"
1005 # DeleteCounters false
1006 # DeleteTimers false
1007 # DeleteGauges false
1008 # DeleteSets false
1009 # TimerPercentile 90.0
1010 #</Plugin>
1012 #<Plugin swap>
1013 # ReportByDevice false
1014 # ReportBytes true
1015 # ValuesAbsolute true
1016 # ValuesPercentage false
1017 #</Plugin>
1019 #<Plugin table>
1020 # <Table "/proc/slabinfo">
1021 # Instance "slabinfo"
1022 # Separator " "
1023 # <Result>
1024 # Type gauge
1025 # InstancePrefix "active_objs"
1026 # InstancesFrom 0
1027 # ValuesFrom 1
1028 # </Result>
1029 # <Result>
1030 # Type gauge
1031 # InstancePrefix "objperslab"
1032 # InstancesFrom 0
1033 # ValuesFrom 4
1034 # </Result>
1035 # </Table>
1036 #</Plugin>
1038 #<Plugin tail>
1039 # <File "/var/log/exim4/mainlog">
1040 # Instance "exim"
1041 # Interval 60
1042 # <Match>
1043 # Regex "S=([1-9][0-9]*)"
1044 # DSType "CounterAdd"
1045 # Type "ipt_bytes"
1046 # Instance "total"
1047 # </Match>
1048 # <Match>
1049 # Regex "\\<R=local_user\\>"
1050 # ExcludeRegex "\\<R=local_user\\>.*mail_spool defer"
1051 # DSType "CounterInc"
1052 # Type "counter"
1053 # Instance "local_user"
1054 # </Match>
1055 # </File>
1056 #</Plugin>
1058 #<Plugin tail_csv>
1059 # <Metric "dropped">
1060 # Type "percent"
1061 # Instance "dropped"
1062 # ValueFrom 1
1063 # </Metric>
1064 # <Metric "mbps">
1065 # Type "bytes"
1066 # Instance "wire-realtime"
1067 # ValueFrom 2
1068 # </Metric>
1069 # <Metric "alerts">
1070 # Type "alerts_per_second"
1071 # ValueFrom 3
1072 # </Metric>
1073 # <Metric "kpps">
1074 # Type "kpackets_wire_per_sec.realtime"
1075 # ValueFrom 4
1076 # </Metric>
1077 # <File "/var/log/snort/snort.stats">
1078 # Instance "snort-eth0"
1079 # Interval 600
1080 # Collect "dropped" "mbps" "alerts" "kpps"
1081 # TimeFrom 0
1082 # </File>
1083 #</Plugin>
1085 #<Plugin tcpconns>
1086 # ListeningPorts false
1087 # LocalPort "25"
1088 # RemotePort "25"
1089 #</Plugin>
1091 #<Plugin teamspeak2>
1092 # Host "127.0.0.1"
1093 # Port "51234"
1094 # Server "8767"
1095 #</Plugin>
1097 #<Plugin ted>
1098 # Device "/dev/ttyUSB0"
1099 # Retries 0
1100 #</Plugin>
1102 #<Plugin thermal>
1103 # ForceUseProcfs false
1104 # Device "THRM"
1105 # IgnoreSelected false
1106 #</Plugin>
1108 #<Plugin tokyotyrant>
1109 # Host "localhost"
1110 # Port "1978"
1111 #</Plugin>
1113 #<Plugin unixsock>
1114 # SocketFile "@prefix@/var/run/@PACKAGE_NAME@-unixsock"
1115 # SocketGroup "collectd"
1116 # SocketPerms "0660"
1117 # DeleteSocket false
1118 #</Plugin>
1120 #<Plugin uuid>
1121 # UUIDFile "/etc/uuid"
1122 #</Plugin>
1124 #<Plugin mic>
1125 # ShowCPU true
1126 # ShowCPUCores true
1127 # ShowMemory true
1128 # ShowTemperatures true
1129 ## Temperature Sensors can be ignored/shown by repeated #Temperature lines, and
1130 ## then inverted with a IgnoreSelectedTemperature.
1131 ## Known Temperature sensors: die, devmem, fin, fout, vccp, vddg, vddq
1132 # Temperature vddg
1133 # IgnoreSelectedTemperature true
1134 # ShowPower true
1135 ## Power Sensors can be ignored/shown by repeated #Power lines, and
1136 ## then inverted with a IgnoreSelectedTemperature.
1137 ## Known Temperature sensors: total0, total1, inst, imax, pci3, c2x3, c2x4, vccp, vddg, vddq
1138 # Power total1
1139 # IgnoreSelectedPower true
1140 #</Plugin>
1142 #<Plugin varnish>
1143 # This tag support an argument if you want to
1144 # monitor the local instance just use </Instance>
1145 # If you prefer defining another instance you can do
1146 # so by using <Instance "myinstance">
1147 # <Instance>
1148 # CollectCache true
1149 # CollectBackend true
1150 # CollectBan false # Varnish 3 only
1151 # CollectConnections true
1152 # CollectDirectorDNS false # Varnish 3 only
1153 # CollectSHM true
1154 # CollectESI false
1155 # CollectFetch false
1156 # CollectHCB false
1157 # CollectObjects false
1158 # CollectPurge false # Varnish 2 only
1159 # CollectSession false
1160 # CollectSMA false # Varnish 2 only
1161 # CollectSMS false
1162 # CollectSM false # Varnish 2 only
1163 # CollectStruct false
1164 # CollectTotals false
1165 # CollectUptime false
1166 # CollectVCL false
1167 # CollectWorkers false
1168 # </Instance>
1169 #</Plugin>
1171 #<Plugin vmem>
1172 # Verbose false
1173 #</Plugin>
1175 #<Plugin write_graphite>
1176 # <Node "example">
1177 # Host "localhost"
1178 # Port "2003"
1179 # Protocol "tcp"
1180 # LogSendErrors true
1181 # Prefix "collectd"
1182 # Postfix "collectd"
1183 # StoreRates true
1184 # AlwaysAppendDS false
1185 # EscapeCharacter "_"
1186 # </Node>
1187 #</Plugin>
1189 #<Plugin write_http>
1190 # <URL "http://example.com/collectd-post">
1191 # User "collectd"
1192 # Password "weCh3ik0"
1193 # VerifyPeer true
1194 # VerifyHost true
1195 # CACert "/etc/ssl/ca.crt"
1196 # CAPath "/etc/ssl/certs/"
1197 # ClientKey "/etc/ssl/client.pem"
1198 # ClientCert "/etc/ssl/client.crt"
1199 # ClientKeyPass "secret"
1200 # SSLVersion "TLSv1"
1201 # Format "Command"
1202 # StoreRates false
1203 # </URL>
1204 #</Plugin>
1206 #<Plugin write_kafka>
1207 # Property "metadata.broker.list" "localhost:9092"
1208 # <Topic "collectd">
1209 # Format JSON
1210 # </Topic>
1211 #</Plugin>
1213 #<Plugin write_mongodb>
1214 # <Node "example">
1215 # Host "localhost"
1216 # Port "27017"
1217 # Timeout 1000
1218 # StoreRates false
1219 # Database "auth_db"
1220 # User "auth_user"
1221 # Password "auth_passwd"
1222 # </Node>
1223 #</Plugin>
1225 #<Plugin write_redis>
1226 # <Node "example">
1227 # Host "localhost"
1228 # Port "6379"
1229 # Timeout 1000
1230 # </Node>
1231 #</Plugin>
1233 #<Plugin write_riemann>
1234 # <Node "example">
1235 # Host "localhost"
1236 # Port 5555
1237 # Protocol UDP
1238 # StoreRates true
1239 # AlwaysAppendDS false
1240 # TTLFactor 2.0
1241 # Prefix ServicePrefix
1242 # </Node>
1243 # Tag "foobar"
1244 # Attribute "foo" "bar"
1245 #</Plugin>
1247 ##############################################################################
1248 # Filter configuration #
1249 #----------------------------------------------------------------------------#
1250 # The following configures collectd's filtering mechanism. Before changing #
1251 # anything in this section, please read the `FILTER CONFIGURATION' section #
1252 # in the collectd.conf(5) manual page. #
1253 ##############################################################################
1255 # Load required matches:
1256 #@BUILD_PLUGIN_MATCH_EMPTY_COUNTER_TRUE@LoadPlugin match_empty_counter
1257 #@BUILD_PLUGIN_MATCH_HASHED_TRUE@LoadPlugin match_hashed
1258 #@BUILD_PLUGIN_MATCH_REGEX_TRUE@LoadPlugin match_regex
1259 #@BUILD_PLUGIN_MATCH_VALUE_TRUE@LoadPlugin match_value
1260 #@BUILD_PLUGIN_MATCH_TIMEDIFF_TRUE@LoadPlugin match_timediff
1262 # Load required targets:
1263 #@BUILD_PLUGIN_TARGET_NOTIFICATION_TRUE@LoadPlugin target_notification
1264 #@BUILD_PLUGIN_TARGET_REPLACE_TRUE@LoadPlugin target_replace
1265 #@BUILD_PLUGIN_TARGET_SCALE_TRUE@LoadPlugin target_scale
1266 #@BUILD_PLUGIN_TARGET_SET_TRUE@LoadPlugin target_set
1267 #@BUILD_PLUGIN_TARGET_V5UPGRADE_TRUE@LoadPlugin target_v5upgrade
1269 #----------------------------------------------------------------------------#
1270 # The following block demonstrates the default behavior if no filtering is #
1271 # configured at all: All values will be sent to all available write plugins. #
1272 #----------------------------------------------------------------------------#
1274 #<Chain "PostCache">
1275 # Target "write"
1276 #</Chain>
1278 ##############################################################################
1279 # Threshold configuration #
1280 #----------------------------------------------------------------------------#
1281 # The following outlines how to configure collectd's threshold checking #
1282 # plugin. The plugin and possible configuration options are documented in #
1283 # the collectd-threshold(5) manual page. #
1284 ##############################################################################
1286 #@BUILD_PLUGIN_THRESHOLD_TRUE@LoadPlugin "threshold"
1287 #<Plugin threshold>
1288 # <Type "foo">
1289 # WarningMin 0.00
1290 # WarningMax 1000.00
1291 # FailureMin 0.00
1292 # FailureMax 1200.00
1293 # Invert false
1294 # Instance "bar"
1295 # </Type>
1296 #
1297 # <Plugin "interface">
1298 # Instance "eth0"
1299 # <Type "if_octets">
1300 # FailureMax 10000000
1301 # DataSource "rx"
1302 # </Type>
1303 # </Plugin>
1304 #
1305 # <Host "hostname">
1306 # <Type "cpu">
1307 # Instance "idle"
1308 # FailureMin 10
1309 # </Type>
1310 #
1311 # <Plugin "memory">
1312 # <Type "memory">
1313 # Instance "cached"
1314 # WarningMin 100000000
1315 # </Type>
1316 # </Plugin>
1317 #
1318 # <Type "load">
1319 # DataSource "midterm"
1320 # FailureMax 4
1321 # Hits 3
1322 # Hysteresis 3
1323 # </Type>
1324 # </Host>
1325 #</Plugin>