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