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 # Digest false
315 # VerifyPeer true
316 # VerifyHost true
317 # CACert "/path/to/ca.crt"
318 # Header "X-Custom-Header: foobar"
319 # Post "foo=bar"
320 #
321 # MeasureResponseTime false
322 # MeasureResponseCode false
323 # <Match>
324 # Regex "<span +class=\"pr\"[^>]*> *([0-9]*\\.[0-9]+) *</span>"
325 # DSType "GaugeAverage"
326 # Type "stock_value"
327 # Instance "AMD"
328 # </Match>
329 # </Page>
330 #</Plugin>
332 #<Plugin curl_json>
333 ## See: http://wiki.apache.org/couchdb/Runtime_Statistics
334 # <URL "http://localhost:5984/_stats">
335 # Instance "httpd"
336 # <Key "httpd/requests/count">
337 # Type "http_requests"
338 # </Key>
339 #
340 # <Key "httpd_request_methods/*/count">
341 # Type "http_request_methods"
342 # </Key>
343 #
344 # <Key "httpd_status_codes/*/count">
345 # Type "http_response_codes"
346 # </Key>
347 # </URL>
348 ## Database status metrics:
349 # <URL "http://localhost:5984/_all_dbs">
350 # Instance "dbs"
351 # <Key "*/doc_count">
352 # Type "gauge"
353 # </Key>
354 # <Key "*/doc_del_count">
355 # Type "counter"
356 # </Key>
357 # <Key "*/disk_size">
358 # Type "bytes"
359 # </Key>
360 # </URL>
361 #</Plugin>
363 #<Plugin curl_xml>
364 # <URL "http://localhost/stats.xml">
365 # Host "my_host"
366 # Instance "some_instance"
367 # User "collectd"
368 # Password "thaiNg0I"
369 # Digest false
370 # VerifyPeer true
371 # VerifyHost true
372 # CACert "/path/to/ca.crt"
373 # Header "X-Custom-Header: foobar"
374 # Post "foo=bar"
375 #
376 # <XPath "table[@id=\"magic_level\"]/tr">
377 # Type "magic_level"
378 # #InstancePrefix "prefix-"
379 # InstanceFrom "td[1]"
380 # ValuesFrom "td[2]/span[@class=\"level\"]"
381 # </XPath>
382 # </URL>
383 #</Plugin>
385 #<Plugin dbi>
386 # <Query "num_of_customers">
387 # Statement "SELECT 'customers' AS c_key, COUNT(*) AS c_value FROM customers_tbl"
388 # <Result>
389 # Type "gauge"
390 # InstancesFrom "c_key"
391 # ValuesFrom "c_value"
392 # </Result>
393 # </Query>
394 # <Database "customers_db">
395 # Driver "mysql"
396 # DriverOption "host" "localhost"
397 # DriverOption "username" "collectd"
398 # DriverOption "password" "AeXohy0O"
399 # DriverOption "dbname" "custdb0"
400 # #SelectDB "custdb0"
401 # Query "num_of_customers"
402 # #Query "..."
403 # #Host "..."
404 # </Database>
405 #</Plugin>
407 #<Plugin df>
408 # Device "/dev/hda1"
409 # Device "192.168.0.2:/mnt/nfs"
410 # MountPoint "/home"
411 # FSType "ext3"
412 # IgnoreSelected false
413 # ReportByDevice false
414 # ReportReserved false
415 # ReportInodes false
416 # ValuesAbsolute true
417 # ValuesPercentage false
418 #</Plugin>
420 #<Plugin disk>
421 # Disk "/^[hs]d[a-f][0-9]?$/"
422 # IgnoreSelected false
423 # UseBSDName false
424 # UdevNameAttr "DEVNAME"
425 #</Plugin>
427 #<Plugin dns>
428 # Interface "eth0"
429 # IgnoreSource "192.168.0.1"
430 # SelectNumericQueryTypes true
431 #</Plugin>
433 #<Plugin email>
434 # SocketFile "@localstatedir@/run/@PACKAGE_NAME@-email"
435 # SocketGroup "collectd"
436 # SocketPerms "0770"
437 # MaxConns 5
438 #</Plugin>
440 #<Plugin ethstat>
441 # Interface "eth0"
442 # Map "rx_csum_offload_errors" "if_rx_errors" "checksum_offload"
443 # Map "multicast" "if_multicast"
444 # MappedOnly false
445 #</Plugin>
447 #<Plugin exec>
448 # Exec "user:group" "/path/to/exec"
449 # NotificationExec "user:group" "/path/to/exec"
450 #</Plugin>
452 #<Plugin filecount>
453 # <Directory "/path/to/dir">
454 # Instance "foodir"
455 # Name "*.conf"
456 # MTime "-5m"
457 # Size "+10k"
458 # Recursive true
459 # IncludeHidden false
460 # </Directory>
461 #</Plugin>
463 #<Plugin gmond>
464 # MCReceiveFrom "239.2.11.71" "8649"
465 # <Metric "swap_total">
466 # Type "swap"
467 # TypeInstance "total"
468 # DataSource "value"
469 # </Metric>
470 # <Metric "swap_free">
471 # Type "swap"
472 # TypeInstance "free"
473 # DataSource "value"
474 # </Metric>
475 #</Plugin>
477 #<Plugin hddtemp>
478 # Host "127.0.0.1"
479 # Port "7634"
480 #</Plugin>
482 #<Plugin interface>
483 # Interface "eth0"
484 # IgnoreSelected false
485 #</Plugin>
487 #<Plugin ipmi>
488 # Sensor "some_sensor"
489 # Sensor "another_one"
490 # IgnoreSelected false
491 # NotifySensorAdd false
492 # NotifySensorRemove true
493 # NotifySensorNotPresent false
494 #</Plugin>
496 #<Plugin iptables>
497 # Chain table chain
498 #</Plugin>
500 #<Plugin irq>
501 # Irq 7
502 # Irq 8
503 # Irq 9
504 # IgnoreSelected true
505 #</Plugin>
507 #<Plugin java>
508 # JVMArg "-verbose:jni"
509 # JVMArg "-Djava.class.path=@prefix@/share/collectd/java/collectd-api.jar"
510 #
511 # LoadPlugin "org.collectd.java.Foobar"
512 # <Plugin "org.collectd.java.Foobar">
513 # # To be parsed by the plugin
514 # </Plugin>
515 #</Plugin>
517 #<Plugin libvirt>
518 # Connection "xen:///"
519 # RefreshInterval 60
520 # Domain "name"
521 # BlockDevice "name:device"
522 # InterfaceDevice "name:device"
523 # IgnoreSelected false
524 # HostnameFormat name
525 # InterfaceFormat name
526 # PluginInstanceFormat name
527 #</Plugin>
529 #<Plugin load>
530 # ReportRelative true
531 #</Plugin>
533 #<Plugin lpar>
534 # CpuPoolStats false
535 # ReportBySerial false
536 #</Plugin>
538 #<Plugin madwifi>
539 # Interface "wlan0"
540 # IgnoreSelected false
541 # Source "SysFS"
542 # WatchSet "None"
543 # WatchAdd "node_octets"
544 # WatchAdd "node_rssi"
545 # WatchAdd "is_rx_acl"
546 # WatchAdd "is_scan_active"
547 #</Plugin>
549 #<Plugin mbmon>
550 # Host "127.0.0.1"
551 # Port "411"
552 #</Plugin>
554 #<Plugin md>
555 # Device "/dev/md0"
556 # IgnoreSelected false
557 #</Plugin>
559 #<Plugin memcachec>
560 # <Page "plugin_instance">
561 # Server "localhost"
562 # Key "page_key"
563 # <Match>
564 # Regex "(\\d+) bytes sent"
565 # ExcludeRegex "<lines to be excluded>"
566 # DSType CounterAdd
567 # Type "ipt_octets"
568 # Instance "type_instance"
569 # </Match>
570 # </Page>
571 #</Plugin>
573 #<Plugin memcached>
574 # <Instance "local">
575 # Host "127.0.0.1"
576 # Port "11211"
577 # </Instance>
578 #</Plugin>
580 #<Plugin memory>
581 # ValuesAbsolute true
582 # ValuesPercentage false
583 #</Plugin>
585 #<Plugin modbus>
586 # <Data "data_name">
587 # RegisterBase 1234
588 # RegisterType float
589 # Type gauge
590 # Instance "..."
591 # </Data>
592 #
593 # <Host "name">
594 # Address "addr"
595 # Port "1234"
596 # Interval 60
597 #
598 # <Slave 1>
599 # Instance "foobar" # optional
600 # Collect "data_name"
601 # </Slave>
602 # </Host>
603 #</Plugin>
605 #<Plugin mysql>
606 # <Database db_name>
607 # Host "database.serv.er"
608 # User "db_user"
609 # Password "secret"
610 # Database "db_name"
611 # MasterStats true
612 # ConnectTimeout 10
613 # </Database>
614 #
615 # <Database db_name2>
616 # Alias "squeeze"
617 # Host "localhost"
618 # Socket "/var/run/mysql/mysqld.sock"
619 # SlaveStats true
620 # SlaveNotifications true
621 # </Database>
622 #</Plugin>
624 #<Plugin netapp>
625 # <Host "netapp1.example.com">
626 # Protocol "https"
627 # Address "10.0.0.1"
628 # Port 443
629 # User "username"
630 # Password "aef4Aebe"
631 # Interval 30
632 #
633 # <WAFL>
634 # Interval 30
635 # GetNameCache true
636 # GetDirCache true
637 # GetBufferCache true
638 # GetInodeCache true
639 # </WAFL>
640 #
641 # <Disks>
642 # Interval 30
643 # GetBusy true
644 # </Disks>
645 #
646 # <VolumePerf>
647 # Interval 30
648 # GetIO "volume0"
649 # IgnoreSelectedIO false
650 # GetOps "volume0"
651 # IgnoreSelectedOps false
652 # GetLatency "volume0"
653 # IgnoreSelectedLatency false
654 # </VolumePerf>
655 #
656 # <VolumeUsage>
657 # Interval 30
658 # GetCapacity "vol0"
659 # GetCapacity "vol1"
660 # IgnoreSelectedCapacity false
661 # GetSnapshot "vol1"
662 # GetSnapshot "vol3"
663 # IgnoreSelectedSnapshot false
664 # </VolumeUsage>
665 #
666 # <System>
667 # Interval 30
668 # GetCPULoad true
669 # GetInterfaces true
670 # GetDiskOps true
671 # GetDiskIO true
672 # </System>
673 # </Host>
674 #</Plugin>
676 #<Plugin netlink>
677 # Interface "All"
678 # VerboseInterface "All"
679 # QDisc "eth0" "pfifo_fast-1:0"
680 # Class "ppp0" "htb-1:10"
681 # Filter "ppp0" "u32-1:0"
682 # IgnoreSelected false
683 #</Plugin>
685 @LOAD_PLUGIN_NETWORK@<Plugin network>
686 # # client setup:
687 @LOAD_PLUGIN_NETWORK@ Server "ff18::efc0:4a42" "25826"
688 @LOAD_PLUGIN_NETWORK@ <Server "239.192.74.66" "25826">
689 # SecurityLevel Encrypt
690 # Username "user"
691 # Password "secret"
692 # Interface "eth0"
693 @LOAD_PLUGIN_NETWORK@ </Server>
694 # TimeToLive "128"
695 #
696 # # server setup:
697 # Listen "ff18::efc0:4a42" "25826"
698 # <Listen "239.192.74.66" "25826">
699 # SecurityLevel Sign
700 # AuthFile "/etc/collectd/passwd"
701 # Interface "eth0"
702 # </Listen>
703 # MaxPacketSize 1024
704 #
705 # # proxy setup (client and server as above):
706 # Forward true
707 #
708 # # statistics about the network plugin itself
709 # ReportStats false
710 #
711 # # "garbage collection"
712 # CacheFlush 1800
713 @LOAD_PLUGIN_NETWORK@</Plugin>
715 #<Plugin nginx>
716 # URL "http://localhost/status?auto"
717 # User "www-user"
718 # Password "secret"
719 # CACert "/etc/ssl/ca.crt"
720 #</Plugin>
722 #<Plugin notify_desktop>
723 # OkayTimeout 1000
724 # WarningTimeout 5000
725 # FailureTimeout 0
726 #</Plugin>
728 #<Plugin notify_email>
729 # SMTPServer "localhost"
730 # SMTPPort 25
731 # SMTPUser "my-username"
732 # SMTPPassword "my-password"
733 # From "collectd@main0server.com"
734 # # <WARNING/FAILURE/OK> on <hostname>. beware! do not use not more than two %s in this string!!!
735 # Subject "Aaaaaa!! %s on %s!!!!!"
736 # Recipient "email1@domain1.net"
737 # Recipient "email2@domain2.com"
738 #</Plugin>
740 #<Plugin ntpd>
741 # Host "localhost"
742 # Port 123
743 # ReverseLookups false
744 # IncludeUnitID true
745 #</Plugin>
747 #<Plugin nut>
748 # UPS "upsname@hostname:port"
749 #</Plugin>
751 #<Plugin olsrd>
752 # Host "127.0.0.1"
753 # Port "2006"
754 # CollectLinks "Summary"
755 # CollectRoutes "Summary"
756 # CollectTopology "Summary"
757 #</Plugin>
759 #<Plugin onewire>
760 # Device "-s localhost:4304"
761 # Sensor "F10FCA000800"
762 # IgnoreSelected false
763 #</Plugin>
765 #<Plugin openvpn>
766 # StatusFile "/etc/openvpn/openvpn-status.log"
767 # ImprovedNamingSchema false
768 # CollectCompression true
769 # CollectIndividualUsers true
770 # CollectUserCount false
771 #</Plugin>
773 #<Plugin oracle>
774 # <Query "out_of_stock">
775 # Statement "SELECT category, COUNT(*) AS value FROM products WHERE in_stock = 0 GROUP BY category"
776 # <Result>
777 # Type "gauge"
778 # InstancesFrom "category"
779 # ValuesFrom "value"
780 # </Result>
781 # </Query>
782 # <Database "product_information">
783 # ConnectID "db01"
784 # Username "oracle"
785 # Password "secret"
786 # Query "out_of_stock"
787 # </Database>
788 #</Plugin>
790 #<Plugin perl>
791 # IncludeDir "/my/include/path"
792 # BaseName "Collectd::Plugins"
793 # EnableDebugger ""
794 # LoadPlugin Monitorus
795 # LoadPlugin OpenVZ
796 #
797 # <Plugin foo>
798 # Foo "Bar"
799 # Qux "Baz"
800 # </Plugin>
801 #</Plugin>
803 #<Plugin pinba>
804 # Address "::0"
805 # Port "30002"
806 # <View "name">
807 # Host "host name"
808 # Server "server name"
809 # Script "script name"
810 # </View>
811 #</Plugin>
813 #<Plugin ping>
814 # Host "host.foo.bar"
815 # Interval 1.0
816 # Timeout 0.9
817 # TTL 255
818 # SourceAddress "1.2.3.4"
819 # Device "eth0"
820 # MaxMissed -1
821 #</Plugin>
823 #<Plugin postgresql>
824 # <Query magic>
825 # Statement "SELECT magic FROM wizard WHERE host = $1;"
826 # Param hostname
827 # <Result>
828 # Type gauge
829 # InstancePrefix "magic"
830 # ValuesFrom magic
831 # </Result>
832 # </Query>
833 # <Query rt36_tickets>
834 # Statement "SELECT COUNT(type) AS count, type \
835 # FROM (SELECT CASE \
836 # WHEN resolved = 'epoch' THEN 'open' \
837 # ELSE 'resolved' END AS type \
838 # FROM tickets) type \
839 # GROUP BY type;"
840 # <Result>
841 # Type counter
842 # InstancePrefix "rt36_tickets"
843 # InstancesFrom "type"
844 # ValuesFrom "count"
845 # </Result>
846 # </Query>
847 # <Writer sqlstore>
848 # # See contrib/postgresql/collectd_insert.sql for details
849 # Statement "SELECT collectd_insert($1, $2, $3, $4, $5, $6, $7, $8, $9);"
850 # StoreRates true
851 # </Writer>
852 # <Database foo>
853 # Host "hostname"
854 # Port "5432"
855 # User "username"
856 # Password "secret"
857 # SSLMode "prefer"
858 # KRBSrvName "kerberos_service_name"
859 # Query magic
860 # </Database>
861 # <Database bar>
862 # Interval 60
863 # Service "service_name"
864 # Query backend # predefined
865 # Query rt36_tickets
866 # </Database>
867 # <Database qux>
868 # Service "collectd_store"
869 # Writer sqlstore
870 # # see collectd.conf(5) for details
871 # CommitInterval 30
872 # </Database>
873 #</Plugin>
875 #<Plugin powerdns>
876 # <Server "server_name">
877 # Collect "latency"
878 # Collect "udp-answers" "udp-queries"
879 # Socket "/var/run/pdns.controlsocket"
880 # </Server>
881 # <Recursor "recursor_name">
882 # Collect "questions"
883 # Collect "cache-hits" "cache-misses"
884 # Socket "/var/run/pdns_recursor.controlsocket"
885 # </Recursor>
886 # LocalSocket "/opt/collectd/var/run/collectd-powerdns"
887 #</Plugin>
889 #<Plugin processes>
890 # Process "name"
891 #</Plugin>
893 #<Plugin protocols>
894 # Value "/^Tcp:/"
895 # IgnoreSelected false
896 #</Plugin>
898 #<Plugin python>
899 # ModulePath "/path/to/your/python/modules"
900 # LogTraces true
901 # Interactive true
902 # Import "spam"
903 #
904 # <Module spam>
905 # spam "wonderful" "lovely"
906 # </Module>
907 #</Plugin>
909 #<Plugin redis>
910 # <Node example>
911 # Host "redis.example.com"
912 # Port "6379"
913 # Timeout 2000
914 # </Node>
915 #</Plugin>
917 #<Plugin routeros>
918 # <Router>
919 # Host "router.example.com"
920 # Port "8728"
921 # User "admin"
922 # Password "dozaiTh4"
923 # CollectInterface true
924 # CollectRegistrationTable true
925 # CollectCPULoad true
926 # CollectMemory true
927 # CollectDF true
928 # CollectDisk true
929 # </Router>
930 #</Plugin>
932 #<Plugin rrdcached>
933 # DaemonAddress "unix:/tmp/rrdcached.sock"
934 # DataDir "@localstatedir@/lib/@PACKAGE_NAME@/rrd"
935 # CreateFiles true
936 # CreateFilesAsync false
937 # CollectStatistics true
938 #</Plugin>
940 #<Plugin rrdtool>
941 # DataDir "@localstatedir@/lib/@PACKAGE_NAME@/rrd"
942 # CreateFilesAsync false
943 # CacheTimeout 120
944 # CacheFlush 900
945 # WritesPerSecond 50
946 #</Plugin>
948 #<Plugin sensors>
949 # SensorConfigFile "/etc/sensors.conf"
950 # Sensor "it8712-isa-0290/temperature-temp1"
951 # Sensor "it8712-isa-0290/fanspeed-fan3"
952 # Sensor "it8712-isa-0290/voltage-in8"
953 # IgnoreSelected false
954 #</Plugin>
956 #<Plugin sigrok>
957 # LogLevel 3
958 # <Device "AC Voltage">
959 # Driver "fluke-dmm"
960 # MinimumInterval 10
961 # Conn "/dev/ttyUSB2"
962 # </Device>
963 # <Device "Sound Level">
964 # Driver "cem-dt-885x"
965 # Conn "/dev/ttyUSB1"
966 # </Device>
967 #</Plugin>
969 #<Plugin snmp>
970 # <Data "powerplus_voltge_input">
971 # Type "voltage"
972 # Table false
973 # Instance "input_line1"
974 # Values "SNMPv2-SMI::enterprises.6050.5.4.1.1.2.1"
975 # </Data>
976 # <Data "hr_users">
977 # Type "users"
978 # Table false
979 # Instance ""
980 # Values "HOST-RESOURCES-MIB::hrSystemNumUsers.0"
981 # </Data>
982 # <Data "std_traffic">
983 # Type "if_octets"
984 # Table true
985 # Instance "IF-MIB::ifDescr"
986 # Values "IF-MIB::ifInOctets" "IF-MIB::ifOutOctets"
987 # </Data>
988 #
989 # <Host "some.switch.mydomain.org">
990 # Address "192.168.0.2"
991 # Version 1
992 # Community "community_string"
993 # Collect "std_traffic"
994 # Interval 120
995 # </Host>
996 # <Host "some.server.mydomain.org">
997 # Address "192.168.0.42"
998 # Version 2
999 # Community "another_string"
1000 # Collect "std_traffic" "hr_users"
1001 # </Host>
1002 # <Host "some.ups.mydomain.org">
1003 # Address "192.168.0.3"
1004 # Version 1
1005 # Community "more_communities"
1006 # Collect "powerplus_voltge_input"
1007 # Interval 300
1008 # </Host>
1009 #</Plugin>
1011 #<Plugin statsd>
1012 # Host "::"
1013 # Port "8125"
1014 # DeleteCounters false
1015 # DeleteTimers false
1016 # DeleteGauges false
1017 # DeleteSets false
1018 # TimerPercentile 90.0
1019 #</Plugin>
1021 #<Plugin swap>
1022 # ReportByDevice false
1023 # ReportBytes true
1024 # ValuesAbsolute true
1025 # ValuesPercentage false
1026 #</Plugin>
1028 #<Plugin table>
1029 # <Table "/proc/slabinfo">
1030 # Instance "slabinfo"
1031 # Separator " "
1032 # <Result>
1033 # Type gauge
1034 # InstancePrefix "active_objs"
1035 # InstancesFrom 0
1036 # ValuesFrom 1
1037 # </Result>
1038 # <Result>
1039 # Type gauge
1040 # InstancePrefix "objperslab"
1041 # InstancesFrom 0
1042 # ValuesFrom 4
1043 # </Result>
1044 # </Table>
1045 #</Plugin>
1047 #<Plugin tail>
1048 # <File "/var/log/exim4/mainlog">
1049 # Instance "exim"
1050 # Interval 60
1051 # <Match>
1052 # Regex "S=([1-9][0-9]*)"
1053 # DSType "CounterAdd"
1054 # Type "ipt_bytes"
1055 # Instance "total"
1056 # </Match>
1057 # <Match>
1058 # Regex "\\<R=local_user\\>"
1059 # ExcludeRegex "\\<R=local_user\\>.*mail_spool defer"
1060 # DSType "CounterInc"
1061 # Type "counter"
1062 # Instance "local_user"
1063 # </Match>
1064 # </File>
1065 #</Plugin>
1067 #<Plugin tail_csv>
1068 # <Metric "dropped">
1069 # Type "percent"
1070 # Instance "dropped"
1071 # ValueFrom 1
1072 # </Metric>
1073 # <Metric "mbps">
1074 # Type "bytes"
1075 # Instance "wire-realtime"
1076 # ValueFrom 2
1077 # </Metric>
1078 # <Metric "alerts">
1079 # Type "alerts_per_second"
1080 # ValueFrom 3
1081 # </Metric>
1082 # <Metric "kpps">
1083 # Type "kpackets_wire_per_sec.realtime"
1084 # ValueFrom 4
1085 # </Metric>
1086 # <File "/var/log/snort/snort.stats">
1087 # Instance "snort-eth0"
1088 # Interval 600
1089 # Collect "dropped" "mbps" "alerts" "kpps"
1090 # TimeFrom 0
1091 # </File>
1092 #</Plugin>
1094 #<Plugin tcpconns>
1095 # ListeningPorts false
1096 # LocalPort "25"
1097 # RemotePort "25"
1098 #</Plugin>
1100 #<Plugin teamspeak2>
1101 # Host "127.0.0.1"
1102 # Port "51234"
1103 # Server "8767"
1104 #</Plugin>
1106 #<Plugin ted>
1107 # Device "/dev/ttyUSB0"
1108 # Retries 0
1109 #</Plugin>
1111 #<Plugin thermal>
1112 # ForceUseProcfs false
1113 # Device "THRM"
1114 # IgnoreSelected false
1115 #</Plugin>
1117 #<Plugin tokyotyrant>
1118 # Host "localhost"
1119 # Port "1978"
1120 #</Plugin>
1122 #<Plugin unixsock>
1123 # SocketFile "@prefix@/var/run/@PACKAGE_NAME@-unixsock"
1124 # SocketGroup "collectd"
1125 # SocketPerms "0660"
1126 # DeleteSocket false
1127 #</Plugin>
1129 #<Plugin uuid>
1130 # UUIDFile "/etc/uuid"
1131 #</Plugin>
1133 #<Plugin mic>
1134 # ShowCPU true
1135 # ShowCPUCores true
1136 # ShowMemory true
1137 # ShowTemperatures true
1138 ## Temperature Sensors can be ignored/shown by repeated #Temperature lines, and
1139 ## then inverted with a IgnoreSelectedTemperature.
1140 ## Known Temperature sensors: die, devmem, fin, fout, vccp, vddg, vddq
1141 # Temperature vddg
1142 # IgnoreSelectedTemperature true
1143 # ShowPower true
1144 ## Power Sensors can be ignored/shown by repeated #Power lines, and
1145 ## then inverted with a IgnoreSelectedTemperature.
1146 ## Known Temperature sensors: total0, total1, inst, imax, pci3, c2x3, c2x4, vccp, vddg, vddq
1147 # Power total1
1148 # IgnoreSelectedPower true
1149 #</Plugin>
1151 #<Plugin varnish>
1152 # This tag support an argument if you want to
1153 # monitor the local instance just use </Instance>
1154 # If you prefer defining another instance you can do
1155 # so by using <Instance "myinstance">
1156 # <Instance>
1157 # CollectCache true
1158 # CollectBackend true
1159 # CollectBan false # Varnish 3 only
1160 # CollectConnections true
1161 # CollectDirectorDNS false # Varnish 3 only
1162 # CollectSHM true
1163 # CollectESI false
1164 # CollectFetch false
1165 # CollectHCB false
1166 # CollectObjects false
1167 # CollectPurge false # Varnish 2 only
1168 # CollectSession false
1169 # CollectSMA false # Varnish 2 only
1170 # CollectSMS false
1171 # CollectSM false # Varnish 2 only
1172 # CollectStruct false
1173 # CollectTotals false
1174 # CollectUptime false
1175 # CollectVCL false
1176 # CollectWorkers false
1177 # </Instance>
1178 #</Plugin>
1180 #<Plugin vmem>
1181 # Verbose false
1182 #</Plugin>
1184 #<Plugin write_graphite>
1185 # <Node "example">
1186 # Host "localhost"
1187 # Port "2003"
1188 # Protocol "tcp"
1189 # LogSendErrors true
1190 # Prefix "collectd"
1191 # Postfix "collectd"
1192 # StoreRates true
1193 # AlwaysAppendDS false
1194 # EscapeCharacter "_"
1195 # </Node>
1196 #</Plugin>
1198 #<Plugin write_http>
1199 # <URL "http://example.com/collectd-post">
1200 # User "collectd"
1201 # Password "weCh3ik0"
1202 # VerifyPeer true
1203 # VerifyHost true
1204 # CACert "/etc/ssl/ca.crt"
1205 # CAPath "/etc/ssl/certs/"
1206 # ClientKey "/etc/ssl/client.pem"
1207 # ClientCert "/etc/ssl/client.crt"
1208 # ClientKeyPass "secret"
1209 # SSLVersion "TLSv1"
1210 # Format "Command"
1211 # StoreRates false
1212 # </URL>
1213 #</Plugin>
1215 #<Plugin write_kafka>
1216 # Property "metadata.broker.list" "localhost:9092"
1217 # <Topic "collectd">
1218 # Format JSON
1219 # </Topic>
1220 #</Plugin>
1222 #<Plugin write_mongodb>
1223 # <Node "example">
1224 # Host "localhost"
1225 # Port "27017"
1226 # Timeout 1000
1227 # StoreRates false
1228 # Database "auth_db"
1229 # User "auth_user"
1230 # Password "auth_passwd"
1231 # </Node>
1232 #</Plugin>
1234 #<Plugin write_redis>
1235 # <Node "example">
1236 # Host "localhost"
1237 # Port "6379"
1238 # Timeout 1000
1239 # </Node>
1240 #</Plugin>
1242 #<Plugin write_riemann>
1243 # <Node "example">
1244 # Host "localhost"
1245 # Port 5555
1246 # Protocol UDP
1247 # StoreRates true
1248 # AlwaysAppendDS false
1249 # TTLFactor 2.0
1250 # </Node>
1251 # Tag "foobar"
1252 # Attribute "foo" "bar"
1253 #</Plugin>
1255 ##############################################################################
1256 # Filter configuration #
1257 #----------------------------------------------------------------------------#
1258 # The following configures collectd's filtering mechanism. Before changing #
1259 # anything in this section, please read the `FILTER CONFIGURATION' section #
1260 # in the collectd.conf(5) manual page. #
1261 ##############################################################################
1263 # Load required matches:
1264 #@BUILD_PLUGIN_MATCH_EMPTY_COUNTER_TRUE@LoadPlugin match_empty_counter
1265 #@BUILD_PLUGIN_MATCH_HASHED_TRUE@LoadPlugin match_hashed
1266 #@BUILD_PLUGIN_MATCH_REGEX_TRUE@LoadPlugin match_regex
1267 #@BUILD_PLUGIN_MATCH_VALUE_TRUE@LoadPlugin match_value
1268 #@BUILD_PLUGIN_MATCH_TIMEDIFF_TRUE@LoadPlugin match_timediff
1270 # Load required targets:
1271 #@BUILD_PLUGIN_TARGET_NOTIFICATION_TRUE@LoadPlugin target_notification
1272 #@BUILD_PLUGIN_TARGET_REPLACE_TRUE@LoadPlugin target_replace
1273 #@BUILD_PLUGIN_TARGET_SCALE_TRUE@LoadPlugin target_scale
1274 #@BUILD_PLUGIN_TARGET_SET_TRUE@LoadPlugin target_set
1275 #@BUILD_PLUGIN_TARGET_V5UPGRADE_TRUE@LoadPlugin target_v5upgrade
1277 #----------------------------------------------------------------------------#
1278 # The following block demonstrates the default behavior if no filtering is #
1279 # configured at all: All values will be sent to all available write plugins. #
1280 #----------------------------------------------------------------------------#
1282 #<Chain "PostCache">
1283 # Target "write"
1284 #</Chain>
1286 ##############################################################################
1287 # Threshold configuration #
1288 #----------------------------------------------------------------------------#
1289 # The following outlines how to configure collectd's threshold checking #
1290 # plugin. The plugin and possible configuration options are documented in #
1291 # the collectd-threshold(5) manual page. #
1292 ##############################################################################
1294 #@BUILD_PLUGIN_THRESHOLD_TRUE@LoadPlugin "threshold"
1295 #<Plugin threshold>
1296 # <Type "foo">
1297 # WarningMin 0.00
1298 # WarningMax 1000.00
1299 # FailureMin 0.00
1300 # FailureMax 1200.00
1301 # Invert false
1302 # Instance "bar"
1303 # </Type>
1304 #
1305 # <Plugin "interface">
1306 # Instance "eth0"
1307 # <Type "if_octets">
1308 # FailureMax 10000000
1309 # DataSource "rx"
1310 # </Type>
1311 # </Plugin>
1312 #
1313 # <Host "hostname">
1314 # <Type "cpu">
1315 # Instance "idle"
1316 # FailureMin 10
1317 # </Type>
1318 #
1319 # <Plugin "memory">
1320 # <Type "memory">
1321 # Instance "cached"
1322 # WarningMin 100000000
1323 # </Type>
1324 # </Plugin>
1325 #
1326 # <Type "load">
1327 # DataSource "midterm"
1328 # FailureMax 4
1329 # Hits 3
1330 # Hysteresis 3
1331 # </Type>
1332 # </Host>
1333 #</Plugin>