1
0

collectd.conf 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847
  1. #
  2. # Config file for collectd(1).
  3. # Please read collectd.conf(5) for a list of options.
  4. # http://collectd.org/
  5. #
  6. ##############################################################################
  7. # Global #
  8. #----------------------------------------------------------------------------#
  9. # Global settings for the daemon. #
  10. ##############################################################################
  11. #Hostname "localhost"
  12. FQDNLookup true
  13. #BaseDir "/usr/var/lib/collectd"
  14. #PIDFile "/usr/var/run/collectd.pid"
  15. #PluginDir "/usr/lib/collectd"
  16. #TypesDB "/usr/share/collectd/types.db"
  17. #Interval 10
  18. #ReadThreads 5
  19. ##############################################################################
  20. # Logging #
  21. #----------------------------------------------------------------------------#
  22. # Plugins which provide logging functions should be loaded first, so log #
  23. # messages generated when loading or configuring other plugins can be #
  24. # accessed. #
  25. ##############################################################################
  26. LoadPlugin syslog
  27. ##LoadPlugin logfile
  28. #<Plugin logfile>
  29. # LogLevel info
  30. # File STDOUT
  31. # Timestamp true
  32. #</Plugin>
  33. <Plugin syslog>
  34. LogLevel info
  35. </Plugin>
  36. ##############################################################################
  37. # LoadPlugin section #
  38. #----------------------------------------------------------------------------#
  39. # Lines beginning with a single `#' belong to plugins which have been built #
  40. # but are disabled by default. #
  41. # #
  42. # Lines begnning with `##' belong to plugins which have not been built due #
  43. # to missing dependencies or because they have been deactivated explicitly. #
  44. ##############################################################################
  45. ##LoadPlugin apache
  46. ##LoadPlugin apcups
  47. ##LoadPlugin apple_sensors
  48. ##LoadPlugin ascent
  49. ##LoadPlugin battery
  50. ##LoadPlugin bind
  51. #LoadPlugin conntrack
  52. ##LoadPlugin contextswitch
  53. LoadPlugin cpu
  54. ##LoadPlugin cpufreq
  55. LoadPlugin csv
  56. #LoadPlugin curl
  57. ##LoadPlugin curl_json
  58. ##LoadPlugin dbi
  59. ##LoadPlugin df
  60. ##LoadPlugin disk
  61. ##LoadPlugin dns
  62. ##LoadPlugin email
  63. ##LoadPlugin entropy
  64. ##LoadPlugin exec
  65. ##LoadPlugin filecount
  66. ##LoadPlugin fscache
  67. ##LoadPlugin gmond
  68. ##LoadPlugin hddtemp
  69. ##LoadPlugin interface
  70. ##LoadPlugin iptables
  71. ##LoadPlugin ipmi
  72. ##LoadPlugin ipvs
  73. ##LoadPlugin irq
  74. ##LoadPlugin java
  75. ##LoadPlugin libvirt
  76. LoadPlugin load
  77. ##LoadPlugin madwifi
  78. ##LoadPlugin mbmon
  79. ##LoadPlugin memcachec
  80. ##LoadPlugin memcached
  81. LoadPlugin memory
  82. ##LoadPlugin multimeter
  83. ##LoadPlugin mysql
  84. ##LoadPlugin netapp
  85. ##LoadPlugin netlink
  86. ##LoadPlugin network
  87. ##LoadPlugin nfs
  88. ##LoadPlugin nginx
  89. ##LoadPlugin notify_desktop
  90. ##LoadPlugin notify_email
  91. ##LoadPlugin ntpd
  92. ##LoadPlugin nut
  93. #LoadPlugin olsrd
  94. ##LoadPlugin onewire
  95. ##LoadPlugin openvpn
  96. ##LoadPlugin oracle
  97. ##LoadPlugin perl
  98. ##LoadPlugin ping
  99. ##LoadPlugin postgresql
  100. ##LoadPlugin powerdns
  101. ##LoadPlugin processes
  102. #LoadPlugin protocols
  103. ##LoadPlugin python
  104. ##LoadPlugin routeros
  105. ##LoadPlugin rrdcached
  106. ##LoadPlugin rrdtool
  107. ##LoadPlugin sensors
  108. ##LoadPlugin serial
  109. ##LoadPlugin snmp
  110. ##LoadPlugin swap
  111. #LoadPlugin table
  112. #LoadPlugin tail
  113. ##LoadPlugin tape
  114. #LoadPlugin tcpconns
  115. ##LoadPlugin teamspeak2
  116. ##LoadPlugin ted
  117. ##LoadPlugin thermal
  118. ##LoadPlugin tokyotyrant
  119. ##LoadPlugin unixsock
  120. #LoadPlugin uptime
  121. ##LoadPlugin users
  122. #LoadPlugin uuid
  123. #LoadPlugin vmem
  124. ##LoadPlugin vserver
  125. ##LoadPlugin wireless
  126. ##LoadPlugin write_http
  127. ##LoadPlugin xmms
  128. ##LoadPlugin zfs_arc
  129. ##############################################################################
  130. # Plugin configuration #
  131. #----------------------------------------------------------------------------#
  132. # In this section configuration stubs for each plugin are provided. A desc- #
  133. # ription of those options is available in the collectd.conf(5) manual page. #
  134. ##############################################################################
  135. #<Plugin apache>
  136. # URL "http://localhost/status?auto"
  137. # User "www-user"
  138. # Password "secret"
  139. # CACert "/etc/ssl/ca.crt"
  140. #</Plugin>
  141. #<Plugin apcups>
  142. # Host "localhost"
  143. # Port "3551"
  144. #</Plugin>
  145. #<Plugin ascent>
  146. # URL "http://localhost/ascent/status/"
  147. # User "www-user"
  148. # Password "secret"
  149. # CACert "/etc/ssl/ca.crt"
  150. #</Plugin>
  151. #<Plugin "bind">
  152. # URL "http://localhost:8053/"
  153. # OpCodes true
  154. # QTypes true
  155. #
  156. # ServerStats true
  157. # ZoneMaintStats true
  158. # ResolverStats false
  159. # MemoryStats true
  160. #
  161. # <View "_default">
  162. # QTypes true
  163. # ResolverStats true
  164. # CacheRRSets true
  165. #
  166. # Zone "127.in-addr.arpa/IN"
  167. # </View>
  168. #</Plugin>
  169. #<Plugin csv>
  170. # DataDir "/usr/var/lib/collectd/csv"
  171. # StoreRates false
  172. #</Plugin>
  173. #<Plugin curl>
  174. # <Page "stock_quotes">
  175. # URL "http://finance.google.com/finance?q=NYSE%3AAMD"
  176. # User "foo"
  177. # Password "bar"
  178. # MeasureResponseTime false
  179. # <Match>
  180. # Regex "<span +class=\"pr\"[^>]*> *([0-9]*\\.[0-9]+) *</span>"
  181. # DSType "GaugeAverage"
  182. # Type "stock_value"
  183. # Instance "AMD"
  184. # </Match>
  185. # </Page>
  186. #</Plugin>
  187. #<Plugin curl_json>
  188. ## See: http://wiki.apache.org/couchdb/Runtime_Statistics
  189. # <URL "http://localhost:5984/_stats">
  190. # Instance "httpd"
  191. # <Key "httpd/requests/count">
  192. # Type "http_requests"
  193. # </Key>
  194. #
  195. # <Key "httpd_request_methods/*/count">
  196. # Type "http_request_methods"
  197. # </Key>
  198. #
  199. # <Key "httpd_status_codes/*/count">
  200. # Type "http_response_codes"
  201. # </Key>
  202. # </URL>
  203. ## Database status metrics:
  204. # <URL "http://localhost:5984/_all_dbs">
  205. # Instance "dbs"
  206. # <Key "*/doc_count">
  207. # Type "gauge"
  208. # </Key>
  209. # <Key "*/doc_del_count">
  210. # Type "counter"
  211. # </Key>
  212. # <Key "*/disk_size">
  213. # Type "bytes"
  214. # </Key>
  215. # </URL>
  216. #</Plugin>
  217. #<Plugin dbi>
  218. # <Query "num_of_customers">
  219. # Statement "SELECT 'customers' AS c_key, COUNT(*) AS c_value FROM customers_tbl"
  220. # <Result>
  221. # Type "gauge"
  222. # InstancesFrom "c_key"
  223. # ValuesFrom "c_value"
  224. # </Result>
  225. # </Query>
  226. # <Database "customers_db">
  227. # Driver "mysql"
  228. # DriverOption "host" "localhost"
  229. # DriverOption "username" "collectd"
  230. # DriverOption "password" "AeXohy0O"
  231. # DriverOption "dbname" "custdb0"
  232. # #SelectDB "custdb0"
  233. # Query "num_of_customers"
  234. # #Query "..."
  235. # </Database>
  236. #</Plugin>
  237. #<Plugin df>
  238. # Device "/dev/hda1"
  239. # Device "192.168.0.2:/mnt/nfs"
  240. # MountPoint "/home"
  241. # FSType "ext3"
  242. # IgnoreSelected false
  243. # ReportByDevice false
  244. # ReportReserved false
  245. # ReportInodes false
  246. #</Plugin>
  247. #<Plugin disk>
  248. # Disk "/^[hs]d[a-f][0-9]?$/"
  249. # IgnoreSelected false
  250. #</Plugin>
  251. #<Plugin dns>
  252. # Interface "eth0"
  253. # IgnoreSource "192.168.0.1"
  254. # SelectNumericQueryTypes true
  255. #</Plugin>
  256. #<Plugin email>
  257. # SocketFile "/usr/var/run/collectd-email"
  258. # SocketGroup "collectd"
  259. # SocketPerms "0770"
  260. # MaxConns 5
  261. #</Plugin>
  262. #<Plugin exec>
  263. # Exec "user:group" "/path/to/exec"
  264. # NotificationExec "user:group" "/path/to/exec"
  265. #</Plugin>
  266. #<Plugin filecount>
  267. # <Directory "/path/to/dir">
  268. # Instance "foodir"
  269. # Name "*.conf"
  270. # MTime "-5m"
  271. # Size "+10k"
  272. # Recursive true
  273. # </Directory>
  274. #</Plugin>
  275. #<Plugin "gmond">
  276. # MCReceiveFrom "239.2.11.71" "8649"
  277. # <Metric "swap_total">
  278. # Type "swap"
  279. # TypeInstance "total"
  280. # DataSource "value"
  281. # </Metric>
  282. # <Metric "swap_free">
  283. # Type "swap"
  284. # TypeInstance "free"
  285. # DataSource "value"
  286. # </Metric>
  287. #</Plugin>
  288. #<Plugin hddtemp>
  289. # Host "127.0.0.1"
  290. # Port "7634"
  291. #
  292. # #----------------------------------------------------------------#
  293. # # `TranslateDevicename' enables backwards compatibility behavior #
  294. # # and is enabled by default. Setting this option to `false' is #
  295. # # highly recommended. #
  296. # #----------------------------------------------------------------#
  297. # TranslateDevicename false
  298. #</Plugin>
  299. #<Plugin interface>
  300. # Interface "eth0"
  301. # IgnoreSelected false
  302. #</Plugin>
  303. #<Plugin ipmi>
  304. # Sensor "some_sensor"
  305. # Sensor "another_one"
  306. # IgnoreSelected false
  307. # NotifySensorAdd false
  308. # NotifySensorRemove true
  309. # NotifySensorNotPresent false
  310. #</Plugin>
  311. #<Plugin iptables>
  312. # Chain table chain
  313. #</Plugin>
  314. #<Plugin irq>
  315. # Irq 7
  316. # Irq 8
  317. # Irq 9
  318. # IgnoreSelected true
  319. #</Plugin>
  320. #<Plugin "java">
  321. # JVMArg "-verbose:jni"
  322. # JVMArg "-Djava.class.path=/usr/share/collectd/java"
  323. #
  324. # LoadPlugin "org.collectd.java.Foobar"
  325. # <Plugin "org.collectd.java.Foobar">
  326. # # To be parsed by the plugin
  327. # </Plugin>
  328. #</Plugin>
  329. #<Plugin libvirt>
  330. # Connection "xen:///"
  331. # RefreshInterval 60
  332. # Domain "name"
  333. # BlockDevice "name:device"
  334. # InterfaceDevice "name:device"
  335. # IgnoreSelected false
  336. # HostnameFormat name
  337. #</Plugin>
  338. #<Plugin madwifi>
  339. # Interface "wlan0"
  340. # IgnoreSelected false
  341. # Source "SysFS"
  342. # WatchSet "None"
  343. # WatchAdd "node_octets"
  344. # WatchAdd "node_rssi"
  345. # WatchAdd "is_rx_acl"
  346. # WatchAdd "is_scan_active"
  347. #</Plugin>
  348. #<Plugin mbmon>
  349. # Host "127.0.0.1"
  350. # Port "411"
  351. #</Plugin>
  352. #<Plugin memcachec>
  353. # <Page "plugin_instance">
  354. # Server "localhost"
  355. # Key "page_key"
  356. # <Match>
  357. # Regex "(\\d+) bytes sent"
  358. # DSType CounterAdd
  359. # Type "ipt_octets"
  360. # Instance "type_instance"
  361. # </Match>
  362. # </Page>
  363. #</Plugin>
  364. #<Plugin memcached>
  365. # Host "127.0.0.1"
  366. # Port "11211"
  367. #</Plugin>
  368. #<Plugin mysql>
  369. # <Database db_name>
  370. # Host "database.serv.er"
  371. # User "db_user"
  372. # Password "secret"
  373. # Database "db_name"
  374. # MasterStats true
  375. # </Database>
  376. #
  377. # <Database db_name2>
  378. # Host "localhost"
  379. # Socket "/var/run/mysql/mysqld.sock"
  380. # SlaveStats true
  381. # SlaveNotifications true
  382. # </Database>
  383. #</Plugin>
  384. #<Plugin netapp>
  385. # <Host "netapp1.example.com">
  386. # Protocol "https"
  387. # Address "10.0.0.1"
  388. # Port 443
  389. # User "username"
  390. # Password "aef4Aebe"
  391. # Interval 30
  392. #
  393. # <WAFL>
  394. # Interval 30
  395. # GetNameCache true
  396. # GetDirCache true
  397. # GetBufferCache true
  398. # GetInodeCache true
  399. # </WAFL>
  400. #
  401. # <Disks>
  402. # Interval 30
  403. # GetBusy true
  404. # </Disks>
  405. #
  406. # <VolumePerf>
  407. # Interval 30
  408. # GetIO "volume0"
  409. # IgnoreSelectedIO false
  410. # GetOps "volume0"
  411. # IgnoreSelectedOps false
  412. # GetLatency "volume0"
  413. # IgnoreSelectedLatency false
  414. # </VolumePerf>
  415. #
  416. # <VolumeUsage>
  417. # Interval 30
  418. # GetCapacity "vol0"
  419. # GetCapacity "vol1"
  420. # IgnoreSelectedCapacity false
  421. # GetSnapshot "vol1"
  422. # GetSnapshot "vol3"
  423. # IgnoreSelectedSnapshot false
  424. # </VolumeUsage>
  425. #
  426. # <System>
  427. # Interval 30
  428. # GetCPULoad true
  429. # GetInterfaces true
  430. # GetDiskOps true
  431. # GetDiskIO true
  432. # </System>
  433. # </Host>
  434. #</Plugin>
  435. #<Plugin netlink>
  436. # Interface "All"
  437. # VerboseInterface "All"
  438. # QDisc "eth0" "pfifo_fast-1:0"
  439. # Class "ppp0" "htb-1:10"
  440. # Filter "ppp0" "u32-1:0"
  441. # IgnoreSelected false
  442. #</Plugin>
  443. ##<Plugin network>
  444. ## Server "ff18::efc0:4a42" "25826"
  445. ## Server "239.192.74.66" "25826"
  446. # Listen "ff18::efc0:4a42" "25826"
  447. # Listen "239.192.74.66" "25826"
  448. # TimeToLive "128"
  449. # Forward false
  450. # CacheFlush 1800
  451. # ReportStats false
  452. ##</Plugin>
  453. #<Plugin nginx>
  454. # URL "http://localhost/status?auto"
  455. # User "www-user"
  456. # Password "secret"
  457. # CACert "/etc/ssl/ca.crt"
  458. #</Plugin>
  459. #<Plugin notify_desktop>
  460. # OkayTimeout 1000
  461. # WarningTimeout 5000
  462. # FailureTimeout 0
  463. #</Plugin>
  464. #<Plugin notify_email>
  465. # SMTPServer "localhost"
  466. # SMTPPort 25
  467. # SMTPUser "my-username"
  468. # SMTPPassword "my-password"
  469. # From "collectd@main0server.com"
  470. # # <WARNING/FAILURE/OK> on <hostname>. beware! do not use not more than two %s in this string!!!
  471. # Subject "Aaaaaa!! %s on %s!!!!!"
  472. # Recipient "email1@domain1.net"
  473. # Recipient "email2@domain2.com"
  474. #</Plugin>
  475. #<Plugin ntpd>
  476. # Host "localhost"
  477. # Port 123
  478. # ReverseLookups false
  479. #</Plugin>
  480. #<Plugin nut>
  481. # UPS "upsname@hostname:port"
  482. #</Plugin>
  483. #<Plugin olsrd>
  484. # Host "127.0.0.1"
  485. # Port "2006"
  486. # CollectLinks "Summary"
  487. # CollectRoutes "Summary"
  488. # CollectTopology "Summary"
  489. #</Plugin>
  490. #<Plugin onewire>
  491. # Device "-s localhost:4304"
  492. # Sensor "F10FCA000800"
  493. # IgnoreSelected false
  494. #</Plugin>
  495. #<Plugin openvpn>
  496. # StatusFile "/etc/openvpn/openvpn-status.log"
  497. #</Plugin>
  498. #<Plugin oracle>
  499. # <Query "out_of_stock">
  500. # Statement "SELECT category, COUNT(*) AS value FROM products WHERE in_stock = 0 GROUP BY category"
  501. # <Result>
  502. # Type "gauge"
  503. # InstancesFrom "category"
  504. # ValuesFrom "value"
  505. # </Result>
  506. # </Query>
  507. # <Database "product_information">
  508. # ConnectID "db01"
  509. # Username "oracle"
  510. # Password "secret"
  511. # Query "out_of_stock"
  512. # </Database>
  513. #</Plugin>
  514. #<Plugin perl>
  515. # IncludeDir "/my/include/path"
  516. # BaseName "Collectd::Plugin"
  517. # EnableDebugger ""
  518. # LoadPlugin Monitorus
  519. # LoadPlugin OpenVZ
  520. #
  521. # <Plugin foo>
  522. # Foo "Bar"
  523. # Qux "Baz"
  524. # </Plugin>
  525. #</Plugin>
  526. #<Plugin ping>
  527. # Host "host.foo.bar"
  528. # Interval 1.0
  529. # Timeout 0.9
  530. # TTL 255
  531. # SourceAddress "1.2.3.4"
  532. # Device "eth0"
  533. # MaxMissed -1
  534. #</Plugin>
  535. #<Plugin postgresql>
  536. # <Query magic>
  537. # Statement "SELECT magic FROM wizard WHERE host = $1;"
  538. # Param hostname
  539. # <Result>
  540. # Type gauge
  541. # InstancePrefix "magic"
  542. # ValuesFrom magic
  543. # </Result>
  544. # </Query>
  545. # <Query rt36_tickets>
  546. # Statement "SELECT COUNT(type) AS count, type \
  547. # FROM (SELECT CASE \
  548. # WHEN resolved = 'epoch' THEN 'open' \
  549. # ELSE 'resolved' END AS type \
  550. # FROM tickets) type \
  551. # GROUP BY type;"
  552. # <Result>
  553. # Type counter
  554. # InstancePrefix "rt36_tickets"
  555. # InstancesFrom "type"
  556. # ValuesFrom "count"
  557. # </Result>
  558. # </Query>
  559. # <Database foo>
  560. # Host "hostname"
  561. # Port "5432"
  562. # User "username"
  563. # Password "secret"
  564. # SSLMode "prefer"
  565. # KRBSrvName "kerberos_service_name"
  566. # Query magic
  567. # </Database>
  568. # <Database bar>
  569. # Service "service_name"
  570. # Query backend # predefined
  571. # Query rt36_tickets
  572. # </Database>
  573. #</Plugin>
  574. #<Plugin powerdns>
  575. # <Server "server_name">
  576. # Collect "latency"
  577. # Collect "udp-answers" "udp-queries"
  578. # Socket "/var/run/pdns.controlsocket"
  579. # </Server>
  580. # <Recursor "recursor_name">
  581. # Collect "questions"
  582. # Collect "cache-hits" "cache-misses"
  583. # Socket "/var/run/pdns_recursor.controlsocket"
  584. # </Recursor>
  585. # LocalSocket "/opt/collectd/var/run/collectd-powerdns"
  586. #</Plugin>
  587. #<Plugin processes>
  588. # Process "name"
  589. #</Plugin>
  590. #<Plugin protocols>
  591. # Value "/^Tcp:/"
  592. # IgnoreSelected false
  593. #</Plugin>
  594. #<Plugin python>
  595. # ModulePath "/path/to/your/python/modules"
  596. # LogTraces true
  597. # Interactive true
  598. # Import "spam"
  599. #
  600. # <Module spam>
  601. # spam "wonderful" "lovely"
  602. # </Module>
  603. #</Plugin>
  604. #<Plugin routeros>
  605. # <Router>
  606. # Host "router.example.com"
  607. # Port "8728"
  608. # User "admin"
  609. # Password "dozaiTh4"
  610. # CollectInterface true
  611. # CollectRegistrationTable true
  612. # </Router>
  613. #</Plugin>
  614. #<Plugin rrdcached>
  615. # DaemonAddress "unix:/tmp/rrdcached.sock"
  616. # DataDir "/usr/var/lib/collectd/rrd"
  617. # CreateFiles true
  618. # CollectStatistics true
  619. #</Plugin>
  620. #<Plugin rrdtool>
  621. # DataDir "/usr/var/lib/collectd/rrd"
  622. # CacheTimeout 120
  623. # CacheFlush 900
  624. #</Plugin>
  625. #<Plugin sensors>
  626. # Sensor "it8712-isa-0290/temperature-temp1"
  627. # Sensor "it8712-isa-0290/fanspeed-fan3"
  628. # Sensor "it8712-isa-0290/voltage-in8"
  629. # IgnoreSelected false
  630. #</Plugin>
  631. #<Plugin snmp>
  632. # <Data "powerplus_voltge_input">
  633. # Type "voltage"
  634. # Table false
  635. # Instance "input_line1"
  636. # Values "SNMPv2-SMI::enterprises.6050.5.4.1.1.2.1"
  637. # </Data>
  638. # <Data "hr_users">
  639. # Type "users"
  640. # Table false
  641. # Instance ""
  642. # Values "HOST-RESOURCES-MIB::hrSystemNumUsers.0"
  643. # </Data>
  644. # <Data "std_traffic">
  645. # Type "if_octets"
  646. # Table true
  647. # Instance "IF-MIB::ifDescr"
  648. # Values "IF-MIB::ifInOctets" "IF-MIB::ifOutOctets"
  649. # </Data>
  650. #
  651. # <Host "some.switch.mydomain.org">
  652. # Address "192.168.0.2"
  653. # Version 1
  654. # Community "community_string"
  655. # Collect "std_traffic"
  656. # Interval 120
  657. # </Host>
  658. # <Host "some.server.mydomain.org">
  659. # Address "192.168.0.42"
  660. # Version 2
  661. # Community "another_string"
  662. # Collect "std_traffic" "hr_users"
  663. # </Host>
  664. # <Host "some.ups.mydomain.org">
  665. # Address "192.168.0.3"
  666. # Version 1
  667. # Community "more_communities"
  668. # Collect "powerplus_voltge_input"
  669. # Interval 300
  670. # </Host>
  671. #</Plugin>
  672. #<Plugin "table">
  673. # <Table "/proc/slabinfo">
  674. # Instance "slabinfo"
  675. # Separator " "
  676. # <Result>
  677. # Type gauge
  678. # InstancePrefix "active_objs"
  679. # InstancesFrom 0
  680. # ValuesFrom 1
  681. # </Result>
  682. # <Result>
  683. # Type gauge
  684. # InstancePrefix "objperslab"
  685. # InstancesFrom 0
  686. # ValuesFrom 4
  687. # </Result>
  688. # </Table>
  689. #</Plugin>
  690. #<Plugin "tail">
  691. # <File "/var/log/exim4/mainlog">
  692. # Instance "exim"
  693. # <Match>
  694. # Regex "S=([1-9][0-9]*)"
  695. # DSType "CounterAdd"
  696. # Type "ipt_bytes"
  697. # Instance "total"
  698. # </Match>
  699. # <Match>
  700. # Regex "\\<R=local_user\\>"
  701. # DSType "CounterInc"
  702. # Type "counter"
  703. # Instance "local_user"
  704. # </Match>
  705. # </File>
  706. #</Plugin>
  707. #<Plugin tcpconns>
  708. # ListeningPorts false
  709. # LocalPort "25"
  710. # RemotePort "25"
  711. #</Plugin>
  712. #<Plugin teamspeak2>
  713. # Host "127.0.0.1"
  714. # Port "51234"
  715. # Server "8767"
  716. #</Plugin>
  717. #<Plugin ted>
  718. # Device "/dev/ttyUSB0"
  719. # Retries 0
  720. #</Plugin>
  721. #<Plugin thermal>
  722. # ForceUseProcfs false
  723. # Device "THRM"
  724. # IgnoreSelected false
  725. #</Plugin>
  726. #<Plugin tokyotyrant>
  727. # Host "localhost"
  728. # Port "1978"
  729. #</Plugin>
  730. #<Plugin unixsock>
  731. # SocketFile "/usr/var/run/collectd-unixsock"
  732. # SocketGroup "collectd"
  733. # SocketPerms "0660"
  734. #</Plugin>
  735. #<Plugin uuid>
  736. # UUIDFile "/etc/uuid"
  737. #</Plugin>
  738. #<Plugin vmem>
  739. # Verbose false
  740. #</Plugin>
  741. #<Plugin write_http>
  742. # <URL "http://example.com/collectd-post">
  743. # User "collectd"
  744. # Password "weCh3ik0"
  745. # </URL>
  746. #</Plugin>
  747. ##############################################################################
  748. # Filter configuration #
  749. #----------------------------------------------------------------------------#
  750. # The following configures collectd's filtering mechanism. Before changing #
  751. # anything in this section, please read the `FILTER CONFIGURATION' section #
  752. # in the collectd.conf(5) manual page. #
  753. ##############################################################################
  754. # Load required matches:
  755. #LoadPlugin match_empty_counter
  756. #LoadPlugin match_hashed
  757. #LoadPlugin match_regex
  758. #LoadPlugin match_value
  759. #LoadPlugin match_timediff
  760. # Load required targets:
  761. ##LoadPlugin target_notification
  762. ##LoadPlugin target_replace
  763. #LoadPlugin target_scale
  764. ##LoadPlugin target_set
  765. #----------------------------------------------------------------------------#
  766. # The following block demonstrates the default behavior if no filtering is #
  767. # configured at all: All values will be sent to all available write plugins. #
  768. #----------------------------------------------------------------------------#
  769. #<Chain "PostCache">
  770. # Target "write"
  771. #</Chain>