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