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