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