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 "@prefix@/var/lib/@PACKAGE_NAME@"
16 #PIDFile "@prefix@/var/run/@PACKAGE_NAME@.pid"
17 #PluginDir "@prefix@/lib/@PACKAGE_NAME@"
18 #TypesDB "@prefix@/share/@PACKAGE_NAME@/types.db"
19 #Interval 10
20 #Timeout 2
21 #ReadThreads 5
23 ##############################################################################
24 # Logging #
25 #----------------------------------------------------------------------------#
26 # Plugins which provide logging functions should be loaded first, so log #
27 # messages generated when loading or configuring other plugins can be #
28 # accessed. #
29 ##############################################################################
31 @LOAD_PLUGIN_SYSLOG@LoadPlugin syslog
32 @LOAD_PLUGIN_LOGFILE@LoadPlugin logfile
34 #<Plugin logfile>
35 # LogLevel @DEFAULT_LOG_LEVEL@
36 # File STDOUT
37 # Timestamp true
38 # PrintSeverity false
39 #</Plugin>
41 #<Plugin syslog>
42 # LogLevel @DEFAULT_LOG_LEVEL@
43 #</Plugin>
45 ##############################################################################
46 # LoadPlugin section #
47 #----------------------------------------------------------------------------#
48 # Lines beginning with a single `#' belong to plugins which have been built #
49 # but are disabled by default. #
50 # #
51 # Lines begnning with `##' belong to plugins which have not been built due #
52 # to missing dependencies or because they have been deactivated explicitly. #
53 ##############################################################################
55 #@BUILD_PLUGIN_AMQP_TRUE@LoadPlugin amqp
56 #@BUILD_PLUGIN_APACHE_TRUE@LoadPlugin apache
57 #@BUILD_PLUGIN_APCUPS_TRUE@LoadPlugin apcups
58 #@BUILD_PLUGIN_APPLE_SENSORS_TRUE@LoadPlugin apple_sensors
59 #@BUILD_PLUGIN_ASCENT_TRUE@LoadPlugin ascent
60 #@BUILD_PLUGIN_BATTERY_TRUE@LoadPlugin battery
61 #@BUILD_PLUGIN_BIND_TRUE@LoadPlugin bind
62 #@BUILD_PLUGIN_CONNTRACK_TRUE@LoadPlugin conntrack
63 #@BUILD_PLUGIN_CONTEXTSWITCH_TRUE@LoadPlugin contextswitch
64 @BUILD_PLUGIN_CPU_TRUE@@BUILD_PLUGIN_CPU_TRUE@LoadPlugin cpu
65 #@BUILD_PLUGIN_CPUFREQ_TRUE@LoadPlugin cpufreq
66 @LOAD_PLUGIN_CSV@LoadPlugin csv
67 #@BUILD_PLUGIN_CURL_TRUE@LoadPlugin curl
68 #@BUILD_PLUGIN_CURL_JSON_TRUE@LoadPlugin curl_json
69 #@BUILD_PLUGIN_CURL_XML_TRUE@LoadPlugin curl_xml
70 #@BUILD_PLUGIN_DBI_TRUE@LoadPlugin dbi
71 #@BUILD_PLUGIN_DF_TRUE@LoadPlugin df
72 #@BUILD_PLUGIN_DISK_TRUE@LoadPlugin disk
73 #@BUILD_PLUGIN_DNS_TRUE@LoadPlugin dns
74 #@BUILD_PLUGIN_EMAIL_TRUE@LoadPlugin email
75 #@BUILD_PLUGIN_ENTROPY_TRUE@LoadPlugin entropy
76 #@BUILD_PLUGIN_EXEC_TRUE@LoadPlugin exec
77 #@BUILD_PLUGIN_FILECOUNT_TRUE@LoadPlugin filecount
78 #@BUILD_PLUGIN_FSCACHE_TRUE@LoadPlugin fscache
79 #@BUILD_PLUGIN_GMOND_TRUE@LoadPlugin gmond
80 #@BUILD_PLUGIN_HDDTEMP_TRUE@LoadPlugin hddtemp
81 @BUILD_PLUGIN_INTERFACE_TRUE@@BUILD_PLUGIN_INTERFACE_TRUE@LoadPlugin interface
82 #@BUILD_PLUGIN_IPTABLES_TRUE@LoadPlugin iptables
83 #@BUILD_PLUGIN_IPMI_TRUE@LoadPlugin ipmi
84 #@BUILD_PLUGIN_IPVS_TRUE@LoadPlugin ipvs
85 #@BUILD_PLUGIN_IRQ_TRUE@LoadPlugin irq
86 #@BUILD_PLUGIN_JAVA_TRUE@LoadPlugin java
87 #@BUILD_PLUGIN_LIBVIRT_TRUE@LoadPlugin libvirt
88 @BUILD_PLUGIN_LOAD_TRUE@@BUILD_PLUGIN_LOAD_TRUE@LoadPlugin load
89 #@BUILD_PLUGIN_MADWIFI_TRUE@LoadPlugin madwifi
90 #@BUILD_PLUGIN_MBMON_TRUE@LoadPlugin mbmon
91 #@BUILD_PLUGIN_MEMCACHEC_TRUE@LoadPlugin memcachec
92 #@BUILD_PLUGIN_MEMCACHED_TRUE@LoadPlugin memcached
93 @BUILD_PLUGIN_MEMORY_TRUE@@BUILD_PLUGIN_MEMORY_TRUE@LoadPlugin memory
94 #@BUILD_PLUGIN_MODBUS_TRUE@LoadPlugin modbus
95 #@BUILD_PLUGIN_MULTIMETER_TRUE@LoadPlugin multimeter
96 #@BUILD_PLUGIN_MYSQL_TRUE@LoadPlugin mysql
97 #@BUILD_PLUGIN_NETAPP_TRUE@LoadPlugin netapp
98 #@BUILD_PLUGIN_NETLINK_TRUE@LoadPlugin netlink
99 @LOAD_PLUGIN_NETWORK@LoadPlugin network
100 #@BUILD_PLUGIN_NFS_TRUE@LoadPlugin nfs
101 #@BUILD_PLUGIN_NGINX_TRUE@LoadPlugin nginx
102 #@BUILD_PLUGIN_NOTIFY_DESKTOP_TRUE@LoadPlugin notify_desktop
103 #@BUILD_PLUGIN_NOTIFY_EMAIL_TRUE@LoadPlugin notify_email
104 #@BUILD_PLUGIN_NTPD_TRUE@LoadPlugin ntpd
105 #@BUILD_PLUGIN_NUT_TRUE@LoadPlugin nut
106 #@BUILD_PLUGIN_OLSRD_TRUE@LoadPlugin olsrd
107 #@BUILD_PLUGIN_ONEWIRE_TRUE@LoadPlugin onewire
108 #@BUILD_PLUGIN_OPENVPN_TRUE@LoadPlugin openvpn
109 #@BUILD_PLUGIN_ORACLE_TRUE@LoadPlugin oracle
110 #@BUILD_PLUGIN_PERL_TRUE@LoadPlugin perl
111 #@BUILD_PLUGIN_PINBA_TRUE@LoadPlugin pinba
112 #@BUILD_PLUGIN_PING_TRUE@LoadPlugin ping
113 #@BUILD_PLUGIN_POSTGRESQL_TRUE@LoadPlugin postgresql
114 #@BUILD_PLUGIN_POWERDNS_TRUE@LoadPlugin powerdns
115 #@BUILD_PLUGIN_PROCESSES_TRUE@LoadPlugin processes
116 #@BUILD_PLUGIN_PROTOCOLS_TRUE@LoadPlugin protocols
117 #@BUILD_PLUGIN_PYTHON_TRUE@LoadPlugin python
118 #@BUILD_PLUGIN_ROUTEROS_TRUE@LoadPlugin routeros
119 #@BUILD_PLUGIN_RRDCACHED_TRUE@LoadPlugin rrdcached
120 @LOAD_PLUGIN_RRDTOOL@LoadPlugin rrdtool
121 #@BUILD_PLUGIN_SENSORS_TRUE@LoadPlugin sensors
122 #@BUILD_PLUGIN_SERIAL_TRUE@LoadPlugin serial
123 #@BUILD_PLUGIN_SNMP_TRUE@LoadPlugin snmp
124 #@BUILD_PLUGIN_SWAP_TRUE@LoadPlugin swap
125 #@BUILD_PLUGIN_TABLE_TRUE@LoadPlugin table
126 #@BUILD_PLUGIN_TAIL_TRUE@LoadPlugin tail
127 #@BUILD_PLUGIN_TAPE_TRUE@LoadPlugin tape
128 #@BUILD_PLUGIN_TCPCONNS_TRUE@LoadPlugin tcpconns
129 #@BUILD_PLUGIN_TEAMSPEAK2_TRUE@LoadPlugin teamspeak2
130 #@BUILD_PLUGIN_TED_TRUE@LoadPlugin ted
131 #@BUILD_PLUGIN_THERMAL_TRUE@LoadPlugin thermal
132 #@BUILD_PLUGIN_TOKYOTYRANT_TRUE@LoadPlugin tokyotyrant
133 #@BUILD_PLUGIN_UNIXSOCK_TRUE@LoadPlugin unixsock
134 #@BUILD_PLUGIN_UPTIME_TRUE@LoadPlugin uptime
135 #@BUILD_PLUGIN_USERS_TRUE@LoadPlugin users
136 #@BUILD_PLUGIN_UUID_TRUE@LoadPlugin uuid
137 #@BUILD_PLUGIN_VARNISH_TRUE@LoadPlugin varnish
138 #@BUILD_PLUGIN_VMEM_TRUE@LoadPlugin vmem
139 #@BUILD_PLUGIN_VSERVER_TRUE@LoadPlugin vserver
140 #@BUILD_PLUGIN_WIRELESS_TRUE@LoadPlugin wireless
141 #@BUILD_PLUGIN_WRITE_HTTP_TRUE@LoadPlugin write_http
142 #@BUILD_PLUGIN_XMMS_TRUE@LoadPlugin xmms
143 #@BUILD_PLUGIN_ZFS_ARC_TRUE@LoadPlugin zfs_arc
145 ##############################################################################
146 # Plugin configuration #
147 #----------------------------------------------------------------------------#
148 # In this section configuration stubs for each plugin are provided. A desc- #
149 # ription of those options is available in the collectd.conf(5) manual page. #
150 ##############################################################################
152 #<Plugin "amqp">
153 # <Publish "name">
154 # Host "localhost"
155 # Port "5672"
156 # VHost "/"
157 # User "guest"
158 # Password "guest"
159 # Exchange "amq.fanout"
160 # RoutingKey "collectd"
161 # Persistent false
162 # StoreRates false
163 # </Publish>
164 #</Plugin>
166 #<Plugin apache>
167 # URL "http://localhost/status?auto"
168 # User "www-user"
169 # Password "secret"
170 # CACert "/etc/ssl/ca.crt"
171 #</Plugin>
173 #<Plugin apcups>
174 # Host "localhost"
175 # Port "3551"
176 #</Plugin>
178 #<Plugin ascent>
179 # URL "http://localhost/ascent/status/"
180 # User "www-user"
181 # Password "secret"
182 # CACert "/etc/ssl/ca.crt"
183 #</Plugin>
185 #<Plugin "bind">
186 # URL "http://localhost:8053/"
187 # OpCodes true
188 # QTypes true
189 #
190 # ServerStats true
191 # ZoneMaintStats true
192 # ResolverStats false
193 # MemoryStats true
194 #
195 # <View "_default">
196 # QTypes true
197 # ResolverStats true
198 # CacheRRSets true
199 #
200 # Zone "127.in-addr.arpa/IN"
201 # </View>
202 #</Plugin>
204 #<Plugin csv>
205 # DataDir "@prefix@/var/lib/@PACKAGE_NAME@/csv"
206 # StoreRates false
207 #</Plugin>
209 #<Plugin curl>
210 # <Page "stock_quotes">
211 # URL "http://finance.google.com/finance?q=NYSE%3AAMD"
212 # User "foo"
213 # Password "bar"
214 # MeasureResponseTime false
215 # <Match>
216 # Regex "<span +class=\"pr\"[^>]*> *([0-9]*\\.[0-9]+) *</span>"
217 # DSType "GaugeAverage"
218 # Type "stock_value"
219 # Instance "AMD"
220 # </Match>
221 # </Page>
222 #</Plugin>
224 #<Plugin curl_json>
225 ## See: http://wiki.apache.org/couchdb/Runtime_Statistics
226 # <URL "http://localhost:5984/_stats">
227 # Instance "httpd"
228 # <Key "httpd/requests/count">
229 # Type "http_requests"
230 # </Key>
231 #
232 # <Key "httpd_request_methods/*/count">
233 # Type "http_request_methods"
234 # </Key>
235 #
236 # <Key "httpd_status_codes/*/count">
237 # Type "http_response_codes"
238 # </Key>
239 # </URL>
240 ## Database status metrics:
241 # <URL "http://localhost:5984/_all_dbs">
242 # Instance "dbs"
243 # <Key "*/doc_count">
244 # Type "gauge"
245 # </Key>
246 # <Key "*/doc_del_count">
247 # Type "counter"
248 # </Key>
249 # <Key "*/disk_size">
250 # Type "bytes"
251 # </Key>
252 # </URL>
253 #</Plugin>
255 #<Plugin "curl_xml">
256 # <URL "http://localhost/stats.xml">
257 # Host "my_host"
258 # Instance "some_instance"
259 # User "collectd"
260 # Password "thaiNg0I"
261 # VerifyPeer true
262 # VerifyHost true
263 # CACert "/path/to/ca.crt"
264 #
265 # <XPath "table[@id=\"magic_level\"]/tr">
266 # Type "magic_level"
267 # #InstancePrefix "prefix-"
268 # InstanceFrom "td[1]"
269 # ValuesFrom "td[2]/span[@class=\"level\"]"
270 # </XPath>
271 # </URL>
272 #</Plugin>
274 #<Plugin dbi>
275 # <Query "num_of_customers">
276 # Statement "SELECT 'customers' AS c_key, COUNT(*) AS c_value FROM customers_tbl"
277 # <Result>
278 # Type "gauge"
279 # InstancesFrom "c_key"
280 # ValuesFrom "c_value"
281 # </Result>
282 # </Query>
283 # <Database "customers_db">
284 # Driver "mysql"
285 # DriverOption "host" "localhost"
286 # DriverOption "username" "collectd"
287 # DriverOption "password" "AeXohy0O"
288 # DriverOption "dbname" "custdb0"
289 # #SelectDB "custdb0"
290 # Query "num_of_customers"
291 # #Query "..."
292 # </Database>
293 #</Plugin>
295 #<Plugin df>
296 # Device "/dev/hda1"
297 # Device "192.168.0.2:/mnt/nfs"
298 # MountPoint "/home"
299 # FSType "ext3"
300 # IgnoreSelected false
301 # ReportByDevice false
302 # ReportReserved false
303 # ReportInodes false
304 #</Plugin>
306 #<Plugin disk>
307 # Disk "/^[hs]d[a-f][0-9]?$/"
308 # IgnoreSelected false
309 #</Plugin>
311 #<Plugin dns>
312 # Interface "eth0"
313 # IgnoreSource "192.168.0.1"
314 # SelectNumericQueryTypes true
315 #</Plugin>
317 #<Plugin email>
318 # SocketFile "@prefix@/var/run/@PACKAGE_NAME@-email"
319 # SocketGroup "collectd"
320 # SocketPerms "0770"
321 # MaxConns 5
322 #</Plugin>
324 #<Plugin exec>
325 # Exec "user:group" "/path/to/exec"
326 # NotificationExec "user:group" "/path/to/exec"
327 #</Plugin>
329 #<Plugin filecount>
330 # <Directory "/path/to/dir">
331 # Instance "foodir"
332 # Name "*.conf"
333 # MTime "-5m"
334 # Size "+10k"
335 # Recursive true
336 # IncludeHidden false
337 # </Directory>
338 #</Plugin>
340 #<Plugin "gmond">
341 # MCReceiveFrom "239.2.11.71" "8649"
342 # <Metric "swap_total">
343 # Type "swap"
344 # TypeInstance "total"
345 # DataSource "value"
346 # </Metric>
347 # <Metric "swap_free">
348 # Type "swap"
349 # TypeInstance "free"
350 # DataSource "value"
351 # </Metric>
352 #</Plugin>
354 #<Plugin hddtemp>
355 # Host "127.0.0.1"
356 # Port "7634"
357 #
358 # #----------------------------------------------------------------#
359 # # `TranslateDevicename' enables backwards compatibility behavior #
360 # # and is enabled by default. Setting this option to `false' is #
361 # # highly recommended. #
362 # #----------------------------------------------------------------#
363 # TranslateDevicename false
364 #</Plugin>
366 #<Plugin interface>
367 # Interface "eth0"
368 # IgnoreSelected false
369 #</Plugin>
371 #<Plugin ipmi>
372 # Sensor "some_sensor"
373 # Sensor "another_one"
374 # IgnoreSelected false
375 # NotifySensorAdd false
376 # NotifySensorRemove true
377 # NotifySensorNotPresent false
378 #</Plugin>
380 #<Plugin iptables>
381 # Chain table chain
382 #</Plugin>
384 #<Plugin irq>
385 # Irq 7
386 # Irq 8
387 # Irq 9
388 # IgnoreSelected true
389 #</Plugin>
391 #<Plugin "java">
392 # JVMArg "-verbose:jni"
393 # JVMArg "-Djava.class.path=@prefix@/share/collectd/java/collectd-api.jar"
394 #
395 # LoadPlugin "org.collectd.java.Foobar"
396 # <Plugin "org.collectd.java.Foobar">
397 # # To be parsed by the plugin
398 # </Plugin>
399 #</Plugin>
401 #<Plugin libvirt>
402 # Connection "xen:///"
403 # RefreshInterval 60
404 # Domain "name"
405 # BlockDevice "name:device"
406 # InterfaceDevice "name:device"
407 # IgnoreSelected false
408 # HostnameFormat name
409 # InterfaceFormat name
410 #</Plugin>
412 #<Plugin madwifi>
413 # Interface "wlan0"
414 # IgnoreSelected false
415 # Source "SysFS"
416 # WatchSet "None"
417 # WatchAdd "node_octets"
418 # WatchAdd "node_rssi"
419 # WatchAdd "is_rx_acl"
420 # WatchAdd "is_scan_active"
421 #</Plugin>
423 #<Plugin mbmon>
424 # Host "127.0.0.1"
425 # Port "411"
426 #</Plugin>
428 #<Plugin memcachec>
429 # <Page "plugin_instance">
430 # Server "localhost"
431 # Key "page_key"
432 # <Match>
433 # Regex "(\\d+) bytes sent"
434 # ExcludeRegex "<lines to be excluded>"
435 # DSType CounterAdd
436 # Type "ipt_octets"
437 # Instance "type_instance"
438 # </Match>
439 # </Page>
440 #</Plugin>
442 #<Plugin memcached>
443 # Host "127.0.0.1"
444 # Port "11211"
445 #</Plugin>
447 #<Plugin modbus>
448 # <Data "data_name">
449 # RegisterBase 1234
450 # RegisterType float
451 # Type gauge
452 # Instance "..."
453 # </Data>
454 #
455 # <Host "name">
456 # Address "addr"
457 # Port "1234"
458 # Interval 60
459 #
460 # <Slave 1>
461 # Instance "foobar" # optional
462 # Collect "data_name"
463 # </Slave>
464 # </Host>
465 #</Plugin>
467 #<Plugin mysql>
468 # <Database db_name>
469 # Host "database.serv.er"
470 # User "db_user"
471 # Password "secret"
472 # Database "db_name"
473 # MasterStats true
474 # </Database>
475 #
476 # <Database db_name2>
477 # Host "localhost"
478 # Socket "/var/run/mysql/mysqld.sock"
479 # SlaveStats true
480 # SlaveNotifications true
481 # </Database>
482 #</Plugin>
484 #<Plugin netapp>
485 # <Host "netapp1.example.com">
486 # Protocol "https"
487 # Address "10.0.0.1"
488 # Port 443
489 # User "username"
490 # Password "aef4Aebe"
491 # Interval 30
492 #
493 # <WAFL>
494 # Interval 30
495 # GetNameCache true
496 # GetDirCache true
497 # GetBufferCache true
498 # GetInodeCache true
499 # </WAFL>
500 #
501 # <Disks>
502 # Interval 30
503 # GetBusy true
504 # </Disks>
505 #
506 # <VolumePerf>
507 # Interval 30
508 # GetIO "volume0"
509 # IgnoreSelectedIO false
510 # GetOps "volume0"
511 # IgnoreSelectedOps false
512 # GetLatency "volume0"
513 # IgnoreSelectedLatency false
514 # </VolumePerf>
515 #
516 # <VolumeUsage>
517 # Interval 30
518 # GetCapacity "vol0"
519 # GetCapacity "vol1"
520 # IgnoreSelectedCapacity false
521 # GetSnapshot "vol1"
522 # GetSnapshot "vol3"
523 # IgnoreSelectedSnapshot false
524 # </VolumeUsage>
525 #
526 # <System>
527 # Interval 30
528 # GetCPULoad true
529 # GetInterfaces true
530 # GetDiskOps true
531 # GetDiskIO true
532 # </System>
533 # </Host>
534 #</Plugin>
536 #<Plugin netlink>
537 # Interface "All"
538 # VerboseInterface "All"
539 # QDisc "eth0" "pfifo_fast-1:0"
540 # Class "ppp0" "htb-1:10"
541 # Filter "ppp0" "u32-1:0"
542 # IgnoreSelected false
543 #</Plugin>
545 @LOAD_PLUGIN_NETWORK@<Plugin network>
546 # # client setup:
547 @LOAD_PLUGIN_NETWORK@ Server "ff18::efc0:4a42" "25826"
548 @LOAD_PLUGIN_NETWORK@ <Server "239.192.74.66" "25826">
549 # SecurityLevel Encrypt
550 # Username "user"
551 # Password "secret"
552 # Interface "eth0"
553 @LOAD_PLUGIN_NETWORK@ </Server>
554 # TimeToLive "128"
555 #
556 # # server setup:
557 # Listen "ff18::efc0:4a42" "25826"
558 # <Listen "239.192.74.66" "25826">
559 # SecurityLevel Sign
560 # AuthFile "/etc/collectd/passwd"
561 # Interface "eth0"
562 # </Listen>
563 # MaxPacketSize 1024
564 #
565 # # proxy setup (client and server as above):
566 # Forward true
567 #
568 # # statistics about the network plugin itself
569 # ReportStats false
570 #
571 # # "garbage collection"
572 # CacheFlush 1800
573 @LOAD_PLUGIN_NETWORK@</Plugin>
575 #<Plugin nginx>
576 # URL "http://localhost/status?auto"
577 # User "www-user"
578 # Password "secret"
579 # CACert "/etc/ssl/ca.crt"
580 #</Plugin>
582 #<Plugin notify_desktop>
583 # OkayTimeout 1000
584 # WarningTimeout 5000
585 # FailureTimeout 0
586 #</Plugin>
588 #<Plugin notify_email>
589 # SMTPServer "localhost"
590 # SMTPPort 25
591 # SMTPUser "my-username"
592 # SMTPPassword "my-password"
593 # From "collectd@main0server.com"
594 # # <WARNING/FAILURE/OK> on <hostname>. beware! do not use not more than two %s in this string!!!
595 # Subject "Aaaaaa!! %s on %s!!!!!"
596 # Recipient "email1@domain1.net"
597 # Recipient "email2@domain2.com"
598 #</Plugin>
600 #<Plugin ntpd>
601 # Host "localhost"
602 # Port 123
603 # ReverseLookups false
604 #</Plugin>
606 #<Plugin nut>
607 # UPS "upsname@hostname:port"
608 #</Plugin>
610 #<Plugin olsrd>
611 # Host "127.0.0.1"
612 # Port "2006"
613 # CollectLinks "Summary"
614 # CollectRoutes "Summary"
615 # CollectTopology "Summary"
616 #</Plugin>
618 #<Plugin onewire>
619 # Device "-s localhost:4304"
620 # Sensor "F10FCA000800"
621 # IgnoreSelected false
622 #</Plugin>
624 #<Plugin openvpn>
625 # StatusFile "/etc/openvpn/openvpn-status.log"
626 # ImprovedNamingSchema false
627 # CollectCompression true
628 # CollectIndividualUsers true
629 # CollectUserCount false
630 #</Plugin>
632 #<Plugin oracle>
633 # <Query "out_of_stock">
634 # Statement "SELECT category, COUNT(*) AS value FROM products WHERE in_stock = 0 GROUP BY category"
635 # <Result>
636 # Type "gauge"
637 # InstancesFrom "category"
638 # ValuesFrom "value"
639 # </Result>
640 # </Query>
641 # <Database "product_information">
642 # ConnectID "db01"
643 # Username "oracle"
644 # Password "secret"
645 # Query "out_of_stock"
646 # </Database>
647 #</Plugin>
649 #<Plugin perl>
650 # IncludeDir "/my/include/path"
651 # BaseName "Collectd::Plugins"
652 # EnableDebugger ""
653 # LoadPlugin Monitorus
654 # LoadPlugin OpenVZ
655 #
656 # <Plugin foo>
657 # Foo "Bar"
658 # Qux "Baz"
659 # </Plugin>
660 #</Plugin>
662 #<Plugin pinba>
663 # Address "::0"
664 # Port "30002"
665 # <View "name">
666 # Host "host name"
667 # Server "server name"
668 # Script "script name"
669 # </View>
670 #</Plugin>
672 #<Plugin ping>
673 # Host "host.foo.bar"
674 # Interval 1.0
675 # Timeout 0.9
676 # TTL 255
677 # SourceAddress "1.2.3.4"
678 # Device "eth0"
679 # MaxMissed -1
680 #</Plugin>
682 #<Plugin postgresql>
683 # <Query magic>
684 # Statement "SELECT magic FROM wizard WHERE host = $1;"
685 # Param hostname
686 # <Result>
687 # Type gauge
688 # InstancePrefix "magic"
689 # ValuesFrom magic
690 # </Result>
691 # </Query>
692 # <Query rt36_tickets>
693 # Statement "SELECT COUNT(type) AS count, type \
694 # FROM (SELECT CASE \
695 # WHEN resolved = 'epoch' THEN 'open' \
696 # ELSE 'resolved' END AS type \
697 # FROM tickets) type \
698 # GROUP BY type;"
699 # <Result>
700 # Type counter
701 # InstancePrefix "rt36_tickets"
702 # InstancesFrom "type"
703 # ValuesFrom "count"
704 # </Result>
705 # </Query>
706 # <Database foo>
707 # Host "hostname"
708 # Port "5432"
709 # User "username"
710 # Password "secret"
711 # SSLMode "prefer"
712 # KRBSrvName "kerberos_service_name"
713 # Query magic
714 # </Database>
715 # <Database bar>
716 # Interval 60
717 # Service "service_name"
718 # Query backend # predefined
719 # Query rt36_tickets
720 # </Database>
721 #</Plugin>
723 #<Plugin powerdns>
724 # <Server "server_name">
725 # Collect "latency"
726 # Collect "udp-answers" "udp-queries"
727 # Socket "/var/run/pdns.controlsocket"
728 # </Server>
729 # <Recursor "recursor_name">
730 # Collect "questions"
731 # Collect "cache-hits" "cache-misses"
732 # Socket "/var/run/pdns_recursor.controlsocket"
733 # </Recursor>
734 # LocalSocket "/opt/collectd/var/run/collectd-powerdns"
735 #</Plugin>
737 #<Plugin processes>
738 # Process "name"
739 #</Plugin>
741 #<Plugin protocols>
742 # Value "/^Tcp:/"
743 # IgnoreSelected false
744 #</Plugin>
746 #<Plugin python>
747 # ModulePath "/path/to/your/python/modules"
748 # LogTraces true
749 # Interactive true
750 # Import "spam"
751 #
752 # <Module spam>
753 # spam "wonderful" "lovely"
754 # </Module>
755 #</Plugin>
757 #<Plugin routeros>
758 # <Router>
759 # Host "router.example.com"
760 # Port "8728"
761 # User "admin"
762 # Password "dozaiTh4"
763 # CollectInterface true
764 # CollectRegistrationTable true
765 # CollectCPULoad true
766 # CollectMemory true
767 # CollectDF true
768 # CollectDisk true
769 # </Router>
770 #</Plugin>
772 #<Plugin rrdcached>
773 # DaemonAddress "unix:/tmp/rrdcached.sock"
774 # DataDir "@prefix@/var/lib/@PACKAGE_NAME@/rrd"
775 # CreateFiles true
776 # CollectStatistics true
777 #</Plugin>
779 #<Plugin rrdtool>
780 # DataDir "@prefix@/var/lib/@PACKAGE_NAME@/rrd"
781 # CacheTimeout 120
782 # CacheFlush 900
783 #</Plugin>
785 #<Plugin sensors>
786 # Sensor "it8712-isa-0290/temperature-temp1"
787 # Sensor "it8712-isa-0290/fanspeed-fan3"
788 # Sensor "it8712-isa-0290/voltage-in8"
789 # IgnoreSelected false
790 #</Plugin>
792 #<Plugin snmp>
793 # <Data "powerplus_voltge_input">
794 # Type "voltage"
795 # Table false
796 # Instance "input_line1"
797 # Values "SNMPv2-SMI::enterprises.6050.5.4.1.1.2.1"
798 # </Data>
799 # <Data "hr_users">
800 # Type "users"
801 # Table false
802 # Instance ""
803 # Values "HOST-RESOURCES-MIB::hrSystemNumUsers.0"
804 # </Data>
805 # <Data "std_traffic">
806 # Type "if_octets"
807 # Table true
808 # Instance "IF-MIB::ifDescr"
809 # Values "IF-MIB::ifInOctets" "IF-MIB::ifOutOctets"
810 # </Data>
811 #
812 # <Host "some.switch.mydomain.org">
813 # Address "192.168.0.2"
814 # Version 1
815 # Community "community_string"
816 # Collect "std_traffic"
817 # Interval 120
818 # </Host>
819 # <Host "some.server.mydomain.org">
820 # Address "192.168.0.42"
821 # Version 2
822 # Community "another_string"
823 # Collect "std_traffic" "hr_users"
824 # </Host>
825 # <Host "some.ups.mydomain.org">
826 # Address "192.168.0.3"
827 # Version 1
828 # Community "more_communities"
829 # Collect "powerplus_voltge_input"
830 # Interval 300
831 # </Host>
832 #</Plugin>
834 #<Plugin "table">
835 # <Table "/proc/slabinfo">
836 # Instance "slabinfo"
837 # Separator " "
838 # <Result>
839 # Type gauge
840 # InstancePrefix "active_objs"
841 # InstancesFrom 0
842 # ValuesFrom 1
843 # </Result>
844 # <Result>
845 # Type gauge
846 # InstancePrefix "objperslab"
847 # InstancesFrom 0
848 # ValuesFrom 4
849 # </Result>
850 # </Table>
851 #</Plugin>
853 #<Plugin "tail">
854 # <File "/var/log/exim4/mainlog">
855 # Instance "exim"
856 # <Match>
857 # Regex "S=([1-9][0-9]*)"
858 # DSType "CounterAdd"
859 # Type "ipt_bytes"
860 # Instance "total"
861 # </Match>
862 # <Match>
863 # Regex "\\<R=local_user\\>"
864 # ExcludeRegex "\\<R=local_user\\>.*mail_spool defer"
865 # DSType "CounterInc"
866 # Type "counter"
867 # Instance "local_user"
868 # </Match>
869 # </File>
870 #</Plugin>
872 #<Plugin tcpconns>
873 # ListeningPorts false
874 # LocalPort "25"
875 # RemotePort "25"
876 #</Plugin>
878 #<Plugin teamspeak2>
879 # Host "127.0.0.1"
880 # Port "51234"
881 # Server "8767"
882 #</Plugin>
884 #<Plugin ted>
885 # Device "/dev/ttyUSB0"
886 # Retries 0
887 #</Plugin>
889 #<Plugin thermal>
890 # ForceUseProcfs false
891 # Device "THRM"
892 # IgnoreSelected false
893 #</Plugin>
895 #<Plugin tokyotyrant>
896 # Host "localhost"
897 # Port "1978"
898 #</Plugin>
900 #<Plugin unixsock>
901 # SocketFile "@prefix@/var/run/@PACKAGE_NAME@-unixsock"
902 # SocketGroup "collectd"
903 # SocketPerms "0660"
904 #</Plugin>
906 #<Plugin uuid>
907 # UUIDFile "/etc/uuid"
908 #</Plugin>
910 #<Plugin varnish>
911 # This tag support an argument if you want to
912 # monitor the local instance just use </Instance>
913 # If you prefer defining another instance you can do
914 # so by using <Instance "myinstance">
915 # <Instance>
916 # CollectCache true
917 # CollectBackend true
918 # CollectConnections true
919 # CollectSHM true
920 # CollectESI false
921 # CollectFetch false
922 # CollectHCB false
923 # CollectSMA false
924 # CollectSMS false
925 # CollectSM false
926 # CollectTotals false
927 # CollectWorkers false
928 # </Instance>
929 #</Plugin>
931 #<Plugin vmem>
932 # Verbose false
933 #</Plugin>
935 #<Plugin write_http>
936 # <URL "http://example.com/collectd-post">
937 # User "collectd"
938 # Password "weCh3ik0"
939 # VerifyPeer true
940 # VerifyHost true
941 # CACert "/etc/ssl/ca.crt"
942 # Format "Command"
943 # StoreRates false
944 # </URL>
945 #</Plugin>
947 ##############################################################################
948 # Filter configuration #
949 #----------------------------------------------------------------------------#
950 # The following configures collectd's filtering mechanism. Before changing #
951 # anything in this section, please read the `FILTER CONFIGURATION' section #
952 # in the collectd.conf(5) manual page. #
953 ##############################################################################
955 # Load required matches:
956 #@BUILD_PLUGIN_MATCH_EMPTY_COUNTER_TRUE@LoadPlugin match_empty_counter
957 #@BUILD_PLUGIN_MATCH_HASHED_TRUE@LoadPlugin match_hashed
958 #@BUILD_PLUGIN_MATCH_REGEX_TRUE@LoadPlugin match_regex
959 #@BUILD_PLUGIN_MATCH_VALUE_TRUE@LoadPlugin match_value
960 #@BUILD_PLUGIN_MATCH_TIMEDIFF_TRUE@LoadPlugin match_timediff
962 # Load required targets:
963 #@BUILD_PLUGIN_TARGET_NOTIFICATION_TRUE@LoadPlugin target_notification
964 #@BUILD_PLUGIN_TARGET_REPLACE_TRUE@LoadPlugin target_replace
965 #@BUILD_PLUGIN_TARGET_SCALE_TRUE@LoadPlugin target_scale
966 #@BUILD_PLUGIN_TARGET_SET_TRUE@LoadPlugin target_set
968 #----------------------------------------------------------------------------#
969 # The following block demonstrates the default behavior if no filtering is #
970 # configured at all: All values will be sent to all available write plugins. #
971 #----------------------------------------------------------------------------#
973 #<Chain "PostCache">
974 # Target "write"
975 #</Chain>