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 # Interval at which to query values. This may be overwritten on a per-plugin #
22 # base by using the 'Interval' option of the LoadPlugin block: #
23 # <LoadPlugin foo> #
24 # Interval 60 #
25 # </LoadPlugin> #
26 #----------------------------------------------------------------------------#
27 #Interval 10
29 #Timeout 2
30 #ReadThreads 5
31 #WriteThreads 5
33 ##############################################################################
34 # Logging #
35 #----------------------------------------------------------------------------#
36 # Plugins which provide logging functions should be loaded first, so log #
37 # messages generated when loading or configuring other plugins can be #
38 # accessed. #
39 ##############################################################################
41 @LOAD_PLUGIN_SYSLOG@LoadPlugin syslog
42 @LOAD_PLUGIN_LOGFILE@LoadPlugin logfile
44 #<Plugin logfile>
45 # LogLevel @DEFAULT_LOG_LEVEL@
46 # File STDOUT
47 # Timestamp true
48 # PrintSeverity false
49 #</Plugin>
51 #<Plugin syslog>
52 # LogLevel @DEFAULT_LOG_LEVEL@
53 #</Plugin>
55 ##############################################################################
56 # LoadPlugin section #
57 #----------------------------------------------------------------------------#
58 # Lines beginning with a single `#' belong to plugins which have been built #
59 # but are disabled by default. #
60 # #
61 # Lines begnning with `##' belong to plugins which have not been built due #
62 # to missing dependencies or because they have been deactivated explicitly. #
63 ##############################################################################
65 #@BUILD_PLUGIN_AGGREGATION_TRUE@LoadPlugin aggregation
66 #@BUILD_PLUGIN_AMQP_TRUE@LoadPlugin amqp
67 #@BUILD_PLUGIN_APACHE_TRUE@LoadPlugin apache
68 #@BUILD_PLUGIN_APCUPS_TRUE@LoadPlugin apcups
69 #@BUILD_PLUGIN_APPLE_SENSORS_TRUE@LoadPlugin apple_sensors
70 #@BUILD_PLUGIN_ASCENT_TRUE@LoadPlugin ascent
71 #@BUILD_PLUGIN_BATTERY_TRUE@LoadPlugin battery
72 #@BUILD_PLUGIN_BIND_TRUE@LoadPlugin bind
73 #@BUILD_PLUGIN_CONNTRACK_TRUE@LoadPlugin conntrack
74 #@BUILD_PLUGIN_CONTEXTSWITCH_TRUE@LoadPlugin contextswitch
75 @BUILD_PLUGIN_CPU_TRUE@@BUILD_PLUGIN_CPU_TRUE@LoadPlugin cpu
76 #@BUILD_PLUGIN_CPUFREQ_TRUE@LoadPlugin cpufreq
77 @LOAD_PLUGIN_CSV@LoadPlugin csv
78 #@BUILD_PLUGIN_CURL_TRUE@LoadPlugin curl
79 #@BUILD_PLUGIN_CURL_JSON_TRUE@LoadPlugin curl_json
80 #@BUILD_PLUGIN_CURL_XML_TRUE@LoadPlugin curl_xml
81 #@BUILD_PLUGIN_DBI_TRUE@LoadPlugin dbi
82 #@BUILD_PLUGIN_DF_TRUE@LoadPlugin df
83 #@BUILD_PLUGIN_DISK_TRUE@LoadPlugin disk
84 #@BUILD_PLUGIN_DNS_TRUE@LoadPlugin dns
85 #@BUILD_PLUGIN_EMAIL_TRUE@LoadPlugin email
86 #@BUILD_PLUGIN_ENTROPY_TRUE@LoadPlugin entropy
87 #@BUILD_PLUGIN_ETHSTAT_TRUE@LoadPlugin ethstat
88 #@BUILD_PLUGIN_EXEC_TRUE@LoadPlugin exec
89 #@BUILD_PLUGIN_FILECOUNT_TRUE@LoadPlugin filecount
90 #@BUILD_PLUGIN_FSCACHE_TRUE@LoadPlugin fscache
91 #@BUILD_PLUGIN_GMOND_TRUE@LoadPlugin gmond
92 #@BUILD_PLUGIN_HDDTEMP_TRUE@LoadPlugin hddtemp
93 @BUILD_PLUGIN_INTERFACE_TRUE@@BUILD_PLUGIN_INTERFACE_TRUE@LoadPlugin interface
94 #@BUILD_PLUGIN_IPTABLES_TRUE@LoadPlugin iptables
95 #@BUILD_PLUGIN_IPMI_TRUE@LoadPlugin ipmi
96 #@BUILD_PLUGIN_IPVS_TRUE@LoadPlugin ipvs
97 #@BUILD_PLUGIN_IRQ_TRUE@LoadPlugin irq
98 #@BUILD_PLUGIN_JAVA_TRUE@LoadPlugin java
99 #@BUILD_PLUGIN_LIBVIRT_TRUE@LoadPlugin libvirt
100 @BUILD_PLUGIN_LOAD_TRUE@@BUILD_PLUGIN_LOAD_TRUE@LoadPlugin load
101 #@BUILD_PLUGIN_LPAR_TRUE@LoadPlugin lpar
102 #@BUILD_PLUGIN_MADWIFI_TRUE@LoadPlugin madwifi
103 #@BUILD_PLUGIN_MBMON_TRUE@LoadPlugin mbmon
104 #@BUILD_PLUGIN_MD_TRUE@LoadPlugin md
105 #@BUILD_PLUGIN_MEMCACHEC_TRUE@LoadPlugin memcachec
106 #@BUILD_PLUGIN_MEMCACHED_TRUE@LoadPlugin memcached
107 @BUILD_PLUGIN_MEMORY_TRUE@@BUILD_PLUGIN_MEMORY_TRUE@LoadPlugin memory
108 #@BUILD_PLUGIN_MODBUS_TRUE@LoadPlugin modbus
109 #@BUILD_PLUGIN_MULTIMETER_TRUE@LoadPlugin multimeter
110 #@BUILD_PLUGIN_MYSQL_TRUE@LoadPlugin mysql
111 #@BUILD_PLUGIN_NETAPP_TRUE@LoadPlugin netapp
112 #@BUILD_PLUGIN_NETLINK_TRUE@LoadPlugin netlink
113 @LOAD_PLUGIN_NETWORK@LoadPlugin network
114 #@BUILD_PLUGIN_NFS_TRUE@LoadPlugin nfs
115 #@BUILD_PLUGIN_NGINX_TRUE@LoadPlugin nginx
116 #@BUILD_PLUGIN_NOTIFY_DESKTOP_TRUE@LoadPlugin notify_desktop
117 #@BUILD_PLUGIN_NOTIFY_EMAIL_TRUE@LoadPlugin notify_email
118 #@BUILD_PLUGIN_NTPD_TRUE@LoadPlugin ntpd
119 #@BUILD_PLUGIN_NUMA_TRUE@LoadPlugin numa
120 #@BUILD_PLUGIN_NUT_TRUE@LoadPlugin nut
121 #@BUILD_PLUGIN_OLSRD_TRUE@LoadPlugin olsrd
122 #@BUILD_PLUGIN_ONEWIRE_TRUE@LoadPlugin onewire
123 #@BUILD_PLUGIN_OPENVPN_TRUE@LoadPlugin openvpn
124 #@BUILD_PLUGIN_ORACLE_TRUE@LoadPlugin oracle
125 #@BUILD_PLUGIN_PERL_TRUE@<LoadPlugin perl>
126 #@BUILD_PLUGIN_PERL_TRUE@ Globals true
127 #@BUILD_PLUGIN_PERL_TRUE@</LoadPlugin>
128 #@BUILD_PLUGIN_PINBA_TRUE@LoadPlugin pinba
129 #@BUILD_PLUGIN_PING_TRUE@LoadPlugin ping
130 #@BUILD_PLUGIN_POSTGRESQL_TRUE@LoadPlugin postgresql
131 #@BUILD_PLUGIN_POWERDNS_TRUE@LoadPlugin powerdns
132 #@BUILD_PLUGIN_PROCESSES_TRUE@LoadPlugin processes
133 #@BUILD_PLUGIN_PROTOCOLS_TRUE@LoadPlugin protocols
134 #@BUILD_PLUGIN_PYTHON_TRUE@<LoadPlugin python>
135 #@BUILD_PLUGIN_PYTHON_TRUE@ Globals true
136 #@BUILD_PLUGIN_PYTHON_TRUE@</LoadPlugin>
137 #@BUILD_PLUGIN_REDIS_TRUE@LoadPlugin redis
138 #@BUILD_PLUGIN_ROUTEROS_TRUE@LoadPlugin routeros
139 #@BUILD_PLUGIN_RRDCACHED_TRUE@LoadPlugin rrdcached
140 @LOAD_PLUGIN_RRDTOOL@LoadPlugin rrdtool
141 #@BUILD_PLUGIN_SENSORS_TRUE@LoadPlugin sensors
142 #@BUILD_PLUGIN_SERIAL_TRUE@LoadPlugin serial
143 #@BUILD_PLUGIN_SNMP_TRUE@LoadPlugin snmp
144 #@BUILD_PLUGIN_SWAP_TRUE@LoadPlugin swap
145 #@BUILD_PLUGIN_TABLE_TRUE@LoadPlugin table
146 #@BUILD_PLUGIN_TAIL_TRUE@LoadPlugin tail
147 #@BUILD_PLUGIN_TAPE_TRUE@LoadPlugin tape
148 #@BUILD_PLUGIN_TCPCONNS_TRUE@LoadPlugin tcpconns
149 #@BUILD_PLUGIN_TEAMSPEAK2_TRUE@LoadPlugin teamspeak2
150 #@BUILD_PLUGIN_TED_TRUE@LoadPlugin ted
151 #@BUILD_PLUGIN_THERMAL_TRUE@LoadPlugin thermal
152 #@BUILD_PLUGIN_TOKYOTYRANT_TRUE@LoadPlugin tokyotyrant
153 #@BUILD_PLUGIN_UNIXSOCK_TRUE@LoadPlugin unixsock
154 #@BUILD_PLUGIN_UPTIME_TRUE@LoadPlugin uptime
155 #@BUILD_PLUGIN_USERS_TRUE@LoadPlugin users
156 #@BUILD_PLUGIN_UUID_TRUE@LoadPlugin uuid
157 #@BUILD_PLUGIN_VARNISH_TRUE@LoadPlugin varnish
158 #@BUILD_PLUGIN_VMEM_TRUE@LoadPlugin vmem
159 #@BUILD_PLUGIN_VSERVER_TRUE@LoadPlugin vserver
160 #@BUILD_PLUGIN_WIRELESS_TRUE@LoadPlugin wireless
161 #@BUILD_PLUGIN_WRITE_GRAPHITE_TRUE@LoadPlugin write_graphite
162 #@BUILD_PLUGIN_WRITE_HTTP_TRUE@LoadPlugin write_http
163 #@BUILD_PLUGIN_WRITE_MONGODB_TRUE@LoadPlugin write_mongodb
164 #@BUILD_PLUGIN_WRITE_REDIS_TRUE@LoadPlugin write_redis
165 #@BUILD_PLUGIN_WRITE_RIEMANN_TRUE@LoadPlugin write_riemann
166 #@BUILD_PLUGIN_XMMS_TRUE@LoadPlugin xmms
167 #@BUILD_PLUGIN_ZFS_ARC_TRUE@LoadPlugin zfs_arc
169 ##############################################################################
170 # Plugin configuration #
171 #----------------------------------------------------------------------------#
172 # In this section configuration stubs for each plugin are provided. A desc- #
173 # ription of those options is available in the collectd.conf(5) manual page. #
174 ##############################################################################
176 #<Plugin "aggregation">
177 # <Aggregation>
178 # #Host "unspecified"
179 # Plugin "cpu"
180 # #PluginInstance "unspecified"
181 # Type "cpu"
182 # #TypeInstance "unspecified"
183 #
184 # GroupBy "Host"
185 # GroupBy "TypeInstance"
186 #
187 # CalculateNum false
188 # CalculateSum false
189 # CalculateAverage true
190 # CalculateMinimum false
191 # CalculateMaximum false
192 # CalculateStddev false
193 # </Aggregation>
194 #</Plugin>
196 #<Plugin "amqp">
197 # <Publish "name">
198 # Host "localhost"
199 # Port "5672"
200 # VHost "/"
201 # User "guest"
202 # Password "guest"
203 # Exchange "amq.fanout"
204 # RoutingKey "collectd"
205 # Persistent false
206 # StoreRates false
207 # </Publish>
208 #</Plugin>
210 #<Plugin apache>
211 # <Instance "local">
212 # URL "http://localhost/status?auto"
213 # User "www-user"
214 # Password "secret"
215 # CACert "/etc/ssl/ca.crt"
216 # </Instance>
217 #</Plugin>
219 #<Plugin apcups>
220 # Host "localhost"
221 # Port "3551"
222 # ReportSeconds true
223 #</Plugin>
225 #<Plugin ascent>
226 # URL "http://localhost/ascent/status/"
227 # User "www-user"
228 # Password "secret"
229 # CACert "/etc/ssl/ca.crt"
230 #</Plugin>
232 #<Plugin "bind">
233 # URL "http://localhost:8053/"
234 # ParseTime false
235 # OpCodes true
236 # QTypes true
237 #
238 # ServerStats true
239 # ZoneMaintStats true
240 # ResolverStats false
241 # MemoryStats true
242 #
243 # <View "_default">
244 # QTypes true
245 # ResolverStats true
246 # CacheRRSets true
247 #
248 # Zone "127.in-addr.arpa/IN"
249 # </View>
250 #</Plugin>
252 #<Plugin csv>
253 # DataDir "@localstatedir@/lib/@PACKAGE_NAME@/csv"
254 # StoreRates false
255 #</Plugin>
257 #<Plugin curl>
258 # <Page "stock_quotes">
259 # URL "http://finance.google.com/finance?q=NYSE%3AAMD"
260 # User "foo"
261 # Password "bar"
262 # MeasureResponseTime false
263 # <Match>
264 # Regex "<span +class=\"pr\"[^>]*> *([0-9]*\\.[0-9]+) *</span>"
265 # DSType "GaugeAverage"
266 # Type "stock_value"
267 # Instance "AMD"
268 # </Match>
269 # </Page>
270 #</Plugin>
272 #<Plugin curl_json>
273 ## See: http://wiki.apache.org/couchdb/Runtime_Statistics
274 # <URL "http://localhost:5984/_stats">
275 # Instance "httpd"
276 # <Key "httpd/requests/count">
277 # Type "http_requests"
278 # </Key>
279 #
280 # <Key "httpd_request_methods/*/count">
281 # Type "http_request_methods"
282 # </Key>
283 #
284 # <Key "httpd_status_codes/*/count">
285 # Type "http_response_codes"
286 # </Key>
287 # </URL>
288 ## Database status metrics:
289 # <URL "http://localhost:5984/_all_dbs">
290 # Instance "dbs"
291 # <Key "*/doc_count">
292 # Type "gauge"
293 # </Key>
294 # <Key "*/doc_del_count">
295 # Type "counter"
296 # </Key>
297 # <Key "*/disk_size">
298 # Type "bytes"
299 # </Key>
300 # </URL>
301 #</Plugin>
303 #<Plugin "curl_xml">
304 # <URL "http://localhost/stats.xml">
305 # Host "my_host"
306 # Instance "some_instance"
307 # User "collectd"
308 # Password "thaiNg0I"
309 # VerifyPeer true
310 # VerifyHost true
311 # CACert "/path/to/ca.crt"
312 #
313 # <XPath "table[@id=\"magic_level\"]/tr">
314 # Type "magic_level"
315 # #InstancePrefix "prefix-"
316 # InstanceFrom "td[1]"
317 # ValuesFrom "td[2]/span[@class=\"level\"]"
318 # </XPath>
319 # </URL>
320 #</Plugin>
322 #<Plugin dbi>
323 # <Query "num_of_customers">
324 # Statement "SELECT 'customers' AS c_key, COUNT(*) AS c_value FROM customers_tbl"
325 # <Result>
326 # Type "gauge"
327 # InstancesFrom "c_key"
328 # ValuesFrom "c_value"
329 # </Result>
330 # </Query>
331 # <Database "customers_db">
332 # Driver "mysql"
333 # DriverOption "host" "localhost"
334 # DriverOption "username" "collectd"
335 # DriverOption "password" "AeXohy0O"
336 # DriverOption "dbname" "custdb0"
337 # #SelectDB "custdb0"
338 # Query "num_of_customers"
339 # #Query "..."
340 # #Host "..."
341 # </Database>
342 #</Plugin>
344 #<Plugin df>
345 # Device "/dev/hda1"
346 # Device "192.168.0.2:/mnt/nfs"
347 # MountPoint "/home"
348 # FSType "ext3"
349 # IgnoreSelected false
350 # ReportByDevice false
351 # ReportReserved false
352 # ReportInodes false
353 #</Plugin>
355 #<Plugin disk>
356 # Disk "/^[hs]d[a-f][0-9]?$/"
357 # IgnoreSelected false
358 #</Plugin>
360 #<Plugin dns>
361 # Interface "eth0"
362 # IgnoreSource "192.168.0.1"
363 # SelectNumericQueryTypes true
364 #</Plugin>
366 #<Plugin email>
367 # SocketFile "@localstatedir@/run/@PACKAGE_NAME@-email"
368 # SocketGroup "collectd"
369 # SocketPerms "0770"
370 # MaxConns 5
371 #</Plugin>
373 #<Plugin ethstat>
374 # Interface "eth0"
375 # Map "rx_csum_offload_errors" "if_rx_errors" "checksum_offload"
376 # Map "multicast" "if_multicast"
377 # MappedOnly false
378 #</Plugin>
380 #<Plugin exec>
381 # Exec "user:group" "/path/to/exec"
382 # NotificationExec "user:group" "/path/to/exec"
383 #</Plugin>
385 #<Plugin filecount>
386 # <Directory "/path/to/dir">
387 # Instance "foodir"
388 # Name "*.conf"
389 # MTime "-5m"
390 # Size "+10k"
391 # Recursive true
392 # IncludeHidden false
393 # </Directory>
394 #</Plugin>
396 #<Plugin "gmond">
397 # MCReceiveFrom "239.2.11.71" "8649"
398 # <Metric "swap_total">
399 # Type "swap"
400 # TypeInstance "total"
401 # DataSource "value"
402 # </Metric>
403 # <Metric "swap_free">
404 # Type "swap"
405 # TypeInstance "free"
406 # DataSource "value"
407 # </Metric>
408 #</Plugin>
410 #<Plugin hddtemp>
411 # Host "127.0.0.1"
412 # Port "7634"
413 #</Plugin>
415 #<Plugin interface>
416 # Interface "eth0"
417 # IgnoreSelected false
418 #</Plugin>
420 #<Plugin ipmi>
421 # Sensor "some_sensor"
422 # Sensor "another_one"
423 # IgnoreSelected false
424 # NotifySensorAdd false
425 # NotifySensorRemove true
426 # NotifySensorNotPresent false
427 #</Plugin>
429 #<Plugin iptables>
430 # Chain table chain
431 #</Plugin>
433 #<Plugin irq>
434 # Irq 7
435 # Irq 8
436 # Irq 9
437 # IgnoreSelected true
438 #</Plugin>
440 #<Plugin "java">
441 # JVMArg "-verbose:jni"
442 # JVMArg "-Djava.class.path=@prefix@/share/collectd/java/collectd-api.jar"
443 #
444 # LoadPlugin "org.collectd.java.Foobar"
445 # <Plugin "org.collectd.java.Foobar">
446 # # To be parsed by the plugin
447 # </Plugin>
448 #</Plugin>
450 #<Plugin libvirt>
451 # Connection "xen:///"
452 # RefreshInterval 60
453 # Domain "name"
454 # BlockDevice "name:device"
455 # InterfaceDevice "name:device"
456 # IgnoreSelected false
457 # HostnameFormat name
458 # InterfaceFormat name
459 #</Plugin>
461 #<Plugin lpar>
462 # CpuPoolStats false
463 # ReportBySerial false
464 #</Plugin>
466 #<Plugin madwifi>
467 # Interface "wlan0"
468 # IgnoreSelected false
469 # Source "SysFS"
470 # WatchSet "None"
471 # WatchAdd "node_octets"
472 # WatchAdd "node_rssi"
473 # WatchAdd "is_rx_acl"
474 # WatchAdd "is_scan_active"
475 #</Plugin>
477 #<Plugin mbmon>
478 # Host "127.0.0.1"
479 # Port "411"
480 #</Plugin>
482 #<Plugin md>
483 # Device "/dev/md0"
484 # IgnoreSelected false
485 #</Plugin>
487 #<Plugin memcachec>
488 # <Page "plugin_instance">
489 # Server "localhost"
490 # Key "page_key"
491 # <Match>
492 # Regex "(\\d+) bytes sent"
493 # ExcludeRegex "<lines to be excluded>"
494 # DSType CounterAdd
495 # Type "ipt_octets"
496 # Instance "type_instance"
497 # </Match>
498 # </Page>
499 #</Plugin>
501 #<Plugin memcached>
502 # <Instance "local">
503 # Host "127.0.0.1"
504 # Port "11211"
505 # </Instance>
506 #</Plugin>
508 #<Plugin modbus>
509 # <Data "data_name">
510 # RegisterBase 1234
511 # RegisterType float
512 # Type gauge
513 # Instance "..."
514 # </Data>
515 #
516 # <Host "name">
517 # Address "addr"
518 # Port "1234"
519 # Interval 60
520 #
521 # <Slave 1>
522 # Instance "foobar" # optional
523 # Collect "data_name"
524 # </Slave>
525 # </Host>
526 #</Plugin>
528 #<Plugin mysql>
529 # <Database db_name>
530 # Host "database.serv.er"
531 # User "db_user"
532 # Password "secret"
533 # Database "db_name"
534 # MasterStats true
535 # </Database>
536 #
537 # <Database db_name2>
538 # Host "localhost"
539 # Socket "/var/run/mysql/mysqld.sock"
540 # SlaveStats true
541 # SlaveNotifications true
542 # </Database>
543 #</Plugin>
545 #<Plugin netapp>
546 # <Host "netapp1.example.com">
547 # Protocol "https"
548 # Address "10.0.0.1"
549 # Port 443
550 # User "username"
551 # Password "aef4Aebe"
552 # Interval 30
553 #
554 # <WAFL>
555 # Interval 30
556 # GetNameCache true
557 # GetDirCache true
558 # GetBufferCache true
559 # GetInodeCache true
560 # </WAFL>
561 #
562 # <Disks>
563 # Interval 30
564 # GetBusy true
565 # </Disks>
566 #
567 # <VolumePerf>
568 # Interval 30
569 # GetIO "volume0"
570 # IgnoreSelectedIO false
571 # GetOps "volume0"
572 # IgnoreSelectedOps false
573 # GetLatency "volume0"
574 # IgnoreSelectedLatency false
575 # </VolumePerf>
576 #
577 # <VolumeUsage>
578 # Interval 30
579 # GetCapacity "vol0"
580 # GetCapacity "vol1"
581 # IgnoreSelectedCapacity false
582 # GetSnapshot "vol1"
583 # GetSnapshot "vol3"
584 # IgnoreSelectedSnapshot false
585 # </VolumeUsage>
586 #
587 # <System>
588 # Interval 30
589 # GetCPULoad true
590 # GetInterfaces true
591 # GetDiskOps true
592 # GetDiskIO true
593 # </System>
594 # </Host>
595 #</Plugin>
597 #<Plugin netlink>
598 # Interface "All"
599 # VerboseInterface "All"
600 # QDisc "eth0" "pfifo_fast-1:0"
601 # Class "ppp0" "htb-1:10"
602 # Filter "ppp0" "u32-1:0"
603 # IgnoreSelected false
604 #</Plugin>
606 @LOAD_PLUGIN_NETWORK@<Plugin network>
607 # # client setup:
608 @LOAD_PLUGIN_NETWORK@ Server "ff18::efc0:4a42" "25826"
609 @LOAD_PLUGIN_NETWORK@ <Server "239.192.74.66" "25826">
610 # SecurityLevel Encrypt
611 # Username "user"
612 # Password "secret"
613 # Interface "eth0"
614 @LOAD_PLUGIN_NETWORK@ </Server>
615 # TimeToLive "128"
616 #
617 # # server setup:
618 # Listen "ff18::efc0:4a42" "25826"
619 # <Listen "239.192.74.66" "25826">
620 # SecurityLevel Sign
621 # AuthFile "/etc/collectd/passwd"
622 # Interface "eth0"
623 # </Listen>
624 # MaxPacketSize 1024
625 #
626 # # proxy setup (client and server as above):
627 # Forward true
628 #
629 # # statistics about the network plugin itself
630 # ReportStats false
631 #
632 # # "garbage collection"
633 # CacheFlush 1800
634 @LOAD_PLUGIN_NETWORK@</Plugin>
636 #<Plugin nginx>
637 # URL "http://localhost/status?auto"
638 # User "www-user"
639 # Password "secret"
640 # CACert "/etc/ssl/ca.crt"
641 #</Plugin>
643 #<Plugin notify_desktop>
644 # OkayTimeout 1000
645 # WarningTimeout 5000
646 # FailureTimeout 0
647 #</Plugin>
649 #<Plugin notify_email>
650 # SMTPServer "localhost"
651 # SMTPPort 25
652 # SMTPUser "my-username"
653 # SMTPPassword "my-password"
654 # From "collectd@main0server.com"
655 # # <WARNING/FAILURE/OK> on <hostname>. beware! do not use not more than two %s in this string!!!
656 # Subject "Aaaaaa!! %s on %s!!!!!"
657 # Recipient "email1@domain1.net"
658 # Recipient "email2@domain2.com"
659 #</Plugin>
661 #<Plugin ntpd>
662 # Host "localhost"
663 # Port 123
664 # ReverseLookups false
665 # IncludeUnitID true
666 #</Plugin>
668 #<Plugin nut>
669 # UPS "upsname@hostname:port"
670 #</Plugin>
672 #<Plugin olsrd>
673 # Host "127.0.0.1"
674 # Port "2006"
675 # CollectLinks "Summary"
676 # CollectRoutes "Summary"
677 # CollectTopology "Summary"
678 #</Plugin>
680 #<Plugin onewire>
681 # Device "-s localhost:4304"
682 # Sensor "F10FCA000800"
683 # IgnoreSelected false
684 #</Plugin>
686 #<Plugin openvpn>
687 # StatusFile "/etc/openvpn/openvpn-status.log"
688 # ImprovedNamingSchema false
689 # CollectCompression true
690 # CollectIndividualUsers true
691 # CollectUserCount false
692 #</Plugin>
694 #<Plugin oracle>
695 # <Query "out_of_stock">
696 # Statement "SELECT category, COUNT(*) AS value FROM products WHERE in_stock = 0 GROUP BY category"
697 # <Result>
698 # Type "gauge"
699 # InstancesFrom "category"
700 # ValuesFrom "value"
701 # </Result>
702 # </Query>
703 # <Database "product_information">
704 # ConnectID "db01"
705 # Username "oracle"
706 # Password "secret"
707 # Query "out_of_stock"
708 # </Database>
709 #</Plugin>
711 #<Plugin perl>
712 # IncludeDir "/my/include/path"
713 # BaseName "Collectd::Plugins"
714 # EnableDebugger ""
715 # LoadPlugin Monitorus
716 # LoadPlugin OpenVZ
717 #
718 # <Plugin foo>
719 # Foo "Bar"
720 # Qux "Baz"
721 # </Plugin>
722 #</Plugin>
724 #<Plugin pinba>
725 # Address "::0"
726 # Port "30002"
727 # <View "name">
728 # Host "host name"
729 # Server "server name"
730 # Script "script name"
731 # </View>
732 #</Plugin>
734 #<Plugin ping>
735 # Host "host.foo.bar"
736 # Interval 1.0
737 # Timeout 0.9
738 # TTL 255
739 # SourceAddress "1.2.3.4"
740 # Device "eth0"
741 # MaxMissed -1
742 #</Plugin>
744 #<Plugin postgresql>
745 # <Query magic>
746 # Statement "SELECT magic FROM wizard WHERE host = $1;"
747 # Param hostname
748 # <Result>
749 # Type gauge
750 # InstancePrefix "magic"
751 # ValuesFrom magic
752 # </Result>
753 # </Query>
754 # <Query rt36_tickets>
755 # Statement "SELECT COUNT(type) AS count, type \
756 # FROM (SELECT CASE \
757 # WHEN resolved = 'epoch' THEN 'open' \
758 # ELSE 'resolved' END AS type \
759 # FROM tickets) type \
760 # GROUP BY type;"
761 # <Result>
762 # Type counter
763 # InstancePrefix "rt36_tickets"
764 # InstancesFrom "type"
765 # ValuesFrom "count"
766 # </Result>
767 # </Query>
768 # <Writer sqlstore>
769 # # See contrib/postgresql/collectd_insert.sql for details
770 # Statement "SELECT collectd_insert($1, $2, $3, $4, $5, $6, $7, $8, $9);"
771 # StoreRates true
772 # </Writer>
773 # <Database foo>
774 # Host "hostname"
775 # Port "5432"
776 # User "username"
777 # Password "secret"
778 # SSLMode "prefer"
779 # KRBSrvName "kerberos_service_name"
780 # Query magic
781 # </Database>
782 # <Database bar>
783 # Interval 60
784 # Service "service_name"
785 # Query backend # predefined
786 # Query rt36_tickets
787 # </Database>
788 # <Database qux>
789 # Service "collectd_store"
790 # Writer sqlstore
791 # # see collectd.conf(5) for details
792 # CommitInterval 30
793 # </Database>
794 #</Plugin>
796 #<Plugin powerdns>
797 # <Server "server_name">
798 # Collect "latency"
799 # Collect "udp-answers" "udp-queries"
800 # Socket "/var/run/pdns.controlsocket"
801 # </Server>
802 # <Recursor "recursor_name">
803 # Collect "questions"
804 # Collect "cache-hits" "cache-misses"
805 # Socket "/var/run/pdns_recursor.controlsocket"
806 # </Recursor>
807 # LocalSocket "/opt/collectd/var/run/collectd-powerdns"
808 #</Plugin>
810 #<Plugin processes>
811 # Process "name"
812 #</Plugin>
814 #<Plugin protocols>
815 # Value "/^Tcp:/"
816 # IgnoreSelected false
817 #</Plugin>
819 #<Plugin python>
820 # ModulePath "/path/to/your/python/modules"
821 # LogTraces true
822 # Interactive true
823 # Import "spam"
824 #
825 # <Module spam>
826 # spam "wonderful" "lovely"
827 # </Module>
828 #</Plugin>
830 #<Plugin redis>
831 # <Node example>
832 # Host "redis.example.com"
833 # Port "6379"
834 # Timeout 2000
835 # </Node>
836 #</Plugin>
838 #<Plugin routeros>
839 # <Router>
840 # Host "router.example.com"
841 # Port "8728"
842 # User "admin"
843 # Password "dozaiTh4"
844 # CollectInterface true
845 # CollectRegistrationTable true
846 # CollectCPULoad true
847 # CollectMemory true
848 # CollectDF true
849 # CollectDisk true
850 # </Router>
851 #</Plugin>
853 #<Plugin rrdcached>
854 # DaemonAddress "unix:/tmp/rrdcached.sock"
855 # DataDir "@localstatedir@/lib/@PACKAGE_NAME@/rrd"
856 # CreateFiles true
857 # CreateFilesAsync false
858 # CollectStatistics true
859 #</Plugin>
861 #<Plugin rrdtool>
862 # DataDir "@localstatedir@/lib/@PACKAGE_NAME@/rrd"
863 # CreateFilesAsync false
864 # CacheTimeout 120
865 # CacheFlush 900
866 # WritesPerSecond 50
867 #</Plugin>
869 #<Plugin sensors>
870 # SensorConfigFile "/etc/sensors.conf"
871 # Sensor "it8712-isa-0290/temperature-temp1"
872 # Sensor "it8712-isa-0290/fanspeed-fan3"
873 # Sensor "it8712-isa-0290/voltage-in8"
874 # IgnoreSelected false
875 #</Plugin>
877 #<Plugin snmp>
878 # <Data "powerplus_voltge_input">
879 # Type "voltage"
880 # Table false
881 # Instance "input_line1"
882 # Values "SNMPv2-SMI::enterprises.6050.5.4.1.1.2.1"
883 # </Data>
884 # <Data "hr_users">
885 # Type "users"
886 # Table false
887 # Instance ""
888 # Values "HOST-RESOURCES-MIB::hrSystemNumUsers.0"
889 # </Data>
890 # <Data "std_traffic">
891 # Type "if_octets"
892 # Table true
893 # Instance "IF-MIB::ifDescr"
894 # Values "IF-MIB::ifInOctets" "IF-MIB::ifOutOctets"
895 # </Data>
896 #
897 # <Host "some.switch.mydomain.org">
898 # Address "192.168.0.2"
899 # Version 1
900 # Community "community_string"
901 # Collect "std_traffic"
902 # Interval 120
903 # </Host>
904 # <Host "some.server.mydomain.org">
905 # Address "192.168.0.42"
906 # Version 2
907 # Community "another_string"
908 # Collect "std_traffic" "hr_users"
909 # </Host>
910 # <Host "some.ups.mydomain.org">
911 # Address "192.168.0.3"
912 # Version 1
913 # Community "more_communities"
914 # Collect "powerplus_voltge_input"
915 # Interval 300
916 # </Host>
917 #</Plugin>
919 #<Plugin "swap">
920 # ReportByDevice false
921 # ReportBytes true
922 #</Plugin>
924 #<Plugin "table">
925 # <Table "/proc/slabinfo">
926 # Instance "slabinfo"
927 # Separator " "
928 # <Result>
929 # Type gauge
930 # InstancePrefix "active_objs"
931 # InstancesFrom 0
932 # ValuesFrom 1
933 # </Result>
934 # <Result>
935 # Type gauge
936 # InstancePrefix "objperslab"
937 # InstancesFrom 0
938 # ValuesFrom 4
939 # </Result>
940 # </Table>
941 #</Plugin>
943 #<Plugin "tail">
944 # <File "/var/log/exim4/mainlog">
945 # Instance "exim"
946 # <Match>
947 # Regex "S=([1-9][0-9]*)"
948 # DSType "CounterAdd"
949 # Type "ipt_bytes"
950 # Instance "total"
951 # </Match>
952 # <Match>
953 # Regex "\\<R=local_user\\>"
954 # ExcludeRegex "\\<R=local_user\\>.*mail_spool defer"
955 # DSType "CounterInc"
956 # Type "counter"
957 # Instance "local_user"
958 # </Match>
959 # </File>
960 #</Plugin>
962 #<Plugin tcpconns>
963 # ListeningPorts false
964 # LocalPort "25"
965 # RemotePort "25"
966 #</Plugin>
968 #<Plugin teamspeak2>
969 # Host "127.0.0.1"
970 # Port "51234"
971 # Server "8767"
972 #</Plugin>
974 #<Plugin ted>
975 # Device "/dev/ttyUSB0"
976 # Retries 0
977 #</Plugin>
979 #<Plugin thermal>
980 # ForceUseProcfs false
981 # Device "THRM"
982 # IgnoreSelected false
983 #</Plugin>
985 #<Plugin tokyotyrant>
986 # Host "localhost"
987 # Port "1978"
988 #</Plugin>
990 #<Plugin unixsock>
991 # SocketFile "@prefix@/var/run/@PACKAGE_NAME@-unixsock"
992 # SocketGroup "collectd"
993 # SocketPerms "0660"
994 # DeleteSocket false
995 #</Plugin>
997 #<Plugin uuid>
998 # UUIDFile "/etc/uuid"
999 #</Plugin>
1001 #<Plugin varnish>
1002 # This tag support an argument if you want to
1003 # monitor the local instance just use </Instance>
1004 # If you prefer defining another instance you can do
1005 # so by using <Instance "myinstance">
1006 # <Instance>
1007 # CollectCache true
1008 # CollectBackend true
1009 # CollectConnections true
1010 # CollectSHM true
1011 # CollectESI false
1012 # CollectFetch false
1013 # CollectHCB false
1014 # CollectSMA false
1015 # CollectSMS false
1016 # CollectSM false
1017 # CollectTotals false
1018 # CollectWorkers false
1019 # </Instance>
1020 #</Plugin>
1022 #<Plugin vmem>
1023 # Verbose false
1024 #</Plugin>
1026 #<Plugin write_graphite>
1027 # <Node "example">
1028 # Host "localhost"
1029 # Port "2003"
1030 # Prefix "collectd"
1031 # Postfix "collectd"
1032 # StoreRates true
1033 # AlwaysAppendDS false
1034 # EscapeCharacter "_"
1035 # </Node>
1036 #</Plugin>
1038 #<Plugin write_http>
1039 # <URL "http://example.com/collectd-post">
1040 # User "collectd"
1041 # Password "weCh3ik0"
1042 # VerifyPeer true
1043 # VerifyHost true
1044 # CACert "/etc/ssl/ca.crt"
1045 # Format "Command"
1046 # StoreRates false
1047 # </URL>
1048 #</Plugin>
1050 #<Plugin write_mongodb>
1051 # <Node "example">
1052 # Host "localhost"
1053 # Port "27017"
1054 # Timeout 1000
1055 # StoreRates false
1056 # </Node>
1057 #</Plugin>
1059 #<Plugin write_redis>
1060 # <Node "example">
1061 # Host "localhost"
1062 # Port "6379"
1063 # Timeout 1000
1064 # </Node>
1065 #</Plugin>
1067 #<Plugin write_riemann>
1068 # <Node "example">
1069 # Host "localhost"
1070 # Port 5555
1071 # Protocol UDP
1072 # StoreRates true
1073 # AlwaysAppendDS false
1074 # </Node>
1075 # Tag "foobar"
1076 #</Plugin>
1078 ##############################################################################
1079 # Filter configuration #
1080 #----------------------------------------------------------------------------#
1081 # The following configures collectd's filtering mechanism. Before changing #
1082 # anything in this section, please read the `FILTER CONFIGURATION' section #
1083 # in the collectd.conf(5) manual page. #
1084 ##############################################################################
1086 # Load required matches:
1087 #@BUILD_PLUGIN_MATCH_EMPTY_COUNTER_TRUE@LoadPlugin match_empty_counter
1088 #@BUILD_PLUGIN_MATCH_HASHED_TRUE@LoadPlugin match_hashed
1089 #@BUILD_PLUGIN_MATCH_REGEX_TRUE@LoadPlugin match_regex
1090 #@BUILD_PLUGIN_MATCH_VALUE_TRUE@LoadPlugin match_value
1091 #@BUILD_PLUGIN_MATCH_TIMEDIFF_TRUE@LoadPlugin match_timediff
1093 # Load required targets:
1094 #@BUILD_PLUGIN_TARGET_NOTIFICATION_TRUE@LoadPlugin target_notification
1095 #@BUILD_PLUGIN_TARGET_REPLACE_TRUE@LoadPlugin target_replace
1096 #@BUILD_PLUGIN_TARGET_SCALE_TRUE@LoadPlugin target_scale
1097 #@BUILD_PLUGIN_TARGET_SET_TRUE@LoadPlugin target_set
1098 #@BUILD_PLUGIN_TARGET_V5UPGRADE_TRUE@LoadPlugin target_v5upgrade
1100 #----------------------------------------------------------------------------#
1101 # The following block demonstrates the default behavior if no filtering is #
1102 # configured at all: All values will be sent to all available write plugins. #
1103 #----------------------------------------------------------------------------#
1105 #<Chain "PostCache">
1106 # Target "write"
1107 #</Chain>
1109 ##############################################################################
1110 # Threshold configuration #
1111 #----------------------------------------------------------------------------#
1112 # The following outlines how to configure collectd's threshold checking #
1113 # plugin. The plugin and possible configuration options are documented in #
1114 # the collectd-threshold(5) manual page. #
1115 ##############################################################################
1117 #@BUILD_PLUGIN_THRESHOLD_TRUE@LoadPlugin "threshold"
1118 #<Plugin "threshold">
1119 # <Type "foo">
1120 # WarningMin 0.00
1121 # WarningMax 1000.00
1122 # FailureMin 0.00
1123 # FailureMax 1200.00
1124 # Invert false
1125 # Instance "bar"
1126 # </Type>
1127 #
1128 # <Plugin "interface">
1129 # Instance "eth0"
1130 # <Type "if_octets">
1131 # FailureMax 10000000
1132 # DataSource "rx"
1133 # </Type>
1134 # </Plugin>
1135 #
1136 # <Host "hostname">
1137 # <Type "cpu">
1138 # Instance "idle"
1139 # FailureMin 10
1140 # </Type>
1141 #
1142 # <Plugin "memory">
1143 # <Type "memory">
1144 # Instance "cached"
1145 # WarningMin 100000000
1146 # </Type>
1147 # </Plugin>
1148 #
1149 # <Type "load">
1150 # DataSource "midterm"
1151 # FailureMax 4
1152 # Hits 3
1153 # Hysteresis 3
1154 # </Type>
1155 # </Host>
1156 #</Plugin>