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_MONGODB_TRUE@LoadPlugin write_mongodb
154 #@BUILD_PLUGIN_WRITE_REDIS_TRUE@LoadPlugin write_redis
155 #@BUILD_PLUGIN_WRITE_RIEMANN_TRUE@LoadPlugin write_riemann
156 #@BUILD_PLUGIN_XMMS_TRUE@LoadPlugin xmms
157 #@BUILD_PLUGIN_ZFS_ARC_TRUE@LoadPlugin zfs_arc
159 ##############################################################################
160 # Plugin configuration #
161 #----------------------------------------------------------------------------#
162 # In this section configuration stubs for each plugin are provided. A desc- #
163 # ription of those options is available in the collectd.conf(5) manual page. #
164 ##############################################################################
166 #<Plugin "aggregation">
167 # <Aggregation>
168 # #Host "unspecified"
169 # Plugin "cpu"
170 # #PluginInstance "unspecified"
171 # Type "cpu"
172 # #TypeInstance "unspecified"
173 #
174 # GroupBy "Host"
175 # GroupBy "TypeInstance"
176 #
177 # CalculateNum false
178 # CalculateSum false
179 # CalculateAverage true
180 # CalculateMinimum false
181 # CalculateMaximum false
182 # CalculateStddev false
183 # </Aggregation>
184 #</Plugin>
186 #<Plugin "amqp">
187 # <Publish "name">
188 # Host "localhost"
189 # Port "5672"
190 # VHost "/"
191 # User "guest"
192 # Password "guest"
193 # Exchange "amq.fanout"
194 # RoutingKey "collectd"
195 # Persistent false
196 # StoreRates false
197 # </Publish>
198 #</Plugin>
200 #<Plugin apache>
201 # <Instance "local">
202 # URL "http://localhost/status?auto"
203 # User "www-user"
204 # Password "secret"
205 # CACert "/etc/ssl/ca.crt"
206 # </Instance>
207 #</Plugin>
209 #<Plugin apcups>
210 # Host "localhost"
211 # Port "3551"
212 # ReportSeconds true
213 #</Plugin>
215 #<Plugin ascent>
216 # URL "http://localhost/ascent/status/"
217 # User "www-user"
218 # Password "secret"
219 # CACert "/etc/ssl/ca.crt"
220 #</Plugin>
222 #<Plugin "bind">
223 # URL "http://localhost:8053/"
224 # ParseTime false
225 # OpCodes true
226 # QTypes true
227 #
228 # ServerStats true
229 # ZoneMaintStats true
230 # ResolverStats false
231 # MemoryStats true
232 #
233 # <View "_default">
234 # QTypes true
235 # ResolverStats true
236 # CacheRRSets true
237 #
238 # Zone "127.in-addr.arpa/IN"
239 # </View>
240 #</Plugin>
242 #<Plugin csv>
243 # DataDir "@localstatedir@/lib/@PACKAGE_NAME@/csv"
244 # StoreRates false
245 #</Plugin>
247 #<Plugin curl>
248 # <Page "stock_quotes">
249 # URL "http://finance.google.com/finance?q=NYSE%3AAMD"
250 # User "foo"
251 # Password "bar"
252 # MeasureResponseTime false
253 # <Match>
254 # Regex "<span +class=\"pr\"[^>]*> *([0-9]*\\.[0-9]+) *</span>"
255 # DSType "GaugeAverage"
256 # Type "stock_value"
257 # Instance "AMD"
258 # </Match>
259 # </Page>
260 #</Plugin>
262 #<Plugin curl_json>
263 ## See: http://wiki.apache.org/couchdb/Runtime_Statistics
264 # <URL "http://localhost:5984/_stats">
265 # Instance "httpd"
266 # <Key "httpd/requests/count">
267 # Type "http_requests"
268 # </Key>
269 #
270 # <Key "httpd_request_methods/*/count">
271 # Type "http_request_methods"
272 # </Key>
273 #
274 # <Key "httpd_status_codes/*/count">
275 # Type "http_response_codes"
276 # </Key>
277 # </URL>
278 ## Database status metrics:
279 # <URL "http://localhost:5984/_all_dbs">
280 # Instance "dbs"
281 # <Key "*/doc_count">
282 # Type "gauge"
283 # </Key>
284 # <Key "*/doc_del_count">
285 # Type "counter"
286 # </Key>
287 # <Key "*/disk_size">
288 # Type "bytes"
289 # </Key>
290 # </URL>
291 #</Plugin>
293 #<Plugin "curl_xml">
294 # <URL "http://localhost/stats.xml">
295 # Host "my_host"
296 # Instance "some_instance"
297 # User "collectd"
298 # Password "thaiNg0I"
299 # VerifyPeer true
300 # VerifyHost true
301 # CACert "/path/to/ca.crt"
302 #
303 # <XPath "table[@id=\"magic_level\"]/tr">
304 # Type "magic_level"
305 # #InstancePrefix "prefix-"
306 # InstanceFrom "td[1]"
307 # ValuesFrom "td[2]/span[@class=\"level\"]"
308 # </XPath>
309 # </URL>
310 #</Plugin>
312 #<Plugin dbi>
313 # <Query "num_of_customers">
314 # Statement "SELECT 'customers' AS c_key, COUNT(*) AS c_value FROM customers_tbl"
315 # <Result>
316 # Type "gauge"
317 # InstancesFrom "c_key"
318 # ValuesFrom "c_value"
319 # </Result>
320 # </Query>
321 # <Database "customers_db">
322 # Driver "mysql"
323 # DriverOption "host" "localhost"
324 # DriverOption "username" "collectd"
325 # DriverOption "password" "AeXohy0O"
326 # DriverOption "dbname" "custdb0"
327 # #SelectDB "custdb0"
328 # Query "num_of_customers"
329 # #Query "..."
330 # </Database>
331 #</Plugin>
333 #<Plugin df>
334 # Device "/dev/hda1"
335 # Device "192.168.0.2:/mnt/nfs"
336 # MountPoint "/home"
337 # FSType "ext3"
338 # IgnoreSelected false
339 # ReportByDevice false
340 # ReportReserved false
341 # ReportInodes false
342 #</Plugin>
344 #<Plugin disk>
345 # Disk "/^[hs]d[a-f][0-9]?$/"
346 # IgnoreSelected false
347 #</Plugin>
349 #<Plugin dns>
350 # Interface "eth0"
351 # IgnoreSource "192.168.0.1"
352 # SelectNumericQueryTypes true
353 #</Plugin>
355 #<Plugin email>
356 # SocketFile "@localstatedir@/run/@PACKAGE_NAME@-email"
357 # SocketGroup "collectd"
358 # SocketPerms "0770"
359 # MaxConns 5
360 #</Plugin>
362 #<Plugin ethstat>
363 # Interface "eth0"
364 # Map "rx_csum_offload_errors" "if_rx_errors" "checksum_offload"
365 # Map "multicast" "if_multicast"
366 # MappedOnly false
367 #</Plugin>
369 #<Plugin exec>
370 # Exec "user:group" "/path/to/exec"
371 # NotificationExec "user:group" "/path/to/exec"
372 #</Plugin>
374 #<Plugin filecount>
375 # <Directory "/path/to/dir">
376 # Instance "foodir"
377 # Name "*.conf"
378 # MTime "-5m"
379 # Size "+10k"
380 # Recursive true
381 # IncludeHidden false
382 # </Directory>
383 #</Plugin>
385 #<Plugin "gmond">
386 # MCReceiveFrom "239.2.11.71" "8649"
387 # <Metric "swap_total">
388 # Type "swap"
389 # TypeInstance "total"
390 # DataSource "value"
391 # </Metric>
392 # <Metric "swap_free">
393 # Type "swap"
394 # TypeInstance "free"
395 # DataSource "value"
396 # </Metric>
397 #</Plugin>
399 #<Plugin hddtemp>
400 # Host "127.0.0.1"
401 # Port "7634"
402 #</Plugin>
404 #<Plugin interface>
405 # Interface "eth0"
406 # IgnoreSelected false
407 #</Plugin>
409 #<Plugin ipmi>
410 # Sensor "some_sensor"
411 # Sensor "another_one"
412 # IgnoreSelected false
413 # NotifySensorAdd false
414 # NotifySensorRemove true
415 # NotifySensorNotPresent false
416 #</Plugin>
418 #<Plugin iptables>
419 # Chain table chain
420 #</Plugin>
422 #<Plugin irq>
423 # Irq 7
424 # Irq 8
425 # Irq 9
426 # IgnoreSelected true
427 #</Plugin>
429 #<Plugin "java">
430 # JVMArg "-verbose:jni"
431 # JVMArg "-Djava.class.path=@prefix@/share/collectd/java/collectd-api.jar"
432 #
433 # LoadPlugin "org.collectd.java.Foobar"
434 # <Plugin "org.collectd.java.Foobar">
435 # # To be parsed by the plugin
436 # </Plugin>
437 #</Plugin>
439 #<Plugin libvirt>
440 # Connection "xen:///"
441 # RefreshInterval 60
442 # Domain "name"
443 # BlockDevice "name:device"
444 # InterfaceDevice "name:device"
445 # IgnoreSelected false
446 # HostnameFormat name
447 # InterfaceFormat name
448 #</Plugin>
450 #<Plugin lpar>
451 # CpuPoolStats false
452 # ReportBySerial false
453 #</Plugin>
455 #<Plugin madwifi>
456 # Interface "wlan0"
457 # IgnoreSelected false
458 # Source "SysFS"
459 # WatchSet "None"
460 # WatchAdd "node_octets"
461 # WatchAdd "node_rssi"
462 # WatchAdd "is_rx_acl"
463 # WatchAdd "is_scan_active"
464 #</Plugin>
466 #<Plugin mbmon>
467 # Host "127.0.0.1"
468 # Port "411"
469 #</Plugin>
471 #<Plugin md>
472 # Device "/dev/md0"
473 # IgnoreSelected false
474 #</Plugin>
476 #<Plugin memcachec>
477 # <Page "plugin_instance">
478 # Server "localhost"
479 # Key "page_key"
480 # <Match>
481 # Regex "(\\d+) bytes sent"
482 # ExcludeRegex "<lines to be excluded>"
483 # DSType CounterAdd
484 # Type "ipt_octets"
485 # Instance "type_instance"
486 # </Match>
487 # </Page>
488 #</Plugin>
490 #<Plugin memcached>
491 # <Instance "local">
492 # Host "127.0.0.1"
493 # Port "11211"
494 # </Instance>
495 #</Plugin>
497 #<Plugin modbus>
498 # <Data "data_name">
499 # RegisterBase 1234
500 # RegisterType float
501 # Type gauge
502 # Instance "..."
503 # </Data>
504 #
505 # <Host "name">
506 # Address "addr"
507 # Port "1234"
508 # Interval 60
509 #
510 # <Slave 1>
511 # Instance "foobar" # optional
512 # Collect "data_name"
513 # </Slave>
514 # </Host>
515 #</Plugin>
517 #<Plugin mysql>
518 # <Database db_name>
519 # Host "database.serv.er"
520 # User "db_user"
521 # Password "secret"
522 # Database "db_name"
523 # MasterStats true
524 # </Database>
525 #
526 # <Database db_name2>
527 # Host "localhost"
528 # Socket "/var/run/mysql/mysqld.sock"
529 # SlaveStats true
530 # SlaveNotifications true
531 # </Database>
532 #</Plugin>
534 #<Plugin netapp>
535 # <Host "netapp1.example.com">
536 # Protocol "https"
537 # Address "10.0.0.1"
538 # Port 443
539 # User "username"
540 # Password "aef4Aebe"
541 # Interval 30
542 #
543 # <WAFL>
544 # Interval 30
545 # GetNameCache true
546 # GetDirCache true
547 # GetBufferCache true
548 # GetInodeCache true
549 # </WAFL>
550 #
551 # <Disks>
552 # Interval 30
553 # GetBusy true
554 # </Disks>
555 #
556 # <VolumePerf>
557 # Interval 30
558 # GetIO "volume0"
559 # IgnoreSelectedIO false
560 # GetOps "volume0"
561 # IgnoreSelectedOps false
562 # GetLatency "volume0"
563 # IgnoreSelectedLatency false
564 # </VolumePerf>
565 #
566 # <VolumeUsage>
567 # Interval 30
568 # GetCapacity "vol0"
569 # GetCapacity "vol1"
570 # IgnoreSelectedCapacity false
571 # GetSnapshot "vol1"
572 # GetSnapshot "vol3"
573 # IgnoreSelectedSnapshot false
574 # </VolumeUsage>
575 #
576 # <System>
577 # Interval 30
578 # GetCPULoad true
579 # GetInterfaces true
580 # GetDiskOps true
581 # GetDiskIO true
582 # </System>
583 # </Host>
584 #</Plugin>
586 #<Plugin netlink>
587 # Interface "All"
588 # VerboseInterface "All"
589 # QDisc "eth0" "pfifo_fast-1:0"
590 # Class "ppp0" "htb-1:10"
591 # Filter "ppp0" "u32-1:0"
592 # IgnoreSelected false
593 #</Plugin>
595 @LOAD_PLUGIN_NETWORK@<Plugin network>
596 # # client setup:
597 @LOAD_PLUGIN_NETWORK@ Server "ff18::efc0:4a42" "25826"
598 @LOAD_PLUGIN_NETWORK@ <Server "239.192.74.66" "25826">
599 # SecurityLevel Encrypt
600 # Username "user"
601 # Password "secret"
602 # Interface "eth0"
603 @LOAD_PLUGIN_NETWORK@ </Server>
604 # TimeToLive "128"
605 #
606 # # server setup:
607 # Listen "ff18::efc0:4a42" "25826"
608 # <Listen "239.192.74.66" "25826">
609 # SecurityLevel Sign
610 # AuthFile "/etc/collectd/passwd"
611 # Interface "eth0"
612 # </Listen>
613 # MaxPacketSize 1024
614 #
615 # # proxy setup (client and server as above):
616 # Forward true
617 #
618 # # statistics about the network plugin itself
619 # ReportStats false
620 #
621 # # "garbage collection"
622 # CacheFlush 1800
623 @LOAD_PLUGIN_NETWORK@</Plugin>
625 #<Plugin nginx>
626 # URL "http://localhost/status?auto"
627 # User "www-user"
628 # Password "secret"
629 # CACert "/etc/ssl/ca.crt"
630 #</Plugin>
632 #<Plugin notify_desktop>
633 # OkayTimeout 1000
634 # WarningTimeout 5000
635 # FailureTimeout 0
636 #</Plugin>
638 #<Plugin notify_email>
639 # SMTPServer "localhost"
640 # SMTPPort 25
641 # SMTPUser "my-username"
642 # SMTPPassword "my-password"
643 # From "collectd@main0server.com"
644 # # <WARNING/FAILURE/OK> on <hostname>. beware! do not use not more than two %s in this string!!!
645 # Subject "Aaaaaa!! %s on %s!!!!!"
646 # Recipient "email1@domain1.net"
647 # Recipient "email2@domain2.com"
648 #</Plugin>
650 #<Plugin ntpd>
651 # Host "localhost"
652 # Port 123
653 # ReverseLookups false
654 # IncludeUnitID true
655 #</Plugin>
657 #<Plugin nut>
658 # UPS "upsname@hostname:port"
659 #</Plugin>
661 #<Plugin olsrd>
662 # Host "127.0.0.1"
663 # Port "2006"
664 # CollectLinks "Summary"
665 # CollectRoutes "Summary"
666 # CollectTopology "Summary"
667 #</Plugin>
669 #<Plugin onewire>
670 # Device "-s localhost:4304"
671 # Sensor "F10FCA000800"
672 # IgnoreSelected false
673 #</Plugin>
675 #<Plugin openvpn>
676 # StatusFile "/etc/openvpn/openvpn-status.log"
677 # ImprovedNamingSchema false
678 # CollectCompression true
679 # CollectIndividualUsers true
680 # CollectUserCount false
681 #</Plugin>
683 #<Plugin oracle>
684 # <Query "out_of_stock">
685 # Statement "SELECT category, COUNT(*) AS value FROM products WHERE in_stock = 0 GROUP BY category"
686 # <Result>
687 # Type "gauge"
688 # InstancesFrom "category"
689 # ValuesFrom "value"
690 # </Result>
691 # </Query>
692 # <Database "product_information">
693 # ConnectID "db01"
694 # Username "oracle"
695 # Password "secret"
696 # Query "out_of_stock"
697 # </Database>
698 #</Plugin>
700 #<Plugin perl>
701 # IncludeDir "/my/include/path"
702 # BaseName "Collectd::Plugins"
703 # EnableDebugger ""
704 # LoadPlugin Monitorus
705 # LoadPlugin OpenVZ
706 #
707 # <Plugin foo>
708 # Foo "Bar"
709 # Qux "Baz"
710 # </Plugin>
711 #</Plugin>
713 #<Plugin pinba>
714 # Address "::0"
715 # Port "30002"
716 # <View "name">
717 # Host "host name"
718 # Server "server name"
719 # Script "script name"
720 # </View>
721 #</Plugin>
723 #<Plugin ping>
724 # Host "host.foo.bar"
725 # Interval 1.0
726 # Timeout 0.9
727 # TTL 255
728 # SourceAddress "1.2.3.4"
729 # Device "eth0"
730 # MaxMissed -1
731 #</Plugin>
733 #<Plugin postgresql>
734 # <Query magic>
735 # Statement "SELECT magic FROM wizard WHERE host = $1;"
736 # Param hostname
737 # <Result>
738 # Type gauge
739 # InstancePrefix "magic"
740 # ValuesFrom magic
741 # </Result>
742 # </Query>
743 # <Query rt36_tickets>
744 # Statement "SELECT COUNT(type) AS count, type \
745 # FROM (SELECT CASE \
746 # WHEN resolved = 'epoch' THEN 'open' \
747 # ELSE 'resolved' END AS type \
748 # FROM tickets) type \
749 # GROUP BY type;"
750 # <Result>
751 # Type counter
752 # InstancePrefix "rt36_tickets"
753 # InstancesFrom "type"
754 # ValuesFrom "count"
755 # </Result>
756 # </Query>
757 # <Database foo>
758 # Host "hostname"
759 # Port "5432"
760 # User "username"
761 # Password "secret"
762 # SSLMode "prefer"
763 # KRBSrvName "kerberos_service_name"
764 # Query magic
765 # </Database>
766 # <Database bar>
767 # Interval 60
768 # Service "service_name"
769 # Query backend # predefined
770 # Query rt36_tickets
771 # </Database>
772 #</Plugin>
774 #<Plugin powerdns>
775 # <Server "server_name">
776 # Collect "latency"
777 # Collect "udp-answers" "udp-queries"
778 # Socket "/var/run/pdns.controlsocket"
779 # </Server>
780 # <Recursor "recursor_name">
781 # Collect "questions"
782 # Collect "cache-hits" "cache-misses"
783 # Socket "/var/run/pdns_recursor.controlsocket"
784 # </Recursor>
785 # LocalSocket "/opt/collectd/var/run/collectd-powerdns"
786 #</Plugin>
788 #<Plugin processes>
789 # Process "name"
790 #</Plugin>
792 #<Plugin protocols>
793 # Value "/^Tcp:/"
794 # IgnoreSelected false
795 #</Plugin>
797 #<Plugin python>
798 # ModulePath "/path/to/your/python/modules"
799 # LogTraces true
800 # Interactive true
801 # Import "spam"
802 #
803 # <Module spam>
804 # spam "wonderful" "lovely"
805 # </Module>
806 #</Plugin>
808 #<Plugin redis>
809 # <Node example>
810 # Host "redis.example.com"
811 # Port "6379"
812 # Timeout 2000
813 # </Node>
814 #</Plugin>
816 #<Plugin routeros>
817 # <Router>
818 # Host "router.example.com"
819 # Port "8728"
820 # User "admin"
821 # Password "dozaiTh4"
822 # CollectInterface true
823 # CollectRegistrationTable true
824 # CollectCPULoad true
825 # CollectMemory true
826 # CollectDF true
827 # CollectDisk true
828 # </Router>
829 #</Plugin>
831 #<Plugin rrdcached>
832 # DaemonAddress "unix:/tmp/rrdcached.sock"
833 # DataDir "@localstatedir@/lib/@PACKAGE_NAME@/rrd"
834 # CreateFiles true
835 # CollectStatistics true
836 #</Plugin>
838 #<Plugin rrdtool>
839 # DataDir "@localstatedir@/lib/@PACKAGE_NAME@/rrd"
840 # CacheTimeout 120
841 # CacheFlush 900
842 #</Plugin>
844 #<Plugin sensors>
845 # SensorConfigFile "/etc/sensors.conf"
846 # Sensor "it8712-isa-0290/temperature-temp1"
847 # Sensor "it8712-isa-0290/fanspeed-fan3"
848 # Sensor "it8712-isa-0290/voltage-in8"
849 # IgnoreSelected false
850 #</Plugin>
852 #<Plugin snmp>
853 # <Data "powerplus_voltge_input">
854 # Type "voltage"
855 # Table false
856 # Instance "input_line1"
857 # Values "SNMPv2-SMI::enterprises.6050.5.4.1.1.2.1"
858 # </Data>
859 # <Data "hr_users">
860 # Type "users"
861 # Table false
862 # Instance ""
863 # Values "HOST-RESOURCES-MIB::hrSystemNumUsers.0"
864 # </Data>
865 # <Data "std_traffic">
866 # Type "if_octets"
867 # Table true
868 # Instance "IF-MIB::ifDescr"
869 # Values "IF-MIB::ifInOctets" "IF-MIB::ifOutOctets"
870 # </Data>
871 #
872 # <Host "some.switch.mydomain.org">
873 # Address "192.168.0.2"
874 # Version 1
875 # Community "community_string"
876 # Collect "std_traffic"
877 # Interval 120
878 # </Host>
879 # <Host "some.server.mydomain.org">
880 # Address "192.168.0.42"
881 # Version 2
882 # Community "another_string"
883 # Collect "std_traffic" "hr_users"
884 # </Host>
885 # <Host "some.ups.mydomain.org">
886 # Address "192.168.0.3"
887 # Version 1
888 # Community "more_communities"
889 # Collect "powerplus_voltge_input"
890 # Interval 300
891 # </Host>
892 #</Plugin>
894 #<Plugin "swap">
895 # ReportByDevice false
896 # ReportBytes true
897 #</Plugin>
899 #<Plugin "table">
900 # <Table "/proc/slabinfo">
901 # Instance "slabinfo"
902 # Separator " "
903 # <Result>
904 # Type gauge
905 # InstancePrefix "active_objs"
906 # InstancesFrom 0
907 # ValuesFrom 1
908 # </Result>
909 # <Result>
910 # Type gauge
911 # InstancePrefix "objperslab"
912 # InstancesFrom 0
913 # ValuesFrom 4
914 # </Result>
915 # </Table>
916 #</Plugin>
918 #<Plugin "tail">
919 # <File "/var/log/exim4/mainlog">
920 # Instance "exim"
921 # <Match>
922 # Regex "S=([1-9][0-9]*)"
923 # DSType "CounterAdd"
924 # Type "ipt_bytes"
925 # Instance "total"
926 # </Match>
927 # <Match>
928 # Regex "\\<R=local_user\\>"
929 # ExcludeRegex "\\<R=local_user\\>.*mail_spool defer"
930 # DSType "CounterInc"
931 # Type "counter"
932 # Instance "local_user"
933 # </Match>
934 # </File>
935 #</Plugin>
937 #<Plugin tcpconns>
938 # ListeningPorts false
939 # LocalPort "25"
940 # RemotePort "25"
941 #</Plugin>
943 #<Plugin teamspeak2>
944 # Host "127.0.0.1"
945 # Port "51234"
946 # Server "8767"
947 #</Plugin>
949 #<Plugin ted>
950 # Device "/dev/ttyUSB0"
951 # Retries 0
952 #</Plugin>
954 #<Plugin thermal>
955 # ForceUseProcfs false
956 # Device "THRM"
957 # IgnoreSelected false
958 #</Plugin>
960 #<Plugin tokyotyrant>
961 # Host "localhost"
962 # Port "1978"
963 #</Plugin>
965 #<Plugin unixsock>
966 # SocketFile "@prefix@/var/run/@PACKAGE_NAME@-unixsock"
967 # SocketGroup "collectd"
968 # SocketPerms "0660"
969 # DeleteSocket false
970 #</Plugin>
972 #<Plugin uuid>
973 # UUIDFile "/etc/uuid"
974 #</Plugin>
976 #<Plugin varnish>
977 # This tag support an argument if you want to
978 # monitor the local instance just use </Instance>
979 # If you prefer defining another instance you can do
980 # so by using <Instance "myinstance">
981 # <Instance>
982 # CollectCache true
983 # CollectBackend true
984 # CollectConnections true
985 # CollectSHM true
986 # CollectESI false
987 # CollectFetch false
988 # CollectHCB false
989 # CollectSMA false
990 # CollectSMS false
991 # CollectSM false
992 # CollectTotals false
993 # CollectWorkers false
994 # </Instance>
995 #</Plugin>
997 #<Plugin vmem>
998 # Verbose false
999 #</Plugin>
1001 #<Plugin write_graphite>
1002 # <Carbon>
1003 # Host "localhost"
1004 # Port "2003"
1005 # Prefix "collectd"
1006 # Postfix "collectd"
1007 # StoreRates false
1008 # AlwaysAppendDS false
1009 # EscapeCharacter "_"
1010 # </Carbon>
1011 #</Plugin>
1013 #<Plugin write_http>
1014 # <URL "http://example.com/collectd-post">
1015 # User "collectd"
1016 # Password "weCh3ik0"
1017 # VerifyPeer true
1018 # VerifyHost true
1019 # CACert "/etc/ssl/ca.crt"
1020 # Format "Command"
1021 # StoreRates false
1022 # </URL>
1023 #</Plugin>
1025 #<Plugin write_mongodb>
1026 # <Node "example">
1027 # Host "localhost"
1028 # Port "27017"
1029 # Timeout 1000
1030 # StoreRates false
1031 # </Node>
1032 #</Plugin>
1034 #<Plugin write_redis>
1035 # <Node "example">
1036 # Host "localhost"
1037 # Port "6379"
1038 # Timeout 1000
1039 # </Node>
1040 #</Plugin>
1042 #<Plugin write_riemann>
1043 # <Node "example">
1044 # Host "localhost">
1045 # Port 5555
1046 # StoreRates false
1047 # Delay 2
1048 # </Node>
1049 # Tag "foobar"
1050 #</Plugin>
1052 ##############################################################################
1053 # Filter configuration #
1054 #----------------------------------------------------------------------------#
1055 # The following configures collectd's filtering mechanism. Before changing #
1056 # anything in this section, please read the `FILTER CONFIGURATION' section #
1057 # in the collectd.conf(5) manual page. #
1058 ##############################################################################
1060 # Load required matches:
1061 #@BUILD_PLUGIN_MATCH_EMPTY_COUNTER_TRUE@LoadPlugin match_empty_counter
1062 #@BUILD_PLUGIN_MATCH_HASHED_TRUE@LoadPlugin match_hashed
1063 #@BUILD_PLUGIN_MATCH_REGEX_TRUE@LoadPlugin match_regex
1064 #@BUILD_PLUGIN_MATCH_VALUE_TRUE@LoadPlugin match_value
1065 #@BUILD_PLUGIN_MATCH_TIMEDIFF_TRUE@LoadPlugin match_timediff
1067 # Load required targets:
1068 #@BUILD_PLUGIN_TARGET_NOTIFICATION_TRUE@LoadPlugin target_notification
1069 #@BUILD_PLUGIN_TARGET_REPLACE_TRUE@LoadPlugin target_replace
1070 #@BUILD_PLUGIN_TARGET_SCALE_TRUE@LoadPlugin target_scale
1071 #@BUILD_PLUGIN_TARGET_SET_TRUE@LoadPlugin target_set
1072 #@BUILD_PLUGIN_TARGET_V5UPGRADE_TRUE@LoadPlugin target_v5upgrade
1074 #----------------------------------------------------------------------------#
1075 # The following block demonstrates the default behavior if no filtering is #
1076 # configured at all: All values will be sent to all available write plugins. #
1077 #----------------------------------------------------------------------------#
1079 #<Chain "PostCache">
1080 # Target "write"
1081 #</Chain>
1083 ##############################################################################
1084 # Threshold configuration #
1085 #----------------------------------------------------------------------------#
1086 # The following outlines how to configure collectd's threshold checking #
1087 # plugin. The plugin and possible configuration options are documented in #
1088 # the collectd-threshold(5) manual page. #
1089 ##############################################################################
1091 #@BUILD_PLUGIN_THRESHOLD_TRUE@LoadPlugin "threshold"
1092 #<Plugin "threshold">
1093 # <Type "foo">
1094 # WarningMin 0.00
1095 # WarningMax 1000.00
1096 # FailureMin 0.00
1097 # FailureMax 1200.00
1098 # Invert false
1099 # Instance "bar"
1100 # </Type>
1101 #
1102 # <Plugin "interface">
1103 # Instance "eth0"
1104 # <Type "if_octets">
1105 # FailureMax 10000000
1106 # DataSource "rx"
1107 # </Type>
1108 # </Plugin>
1109 #
1110 # <Host "hostname">
1111 # <Type "cpu">
1112 # Instance "idle"
1113 # FailureMin 10
1114 # </Type>
1115 #
1116 # <Plugin "memory">
1117 # <Type "memory">
1118 # Instance "cached"
1119 # WarningMin 100000000
1120 # </Type>
1121 # </Plugin>
1122 #
1123 # <Type "load">
1124 # DataSource "midterm"
1125 # FailureMax 4
1126 # Hits 3
1127 # Hysteresis 3
1128 # </Type>
1129 # </Host>
1130 #</Plugin>