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