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