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