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