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