Code

rules, control, collectd.conf: Disabled curl_json plugin.
[pkg-collectd.git] / debian / collectd.conf
1 # Config file for collectd(1).
2 #
3 # Some plugins need additional configuration and are disabled by default.
4 # Please read collectd.conf(5) for details.
5 #
6 # You should also read /usr/share/doc/collectd-core/README.Debian.plugins
7 # before enabling any more plugins.
9 #Hostname "localhost"
10 FQDNLookup true
11 #BaseDir "/var/lib/collectd"
12 #PluginDir "/usr/lib/collectd"
13 #TypesDB "/usr/share/collectd/types.db" "/etc/collectd/my_types.db"
14 #Interval 10
15 #ReadThreads 5
17 #LoadPlugin logfile
18 LoadPlugin syslog
20 #<Plugin logfile>
21 #       LogLevel "info"
22 #       File STDOUT
23 #       Timestamp true
24 #</Plugin>
26 <Plugin syslog>
27         LogLevel info
28 </Plugin>
30 #LoadPlugin apache
31 #LoadPlugin apcups
32 #LoadPlugin ascent
33 LoadPlugin battery
34 #LoadPlugin bind
35 #LoadPlugin conntrack
36 LoadPlugin cpu
37 #LoadPlugin cpufreq
38 #LoadPlugin csv
39 #LoadPlugin curl
40 LoadPlugin df
41 LoadPlugin disk
42 #LoadPlugin dns
43 #LoadPlugin email
44 LoadPlugin entropy
45 #LoadPlugin exec
46 #LoadPlugin filecount
47 #LoadPlugin fscache
48 #LoadPlugin hddtemp
49 LoadPlugin interface
50 #LoadPlugin ipmi
51 #LoadPlugin iptables
52 #LoadPlugin ipvs
53 LoadPlugin irq
54 #LoadPlugin java
55 #LoadPlugin libvirt
56 LoadPlugin load
57 #LoadPlugin madwifi
58 #LoadPlugin mbmon
59 #LoadPlugin memcached
60 LoadPlugin memory
61 #LoadPlugin multimeter
62 #LoadPlugin mysql
63 #LoadPlugin netlink
64 #LoadPlugin network
65 #LoadPlugin nfs
66 #LoadPlugin nginx
67 #LoadPlugin notify_desktop
68 #LoadPlugin notify_email
69 #LoadPlugin ntpd
70 #LoadPlugin nut
71 #LoadPlugin olsrd
72 #LoadPlugin openvpn
73 #LoadPlugin perl
74 #LoadPlugin ping
75 #LoadPlugin postgresql
76 #LoadPlugin powerdns
77 LoadPlugin processes
78 #LoadPlugin protocols
79 LoadPlugin rrdtool
80 #LoadPlugin sensors
81 #LoadPlugin serial
82 #LoadPlugin snmp
83 LoadPlugin swap
84 #LoadPlugin table
85 #LoadPlugin tail
86 #LoadPlugin tcpconns
87 #LoadPlugin teamspeak2
88 #LoadPlugin ted
89 #LoadPlugin thermal
90 #LoadPlugin unixsock
91 #LoadPlugin uptime
92 LoadPlugin users
93 #LoadPlugin uuid
94 #LoadPlugin vmem
95 #LoadPlugin vserver
96 #LoadPlugin wireless
97 #LoadPlugin write_http
99 #<Plugin apache>
100 #       <Instance "foo">
101 #               URL "http://localhost/server-status?auto"
102 #               User "www-user"
103 #               Password "secret"
104 #               VerifyPeer false
105 #               VerifyHost false
106 #               CACert "/etc/ssl/ca.crt"
107 #               Server "apache"
108 #       </Instance>
110 #       <Instance "bar">
111 #               URL "http://some.domain.tld/status?auto"
112 #               Host "some.domain.tld"
113 #               Server "lighttpd"
114 #       </Instance>
115 #</Plugin>
117 #<Plugin apcups>
118 #       Host "localhost"
119 #       Port "3551"
120 #</Plugin>
122 #<Plugin ascent>
123 #       URL "http://localhost/ascent/status/"
124 #       User "www-user"
125 #       Password "secret"
126 #       VerifyPeer false
127 #       VerifyHost false
128 #       CACert "/etc/ssl/ca.crt"
129 #</Plugin>
131 #<Plugin "bind">
132 #       URL "http://localhost:8053/"
134 #       OpCodes true
135 #       QTypes true
136 #       ServerStats true
137 #       ZoneMaintStats true
138 #       ResolverStats false
139 #       MemoryStats true
141 #       <View "_default">
142 #               QTypes true
143 #               ResolverStats true
144 #               CacheRRSets true
146 #               Zone "127.in-addr.arpa/IN"
147 #       </View>
148 #</Plugin>
150 #<Plugin csv>
151 #       DataDir "/var/lib/collectd/csv"
152 #       StoreRates false
153 #</Plugin>
155 #<Plugin curl>
156 #       <Page "stock_quotes">
157 #               URL "http://finance.google.com/finance?q=NYSE%3AAMD"
158 #               User "foo"
159 #               Password "bar"
160 #               VerifyPeer false
161 #               VerifyHost false
162 #               CACert "/etc/ssl/ca.crt"
163 #               <Match>
164 #                       Regex "<span +class=\"pr\"[^>]*> *([0-9]*\\.[0-9]+) *</span>"
165 #                       DSType "GaugeAverage"
166 #                       Type "stock_value"
167 #                       Instance "AMD"
168 #               </Match>
169 #       </Page>
170 #</Plugin>
172 #<Plugin df>
173 #       Device "/dev/sda1"
174 #       Device "192.168.0.2:/mnt/nfs"
175 #       MountPoint "/home"
176 #       FSType "ext3"
177 #       IgnoreSelected false
178 #       ReportByDevice false
179 #</Plugin>
181 #<Plugin disk>
182 #       Disk "hda"
183 #       Disk "/sda[23]/"
184 #       IgnoreSelected false
185 #</Plugin>
187 #<Plugin dns>
188 #       Interface "eth0"
189 #       IgnoreSource "192.168.0.1"
190 #       SelectNumericQueryTypes false
191 #</Plugin>
193 #<Plugin email>
194 #       SocketFile "/var/run/collectd-email"
195 #       SocketGroup "collectd"
196 #       SocketPerms "0770"
197 #       MaxConns 5
198 #</Plugin>
200 #<Plugin exec>
201 #       Exec user "/path/to/exec"
202 #       Exec "user:group" "/path/to/exec"
203 #       NotificationExec user "/path/to/exec"
204 #</Plugin>
206 #<Plugin filecount>
207 #       <Directory "/path/to/dir">
208 #               Instance "foodir"
209 #               Name "*.conf"
210 #               MTime "-5m"
211 #               Size "+10k"
212 #               Recursive true
213 #       </Directory>
214 #</Plugin>
216 #<Plugin hddtemp>
217 #       Host "127.0.0.1"
218 #       Port 7634
219 #       TranslateDevicename false
220 #</Plugin>
222 #<Plugin interface>
223 #       Interface "eth0"
224 #       IgnoreSelected false
225 #</Plugin>
227 #<Plugin ipmi>
228 #       Sensor "some_sensor"
229 #       Sensor "another_one"
230 #       IgnoreSelected false
231 #       NotifySensorAdd false
232 #       NotifySensorRemove true
233 #       NotifySensorNotPresent false
234 #</Plugin>
236 #<Plugin iptables>
237 #       Chain "table" "chain"
238 #</Plugin>
240 #<Plugin irq>
241 #       Irq 7
242 #       Irq 8
243 #       Irq 9
244 #       IgnoreSelected true
245 #</Plugin>
247 #<Plugin java>
248 #       JVMArg "-verbose:jni"
250 #       LoadPlugin "org.collectd.java.GenericJMX"
251 #       <Plugin "GenericJMX">
252 #               # See /usr/share/doc/collectd/examples/GenericJMX.conf
253 #               # for an example config.
254 #       </Plugin>
255 #</Plugin>
257 #<Plugin libvirt>
258 #       Connection "xen:///"
259 #       RefreshInterval 60
260 #       Domain "name"
261 #       BlockDevice "name:device"
262 #       InterfaceDevice "name:device"
263 #       IgnoreSelected false
264 #       HostnameFormat name
265 #</Plugin>
267 #<Plugin madwifi>
268 #       Interface "wlan0"
269 #       IgnoreSelected false
270 #       Source "SysFS"
271 #       WatchSet "None"
272 #       WatchAdd "node_octets"
273 #       WatchAdd "node_rssi"
274 #       WatchAdd "is_rx_acl"
275 #       WatchAdd "is_scan_active"
276 #</Plugin>
278 #<Plugin mbmon>
279 #       Host "127.0.0.1"
280 #       Port 411
281 #</Plugin>
283 #<Plugin memcached>
284 #       Socket "/var/run/memcached.sock"
285 # or:
286 #       Host "127.0.0.1"
287 #       Port "11211"
288 #</Plugin>
290 #<Plugin mysql>
291 #       <Database db_name>
292 #               Host "database.serv.er"
293 #               Port "3306"
294 #               User "db_user"
295 #               Password "secret"
296 #               Database "db_name"
297 #               MasterStats true
298 #       </Database>
300 #       <Database db_name2>
301 #               Host "localhost"
302 #               Socket "/var/run/mysql/mysqld.sock"
303 #               SlaveStats true
304 #               SlaveNotifications true
305 #       </Database>
306 #</Plugin>
308 #<Plugin netlink>
309 #       Interface "All"
310 #       VerboseInterface "All"
311 #       QDisc "eth0" "pfifo_fast-1:0"
312 #       Class "ppp0" "htb-1:10"
313 #       Filter "ppp0" "u32-1:0"
314 #       IgnoreSelected false
315 #</Plugin>
317 #<Plugin network>
318 #       # client setup:
319 #       Server "ff18::efc0:4a42" "25826"
320 #       <Server "239.192.74.66" "25826">
321 #               SecurityLevel Encrypt
322 #               Username "user"
323 #               Password "secret"
324 #       </Server>
325 #       TimeToLive "128"
327 #       # server setup:
328 #       Listen "ff18::efc0:4a42" "25826"
329 #       <Listen "239.192.74.66" "25826">
330 #               SecurityLevel Sign
331 #               AuthFile "/etc/collectd/passwd"
332 #       </Listen>
333 #       MaxPacketSize 1024
335 #       # proxy setup (client and server as above):
336 #       Forward true
337 #</Plugin>
339 #<Plugin nginx>
340 #       URL "http://localhost/status?auto"
341 #       User "www-user"
342 #       Password "secret"
343 #       VerifyPeer false
344 #       VerifyHost false
345 #       CACert "/etc/ssl/ca.crt"
346 #</Plugin>
348 #<Plugin notify_desktop>
349 #       OkayTimeout 1000
350 #       WarningTimeout 5000
351 #       FailureTimeout 0
352 #</Plugin>
354 #<Plugin notify_email>
355 #       SMTPServer "localhost"
356 #       SMTPPort 25
357 #       SMTPUser "my-username"
358 #       SMTPPassword "my-password"
359 #       From "collectd@main0server.com"
360 #       # <WARNING/FAILURE/OK> on <hostname>.
361 #       # Beware! Do not use not more than two placeholders (%)!
362 #       Subject "[collectd] %s on %s!"
363 #       Recipient "email1@domain1.net"
364 #       Recipient "email2@domain2.com"
365 #</Plugin>
367 #<Plugin ntpd>
368 #       Host "localhost"
369 #       Port 123
370 #       ReverseLookups false
371 #</Plugin>
373 #<Plugin nut>
374 #       UPS "upsname@hostname:port"
375 #</Plugin>
377 #<Plugin olsrd>
378 #       Host "127.0.0.1"
379 #       Port "2006"
380 #       CollectLinks "Summary"
381 #       CollectRoutes "Summary"
382 #       CollectTopology "Summary"
383 #</Plugin>
385 #<Plugin openvpn>
386 #       StatusFile "/etc/openvpn/openvpn-status.log"
387 #</Plugin>
389 #<Plugin perl>
390 #       IncludeDir "/my/include/path"
391 #       BaseName "Collectd::Plugin"
392 #       EnableDebugger ""
393 #       LoadPlugin "foo"
394 #       LoadPlugin "bar"
396 #       <Plugin foo>
397 #               Foo "Bar"
398 #               Qux "Baz"
399 #       </Plugin>
400 #</Plugin>
402 #<Plugin ping>
403 #       Host "host.foo.bar"
404 #       Host "host.baz.qux"
405 #       Interval 1.0
406 #       Timeout 0.9
407 #       TTL 255
408 #</Plugin>
410 #<Plugin postgresql>
411 #       <Query magic>
412 #               Statement "SELECT magic FROM wizard WHERE host = $1;"
413 #               Param hostname
415 #               <Result>
416 #                       Type gauge
417 #                       InstancePrefix "magic"
418 #                       ValuesFrom "magic"
419 #               </Result>
420 #       </Query>
422 #       <Query rt36_tickets>
423 #               Statement "SELECT COUNT(type) AS count, type \
424 #                                 FROM (SELECT CASE \
425 #                                              WHEN resolved = 'epoch' THEN 'open' \
426 #                                              ELSE 'resolved' END AS type \
427 #                                              FROM tickets) type \
428 #                                 GROUP BY type;"
430 #               <Result>
431 #                       Type counter
432 #                       InstancePrefix "rt36_tickets"
433 #                       InstancesFrom "type"
434 #                       ValuesFrom "count"
435 #               </Result>
436 #       </Query>
438 #       <Database foo>
439 #               Host "hostname"
440 #               Port 5432
441 #               User "username"
442 #               Password "secret"
444 #               SSLMode "prefer"
445 #               KRBSrvName "kerberos_service_name"
447 #               Query magic
448 #       </Database>
450 #       <Database bar>
451 #               Service "service_name"
453 #               Query backend # predefined
454 #               Query rt36_tickets
455 #       </Database>
456 #</Plugin>
458 #<Plugin powerdns>
459 #       <Server "server_name">
460 #               Collect "latency"
461 #               Collect "udp-answers" "udp-queries"
462 #               Socket "/var/run/pdns.controlsocket"
463 #       </Server>
464 #       <Recursor "recursor_name">
465 #               Collect "questions"
466 #               Collect "cache-hits" "cache-misses"
467 #               Socket "/var/run/pdns_recursor.controlsocket"
468 #       </Recursor>
469 #       LocalSocket "/opt/collectd/var/run/collectd-powerdns"
470 #</Plugin>
472 #<Plugin processes>
473 #       Process "name"
474 #       ProcessMatch "foobar" "/usr/bin/perl foobar\\.pl.*"
475 #</Plugin>
477 #<Plugin protocols>
478 #       Value "/^Tcp:/"
479 #       IgnoreSelected false
480 #</Plugin>
482 <Plugin rrdtool>
483         DataDir "/var/lib/collectd/rrd"
484 #       CacheTimeout 120
485 #       CacheFlush 900
486 #       WritesPerSecond 30
487 #       RandomTimeout 0
489 # The following settings are rather advanced
490 # and should usually not be touched:
491 #       StepSize 10
492 #       HeartBeat 20
493 #       RRARows 1200
494 #       RRATimespan 158112000
495 #       XFF 0.1
496 </Plugin>
498 #<Plugin sensors>
499 #       Sensor "it8712-isa-0290/temperature-temp1"
500 #       Sensor "it8712-isa-0290/fanspeed-fan3"
501 #       Sensor "it8712-isa-0290/voltage-in8"
502 #       IgnoreSelected false
503 #</Plugin>
505 # See /usr/share/doc/collectd/examples/snmp-data.conf.gz for a
506 # comprehensive sample configuration.
507 #<Plugin snmp>
508 #       <Data "powerplus_voltge_input">
509 #               Type "voltage"
510 #               Table false
511 #               Instance "input_line1"
512 #               Scale 0.1
513 #               Values "SNMPv2-SMI::enterprises.6050.5.4.1.1.2.1"
514 #       </Data>
515 #       <Data "hr_users">
516 #               Type "users"
517 #               Table false
518 #               Instance ""
519 #               Shift -1
520 #               Values "HOST-RESOURCES-MIB::hrSystemNumUsers.0"
521 #       </Data>
522 #       <Data "std_traffic">
523 #               Type "if_octets"
524 #               Table true
525 #               InstancePrefix "traffic"
526 #               Instance "IF-MIB::ifDescr"
527 #               Values "IF-MIB::ifInOctets" "IF-MIB::ifOutOctets"
528 #       </Data>
530 #       <Host "some.switch.mydomain.org">
531 #               Address "192.168.0.2"
532 #               Version 1
533 #               Community "community_string"
534 #               Collect "std_traffic"
535 #               Inverval 120
536 #       </Host>
537 #       <Host "some.server.mydomain.org">
538 #               Address "192.168.0.42"
539 #               Version 2
540 #               Community "another_string"
541 #               Collect "std_traffic" "hr_users"
542 #       </Host>
543 #       <Host "some.ups.mydomain.org">
544 #               Address "192.168.0.3"
545 #               Version 1
546 #               Community "more_communities"
547 #               Collect "powerplus_voltge_input"
548 #               Interval 300
549 #       </Host>
550 #</Plugin>
552 #<Plugin table>
553 #       <Table "/proc/slabinfo">
554 #               Instance "slabinfo"
555 #               Separator " "
556 #               <Result>
557 #                       Type gauge
558 #                       InstancePrefix "active_objs"
559 #                       InstancesFrom 0
560 #                       ValuesFrom 1
561 #               </Result>
562 #               <Result>
563 #                       Type gauge
564 #                       InstancePrefix "objperslab"
565 #                       InstancesFrom 0
566 #                       ValuesFrom 4
567 #               </Result>
568 #       </Table>
569 #</Plugin>
571 #<Plugin "tail">
572 #       <File "/var/log/exim4/mainlog">
573 #               Instance "exim"
574 #               <Match>
575 #                       Regex "S=([1-9][0-9]*)"
576 #                       DSType "CounterAdd"
577 #                       Type "ipt_bytes"
578 #                       Instance "total"
579 #               </Match>
580 #               <Match>
581 #                       Regex "\\<R=local_user\\>"
582 #                       DSType "CounterInc"
583 #                       Type "counter"
584 #                       Instance "local_user"
585 #               </Match>
586 #       </File>
587 #</Plugin>
589 #<Plugin tcpconns>
590 #       ListeningPorts false
591 #       LocalPort "25"
592 #       RemotePort "25"
593 #</Plugin>
595 #<Plugin teamspeak2>
596 #       Host "127.0.0.1"
597 #       Port "51234"
598 #       Server "8767"
599 #</Plugin>
601 #<Plugin ted>
602 #       Device "/dev/ttyUSB0"
603 #       Retries 0
604 #</Plugin>
606 #<Plugin thermal>
607 #       ForceUseProcfs false
608 #       Device "THRM"
609 #       IgnoreSelected false
610 #</Plugin>
612 #<Plugin unixsock>
613 #       SocketFile "/var/run/collectd-unixsock"
614 #       SocketGroup "collectd"
615 #       SocketPerms "0660"
616 #</Plugin>
618 #<Plugin uuid>
619 #       UUIDFile "/etc/uuid"
620 #</Plugin>
622 #<Plugin vmem>
623 #       Verbose false
624 #</Plugin>
626 #<Plugin write_http>
627 #       <URL "http://example.com/collectd-post">
628 #               User "collectd"
629 #               Password "secret"
630 #       </URL>
631 #</Plugin>
633 Include "/etc/collectd/filters.conf"
634 Include "/etc/collectd/thresholds.conf"