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