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