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