Qwentor

Untitled

Aug 4th, 2018
338
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 31.96 KB | None | 0 0
  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.
  8.  
  9. ##############################################################################
  10. # Global #
  11. #----------------------------------------------------------------------------#
  12. # Global settings for the daemon. #
  13. ##############################################################################
  14.  
  15. #Hostname "localhost"
  16. FQDNLookup true
  17. #BaseDir "/var/lib/collectd"
  18. #PluginDir "/usr/lib/collectd"
  19. #TypesDB "/usr/share/collectd/types.db" "/etc/collectd/my_types.db"
  20.  
  21. #----------------------------------------------------------------------------#
  22. # When enabled, plugins are loaded automatically with the default options #
  23. # when an appropriate <Plugin ...> block is encountered. #
  24. # Disabled by default. #
  25. #----------------------------------------------------------------------------#
  26. #AutoLoadPlugin false
  27.  
  28. #----------------------------------------------------------------------------#
  29. # When enabled, internal statistics are collected, using "collectd" as the #
  30. # plugin name. #
  31. # Disabled by default. #
  32. #----------------------------------------------------------------------------#
  33. #CollectInternalStats false
  34.  
  35. #----------------------------------------------------------------------------#
  36. # Interval at which to query values. This may be overwritten on a per-plugin #
  37. # base by using the 'Interval' option of the LoadPlugin block: #
  38. # <LoadPlugin foo> #
  39. # Interval 60 #
  40. # </LoadPlugin> #
  41. #----------------------------------------------------------------------------#
  42. #Interval 10
  43.  
  44. #MaxReadInterval 86400
  45. #Timeout 2
  46. #ReadThreads 5
  47. #WriteThreads 5
  48.  
  49. # Limit the size of the write queue. Default is no limit. Setting up a limit
  50. # is recommended for servers handling a high volume of traffic.
  51. #WriteQueueLimitHigh 1000000
  52. #WriteQueueLimitLow 800000
  53.  
  54. ##############################################################################
  55. # Logging #
  56. #----------------------------------------------------------------------------#
  57. # Plugins which provide logging functions should be loaded first, so log #
  58. # messages generated when loading or configuring other plugins can be #
  59. # accessed. #
  60. ##############################################################################
  61.  
  62. #LoadPlugin logfile
  63. LoadPlugin syslog
  64. #LoadPlugin log_logstash
  65.  
  66. #<Plugin logfile>
  67. # LogLevel "info"
  68. # File STDOUT
  69. # Timestamp true
  70. # PrintSeverity false
  71. #</Plugin>
  72.  
  73. <Plugin syslog>
  74. LogLevel info
  75. </Plugin>
  76.  
  77. #<Plugin log_logstash>
  78. # LogLevel info
  79. # File "/var/log/collectd.json.log"
  80. #</Plugin>
  81.  
  82. ##############################################################################
  83. # LoadPlugin section #
  84. #----------------------------------------------------------------------------#
  85. # Specify what features to activate. #
  86. ##############################################################################
  87.  
  88. LoadPlugin aggregation
  89. #LoadPlugin amqp
  90. #LoadPlugin apache
  91. #LoadPlugin apcups
  92. #LoadPlugin ascent
  93. #LoadPlugin barometer
  94. #LoadPlugin battery
  95. #LoadPlugin bind
  96. #LoadPlugin ceph
  97. #LoadPlugin cgroups
  98. #LoadPlugin chrony
  99. #LoadPlugin conntrack
  100. #LoadPlugin contextswitch
  101. LoadPlugin cpu
  102. #LoadPlugin cpufreq
  103. #LoadPlugin cpusleep
  104. #LoadPlugin csv
  105. #LoadPlugin curl
  106. #LoadPlugin curl_json
  107. #LoadPlugin curl_xml
  108. #LoadPlugin dbi
  109. LoadPlugin df
  110. LoadPlugin disk
  111. #LoadPlugin dns
  112. #LoadPlugin dpdkstat
  113. #LoadPlugin drbd
  114. #LoadPlugin email
  115. #LoadPlugin entropy
  116. #LoadPlugin ethstat
  117. #LoadPlugin exec
  118. #LoadPlugin fhcount
  119. #LoadPlugin filecount
  120. #LoadPlugin fscache
  121. #LoadPlugin gmond
  122. #LoadPlugin gps
  123. #LoadPlugin hugepages
  124. #LoadPlugin hddtemp
  125. LoadPlugin interface
  126. #LoadPlugin ipc
  127. #LoadPlugin ipmi
  128. #LoadPlugin iptables
  129. #LoadPlugin ipvs
  130. #LoadPlugin irq
  131. #LoadPlugin java
  132. #LoadPlugin load
  133. #LoadPlugin lua
  134. #LoadPlugin lvm
  135. #LoadPlugin madwifi
  136. #LoadPlugin mbmon
  137. #LoadPlugin md
  138. #LoadPlugin memcachec
  139. #LoadPlugin memcached
  140. LoadPlugin memory
  141. #LoadPlugin modbus
  142. #LoadPlugin mqtt
  143. #LoadPlugin multimeter
  144. #LoadPlugin mysql
  145. #LoadPlugin netlink
  146. #LoadPlugin network
  147. #LoadPlugin nfs
  148. #LoadPlugin nginx
  149. #LoadPlugin notify_desktop
  150. #LoadPlugin notify_email
  151. #LoadPlugin notify_nagios
  152. #LoadPlugin ntpd
  153. #LoadPlugin numa
  154. #LoadPlugin nut
  155. #LoadPlugin olsrd
  156. #LoadPlugin onewire
  157. #LoadPlugin openldap
  158. #LoadPlugin openvpn
  159. #LoadPlugin perl
  160. #LoadPlugin pinba
  161. #LoadPlugin ping
  162. #LoadPlugin postgresql
  163. #LoadPlugin powerdns
  164. LoadPlugin processes
  165. #LoadPlugin protocols
  166. #LoadPlugin python
  167. #LoadPlugin redis
  168. #LoadPlugin rrdcached
  169. #LoadPlugin rrdtool
  170. #LoadPlugin sensors
  171. #LoadPlugin serial
  172. #LoadPlugin sigrok
  173. #LoadPlugin smart
  174. #LoadPlugin snmp
  175. #LoadPlugin statsd
  176. LoadPlugin swap
  177. #LoadPlugin table
  178. #LoadPlugin tail
  179. #LoadPlugin tail_csv
  180. #LoadPlugin tcpconns
  181. #LoadPlugin teamspeak2
  182. #LoadPlugin ted
  183. #LoadPlugin thermal
  184. #LoadPlugin tokyotyrant
  185. #LoadPlugin turbostat
  186. #LoadPlugin unixsock
  187. #LoadPlugin uptime
  188. LoadPlugin users
  189. #LoadPlugin uuid
  190. #LoadPlugin varnish
  191. #LoadPlugin virt
  192. #LoadPlugin vmem
  193. #LoadPlugin vserver
  194. #LoadPlugin wireless
  195. #LoadPlugin write_graphite
  196. #LoadPlugin write_http
  197. #LoadPlugin write_kafka
  198. #LoadPlugin write_log
  199. #LoadPlugin write_prometheus
  200. #LoadPlugin write_redis
  201. #LoadPlugin write_riemann
  202. #LoadPlugin write_sensu
  203. #LoadPlugin write_tsdb
  204. #LoadPlugin xencpu
  205. #LoadPlugin zfs_arc
  206. #LoadPlugin zookeeper
  207.  
  208. ##############################################################################
  209. # Plugin configuration #
  210. #----------------------------------------------------------------------------#
  211. # In this section configuration stubs for each plugin are provided. A desc- #
  212. # ription of those options is available in the collectd.conf(5) manual page. #
  213. ##############################################################################
  214.  
  215. <Plugin aggregation>
  216. <Aggregation>
  217. #Host "unspecified"
  218. Plugin "cpu"
  219. PluginInstance "/[0,2,4,6,8]$/"
  220. Type "cpu"
  221. #TypeInstance "unspecified"
  222.  
  223. SetPlugin "cpu"
  224. SetPluginInstance "even-%{aggregation}"
  225.  
  226. GroupBy "Host"
  227. GroupBy "TypeInstance"
  228.  
  229. CalculateNum false
  230. CalculateSum false
  231. CalculateAverage true
  232. CalculateMinimum false
  233. CalculateMaximum false
  234. CalculateStddev false
  235. </Aggregation>
  236. </Plugin>
  237.  
  238. #<Plugin amqp>
  239. # <Publish "name">
  240. # Host "localhost"
  241. # Port "5672"
  242. # VHost "/"
  243. # User "guest"
  244. # Password "guest"
  245. # Exchange "amq.fanout"
  246. # RoutingKey "collectd"
  247. # Persistent false
  248. # StoreRates false
  249. # ConnectionRetryDelay 0
  250. # </Publish>
  251. #</Plugin>
  252.  
  253. #<Plugin apache>
  254. # <Instance "foo">
  255. # URL "http://localhost/server-status?auto"
  256. # User "www-user"
  257. # Password "secret"
  258. # VerifyPeer false
  259. # VerifyHost false
  260. # CACert "/etc/ssl/ca.crt"
  261. # Server "apache"
  262. # </Instance>
  263. #
  264. # <Instance "bar">
  265. # URL "http://some.domain.tld/status?auto"
  266. # Host "some.domain.tld"
  267. # Server "lighttpd"
  268. # </Instance>
  269. #</Plugin>
  270.  
  271. #<Plugin apcups>
  272. # Host "localhost"
  273. # Port "3551"
  274. # ReportSeconds true
  275. # PersistentConnection true
  276. #</Plugin>
  277.  
  278. #<Plugin ascent>
  279. # URL "http://localhost/ascent/status/"
  280. # User "www-user"
  281. # Password "secret"
  282. # VerifyPeer false
  283. # VerifyHost false
  284. # CACert "/etc/ssl/ca.crt"
  285. #</Plugin>
  286.  
  287. #<Plugin barometer>
  288. # Device "/dev/i2c-0";
  289. # Oversampling 512
  290. # PressureOffset 0.0
  291. # TemperatureOffset 0.0
  292. # Normalization 2
  293. # Altitude 238.0
  294. # TemperatureSensor "myserver/onewire-F10FCA000800/temperature"
  295. #</Plugin>
  296.  
  297. #<Plugin battery>
  298. # ValuesPercentage false
  299. # ReportDegraded false
  300. # QueryStateFS false
  301. #</Plugin>
  302.  
  303. #<Plugin bind>
  304. # URL "http://localhost:8053/"
  305. #
  306. # ParseTime false
  307. #
  308. # OpCodes true
  309. # QTypes true
  310. # ServerStats true
  311. # ZoneMaintStats true
  312. # ResolverStats false
  313. # MemoryStats true
  314. #
  315. # <View "_default">
  316. # QTypes true
  317. # ResolverStats true
  318. # CacheRRSets true
  319. #
  320. # Zone "127.in-addr.arpa/IN"
  321. # </View>
  322. #</Plugin>
  323.  
  324. #<Plugin ceph>
  325. # LongRunAvgLatency false
  326. # ConvertSpecialMetricTypes true
  327. # <Daemon "osd.0">
  328. # SocketPath "/var/run/ceph/ceph-osd.0.asok"
  329. # </Daemon>
  330. # <Daemon "osd.1">
  331. # SocketPath "/var/run/ceph/ceph-osd.1.asok"
  332. # </Daemon>
  333. # <Daemon "mon.a">
  334. # SocketPath "/var/run/ceph/ceph-mon.ceph1.asok"
  335. # </Daemon>
  336. # <Daemon "mds.a">
  337. # SocketPath "/var/run/ceph/ceph-mds.ceph1.asok"
  338. # </Daemon>
  339. #</Plugin>
  340.  
  341. #<Plugin chrony>
  342. # Host "localhost"
  343. # Port "323"
  344. # Timeout "2"
  345. #</Plugin>
  346.  
  347. #<Plugin cgroups>
  348. # CGroup "libvirt"
  349. # IgnoreSelected false
  350. #</Plugin>
  351.  
  352. <Plugin cpu>
  353. ReportByCpu true
  354. ReportByState true
  355. ValuesPercentage true
  356. </Plugin>
  357.  
  358. #<Plugin csv>
  359. # DataDir "/var/lib/collectd/csv"
  360. # StoreRates false
  361. #</Plugin>
  362.  
  363. #<Plugin curl>
  364. # <Page "stock_quotes">
  365. # URL "http://finance.google.com/finance?q=NYSE%3AAMD"
  366. # User "foo"
  367. # Password "bar"
  368. # Digest false
  369. # VerifyPeer true
  370. # VerifyHost true
  371. # CACert "/path/to/ca.crt"
  372. # Header "X-Custom-Header: foobar"
  373. # Post "foo=bar"
  374. #
  375. # MeasureResponseTime false
  376. # MeasureResponseCode false
  377. # <Match>
  378. # Regex "<span +class=\"pr\"[^>]*> *([0-9]*\\.[0-9]+) *</span>"
  379. # DSType "GaugeAverage"
  380. # Type "stock_value"
  381. # Instance "AMD"
  382. # </Match>
  383. # </Page>
  384. #</Plugin>
  385.  
  386. #<Plugin curl_json>
  387. ## See: http://wiki.apache.org/couchdb/Runtime_Statistics
  388. # <URL "http://localhost:5984/_stats">
  389. # Instance "httpd"
  390. # <Key "httpd/requests/count">
  391. # Type "http_requests"
  392. # </Key>
  393. #
  394. # <Key "httpd_request_methods/*/count">
  395. # Type "http_request_methods"
  396. # </Key>
  397. #
  398. # <Key "httpd_status_codes/*/count">
  399. # Type "http_response_codes"
  400. # </Key>
  401. # </URL>
  402. ## Database status metrics:
  403. # <URL "http://localhost:5984/_all_dbs">
  404. # Instance "dbs"
  405. # <Key "*/doc_count">
  406. # Type "gauge"
  407. # </Key>
  408. # <Key "*/doc_del_count">
  409. # Type "counter"
  410. # </Key>
  411. # <Key "*/disk_size">
  412. # Type "bytes"
  413. # </Key>
  414. # </URL>
  415. #</Plugin>
  416.  
  417. #<Plugin curl_xml>
  418. # <URL "http://localhost/stats.xml">
  419. # Host "my_host"
  420. # Instance "some_instance"
  421. # User "collectd"
  422. # Password "thaiNg0I"
  423. # Digest false
  424. # VerifyPeer true
  425. # VerifyHost true
  426. # CACert "/path/to/ca.crt"
  427. # Header "X-Custom-Header: foobar"
  428. # Post "foo=bar"
  429. #
  430. # <XPath "table[@id=\"magic_level\"]/tr">
  431. # Type "magic_level"
  432. # InstancePrefix "prefix-"
  433. # InstanceFrom "td[1]"
  434. # ValuesFrom "td[2]/span[@class=\"level\"]"
  435. # </XPath>
  436. # </URL>
  437. #</Plugin>
  438.  
  439. #<Plugin dbi>
  440. # <Query "num_of_customers">
  441. # Statement "SELECT 'customers' AS c_key, COUNT(*) AS c_value \
  442. # FROM customers_tbl"
  443. # MinVersion 40102
  444. # MaxVersion 50042
  445. # <Result>
  446. # Type "gauge"
  447. # InstancePrefix "customer"
  448. # InstancesFrom "c_key"
  449. # ValuesFrom "c_value"
  450. # </Result>
  451. # </Query>
  452. #
  453. # <Database "customers_db">
  454. # Driver "mysql"
  455. # DriverOption "host" "localhost"
  456. # DriverOption "username" "collectd"
  457. # DriverOption "password" "secret"
  458. # DriverOption "dbname" "custdb0"
  459. # SelectDB "custdb0"
  460. # Query "num_of_customers"
  461. # Query "..."
  462. # Host "..."
  463. # </Database>
  464. #</Plugin>
  465.  
  466. <Plugin df>
  467. # Device "/dev/sda1"
  468. # Device "192.168.0.2:/mnt/nfs"
  469. # MountPoint "/home"
  470. # FSType "ext3"
  471.  
  472. # ignore rootfs; else, the root file-system would appear twice, causing
  473. # one of the updates to fail and spam the log
  474. FSType rootfs
  475. # ignore the usual virtual / temporary file-systems
  476. FSType sysfs
  477. FSType proc
  478. FSType devtmpfs
  479. FSType devpts
  480. FSType tmpfs
  481. FSType fusectl
  482. FSType cgroup
  483. IgnoreSelected true
  484.  
  485. # ReportByDevice false
  486. # ReportInodes false
  487.  
  488. # ValuesAbsolute true
  489. # ValuesPercentage false
  490. </Plugin>
  491.  
  492. #<Plugin disk>
  493. # Disk "hda"
  494. # Disk "/sda[23]/"
  495. # IgnoreSelected false
  496. # UseBSDName false
  497. # UdevNameAttr "DEVNAME"
  498. #</Plugin>
  499.  
  500. #<Plugin dns>
  501. # Interface "eth0"
  502. # IgnoreSource "192.168.0.1"
  503. # SelectNumericQueryTypes false
  504. #</Plugin>
  505.  
  506. #<Plugin dpdkstat>
  507. # Interval 1
  508. # Coremask "0xf"
  509. # ProcessType "secondary"
  510. # FilePrefix "rte"
  511. # EnabledPortMask 0xffff
  512. # PortName "interface1"
  513. # PortName "interface2"
  514. #</Plugin>
  515.  
  516. #<Plugin email>
  517. # SocketFile "/var/run/collectd-email"
  518. # SocketGroup "collectd"
  519. # SocketPerms "0770"
  520. # MaxConns 5
  521. #</Plugin>
  522.  
  523. #<Plugin ethstat>
  524. # Interface "eth0"
  525. # Map "rx_csum_offload_errors" "if_rx_errors" "checksum_offload"
  526. # Map "multicast" "if_multicast"
  527. # MappedOnly false
  528. #</Plugin>
  529.  
  530. #<Plugin exec>
  531. # Exec user "/path/to/exec"
  532. # Exec "user:group" "/path/to/exec"
  533. # NotificationExec user "/path/to/exec"
  534. #</Plugin>
  535.  
  536. #<Plugin fhcount>
  537. # ValuesAbsolute true
  538. # ValuesPercentage false
  539. #</Plugin>
  540.  
  541. #<Plugin filecount>
  542. # <Directory "/path/to/dir">
  543. # Instance "foodir"
  544. # Name "*.conf"
  545. # MTime "-5m"
  546. # Size "+10k"
  547. # Recursive true
  548. # IncludeHidden false
  549. # </Directory>
  550. #</Plugin>
  551.  
  552. #<Plugin gmond>
  553. # MCReceiveFrom "239.2.11.71" "8649"
  554. #
  555. # <Metric "swap_total">
  556. # Type "swap"
  557. # TypeInstance "total"
  558. # DataSource "value"
  559. # </Metric>
  560. #
  561. # <Metric "swap_free">
  562. # Type "swap"
  563. # TypeInstance "free"
  564. # DataSource "value"
  565. # </Metric>
  566. #</Plugin>
  567.  
  568. #<Plugin gps>
  569. # Host "127.0.0.1"
  570. # Port "2947"
  571. # Timeout 0.015
  572. # PauseConnect 5
  573. #</Plugin>
  574.  
  575. #<Plugin hddtemp>
  576. # Host "127.0.0.1"
  577. # Port 7634
  578. #</Plugin>
  579.  
  580. #<Plugin hugepages>
  581. # ReportPerNodeHP true
  582. # ReportRootHP true
  583. # ValuesPages true
  584. # ValuesBytes false
  585. # ValuesPercentage false
  586. #</Plugin>
  587.  
  588. #<Plugin interface>
  589. # Interface "eth0"
  590. # IgnoreSelected false
  591. # ReportInactive true
  592. # UniqueName false
  593. #</Plugin>
  594.  
  595. #<Plugin ipmi>
  596. # Sensor "some_sensor"
  597. # Sensor "another_one"
  598. # IgnoreSelected false
  599. # NotifySensorAdd false
  600. # NotifySensorRemove true
  601. # NotifySensorNotPresent false
  602. #</Plugin>
  603.  
  604. #<Plugin iptables>
  605. # Chain "table" "chain"
  606. # Chain6 "table" "chain"
  607. #</Plugin>
  608.  
  609. #<Plugin irq>
  610. # Irq 7
  611. # Irq 8
  612. # Irq 9
  613. # IgnoreSelected true
  614. #</Plugin>
  615.  
  616. #<Plugin java>
  617. # JVMArg "-verbose:jni"
  618. # JVMArg "-Djava.class.path=/usr/share/collectd/java/collectd-api.jar"
  619. #
  620. # LoadPlugin "org.collectd.java.GenericJMX"
  621. # <Plugin "GenericJMX">
  622. # # See /usr/share/doc/collectd/examples/GenericJMX.conf
  623. # # for an example config.
  624. # </Plugin>
  625. #</Plugin>
  626.  
  627. #<Plugin load>
  628. # ReportRelative true
  629. #</Plugin>
  630.  
  631. #<Plugin lua>
  632. # BasePath "/usr/share/collectd/lua"
  633. # Script "script1.lua"
  634. # Script "script2.lua"
  635. #</Plugin>
  636.  
  637. #<Plugin madwifi>
  638. # Interface "wlan0"
  639. # IgnoreSelected false
  640. # Source "SysFS"
  641. # WatchSet "None"
  642. # WatchAdd "node_octets"
  643. # WatchAdd "node_rssi"
  644. # WatchAdd "is_rx_acl"
  645. # WatchAdd "is_scan_active"
  646. #</Plugin>
  647.  
  648. #<Plugin mbmon>
  649. # Host "127.0.0.1"
  650. # Port 411
  651. #</Plugin>
  652.  
  653. #<Plugin md>
  654. # Device "/dev/md0"
  655. # IgnoreSelected false
  656. #</Plugin>
  657.  
  658. #<Plugin memcachec>
  659. # <Page "plugin_instance">
  660. # Server "localhost"
  661. # Key "page_key"
  662. # <Match>
  663. # Regex "(\\d+) bytes sent"
  664. # ExcludeRegex "<lines to be excluded>"
  665. # DSType CounterAdd
  666. # Type "ipt_octets"
  667. # Instance "type_instance"
  668. # </Match>
  669. # </Page>
  670. #</Plugin>
  671.  
  672. #<Plugin memcached>
  673. # <Instance "local">
  674. # Socket "/var/run/memcached.sock"
  675. # or:
  676. # #Host "memcache.example.com"
  677. # Address "127.0.0.1"
  678. # Port "11211"
  679. # </Instance>
  680. #</Plugin>
  681.  
  682. #<Plugin memory>
  683. # ValuesAbsolute true
  684. # ValuesPercentage false
  685. #</Plugin>
  686.  
  687. #<Plugin modbus>
  688. # <Data "data_name">
  689. # RegisterBase 1234
  690. # RegisterCmd ReadHolding
  691. # RegisterType float
  692. # Type gauge
  693. # Instance "..."
  694. # </Data>
  695. #
  696. # <Host "name">
  697. # Address "addr"
  698. # Port "1234"
  699. # Interval 60
  700. #
  701. # <Slave 1>
  702. # Instance "foobar" # optional
  703. # Collect "data_name"
  704. # </Slave>
  705. # </Host>
  706. #</Plugin>
  707.  
  708. #<Plugin mqtt>
  709. # <Publish "name">
  710. # Host "localhost"
  711. # Port 1883
  712. # ClientId "localhost"
  713. # User "user"
  714. # Password "secret"
  715. # QoS 0
  716. # Prefix "collectd"
  717. # StoreRates true
  718. # Retain false
  719. # CACert "/etc/ssl/ca.crt"
  720. # CertificateFile "/etc/ssl/client.crt"
  721. # CertificateKeyFile "/etc/ssl/client.pem"
  722. # TLSProtocol "tlsv1.2"
  723. # CipherSuite "ciphers"
  724. # <Publish>
  725. # <Subscribe "name">
  726. # Host "localhost"
  727. # Port 1883
  728. # ClientId "localhost"
  729. # User "user"
  730. # Password "secret"
  731. # QoS 2
  732. # Topic "collectd/#"
  733. # CleanSession true
  734. # </Subscribe>
  735. #</Plugin>
  736.  
  737. #<Plugin mysql>
  738. # <Database db_name>
  739. # Host "database.serv.er"
  740. # Port "3306"
  741. # User "db_user"
  742. # Password "secret"
  743. # Database "db_name"
  744. # SSLKey "/path/to/key.pem"
  745. # SSLCert "/path/to/cert.pem"
  746. # SSLCA "/path/to/ca.pem"
  747. # SSLCAPath "/path/to/cas/"
  748. # SSLCipher "DHE-RSA-AES256-SHA"
  749. # MasterStats true
  750. # ConnectTimeout 10
  751. # InnodbStats true
  752. # </Database>
  753. #
  754. # <Database db_name2>
  755. # Alias "squeeze"
  756. # Host "localhost"
  757. # Socket "/var/run/mysql/mysqld.sock"
  758. # SlaveStats true
  759. # SlaveNotifications true
  760. # </Database>
  761. #
  762. # <Database galera>
  763. # Alias "galera"
  764. # Host "localhost"
  765. # Socket "/var/run/mysql/mysqld.sock"
  766. # WsrepStats true
  767. # </Database>
  768. #</Plugin>
  769.  
  770. #<Plugin netlink>
  771. # Interface "All"
  772. # VerboseInterface "All"
  773. # QDisc "eth0" "pfifo_fast-1:0"
  774. # Class "ppp0" "htb-1:10"
  775. # Filter "ppp0" "u32-1:0"
  776. # IgnoreSelected false
  777. #</Plugin>
  778.  
  779. #<Plugin network>
  780. # # client setup:
  781. # Server "ff18::efc0:4a42" "25826"
  782. # <Server "239.192.74.66" "25826">
  783. # SecurityLevel Encrypt
  784. # Username "user"
  785. # Password "secret"
  786. # Interface "eth0"
  787. # ResolveInterval 14400
  788. # </Server>
  789. # TimeToLive 128
  790. #
  791. # # server setup:
  792. # Listen "ff18::efc0:4a42" "25826"
  793. # <Listen "239.192.74.66" "25826">
  794. # SecurityLevel Sign
  795. # AuthFile "/etc/collectd/passwd"
  796. # Interface "eth0"
  797. # </Listen>
  798. # MaxPacketSize 1452
  799. #
  800. # # proxy setup (client and server as above):
  801. # Forward true
  802. #
  803. # # statistics about the network plugin itself
  804. # ReportStats false
  805. #
  806. # # "garbage collection"
  807. # CacheFlush 1800
  808. #</Plugin>
  809.  
  810. #<Plugin nginx>
  811. # URL "http://localhost/status?auto"
  812. # User "www-user"
  813. # Password "secret"
  814. # VerifyPeer false
  815. # VerifyHost false
  816. # CACert "/etc/ssl/ca.crt"
  817. #</Plugin>
  818.  
  819. #<Plugin notify_desktop>
  820. # OkayTimeout 1000
  821. # WarningTimeout 5000
  822. # FailureTimeout 0
  823. #</Plugin>
  824.  
  825. #<Plugin notify_email>
  826. # SMTPServer "localhost"
  827. # SMTPPort 25
  828. # SMTPUser "my-username"
  829. # SMTPPassword "my-password"
  830. # # <WARNING/FAILURE/OK> on <hostname>.
  831. # # Beware! Do not use not more than two placeholders (%)!
  832. # Subject "[collectd] %s on %s!"
  833. # Recipient "[email protected]"
  834. # Recipient "[email protected]"
  835. #</Plugin>
  836.  
  837. #<Plugin notify_nagios>
  838. # CommandFile "/var/lib/icinga/rw/icinga.cmd"
  839. #</Plugin>
  840.  
  841. #<Plugin ntpd>
  842. # Host "localhost"
  843. # Port 123
  844. # ReverseLookups false
  845. # IncludeUnitID true
  846. #</Plugin>
  847.  
  848. #<Plugin nut>
  849. # UPS "upsname@hostname:port"
  850. #</Plugin>
  851.  
  852. #<Plugin olsrd>
  853. # Host "127.0.0.1"
  854. # Port "2006"
  855. # CollectLinks "Summary"
  856. # CollectRoutes "Summary"
  857. # CollectTopology "Summary"
  858. #</Plugin>
  859.  
  860. #<Plugin onewire>
  861. # Device "-s localhost:4304"
  862. # Sensor "F10FCA000800"
  863. # IgnoreSelected false
  864. #</Plugin>
  865.  
  866. #<Plugin openldap>
  867. # <Instance "localhost">
  868. # URL "ldap://localhost:389"
  869. # StartTLS false
  870. # VerifyHost true
  871. # CACert "/path/to/ca.crt"
  872. # Timeout -1
  873. # Version 3
  874. # </Instance>
  875. #</Plugin>
  876.  
  877. #<Plugin openvpn>
  878. # StatusFile "/etc/openvpn/openvpn-status.log"
  879. # ImprovedNamingSchema false
  880. # CollectCompression true
  881. # CollectIndividualUsers true
  882. # CollectUserCount false
  883. #</Plugin>
  884.  
  885. #<Plugin perl>
  886. # IncludeDir "/my/include/path"
  887. # BaseName "Collectd::Plugins"
  888. # EnableDebugger ""
  889. # LoadPlugin Monitorus
  890. # LoadPlugin OpenVZ
  891. #
  892. # <Plugin foo>
  893. # Foo "Bar"
  894. # Qux "Baz"
  895. # </Plugin>
  896. #</Plugin>
  897.  
  898. #<Plugin pinba>
  899. # Address "::0"
  900. # Port "30002"
  901. # <View "name">
  902. # Host "host name"
  903. # Server "server name"
  904. # Script "script name"
  905. # <View>
  906. #</Plugin>
  907.  
  908. #<Plugin ping>
  909. # Host "host.foo.bar"
  910. # Host "host.baz.qux"
  911. # Interval 1.0
  912. # Timeout 0.9
  913. # TTL 255
  914. # SourceAddress "1.2.3.4"
  915. # Device "eth0"
  916. # MaxMissed -1
  917. #</Plugin>
  918.  
  919. #<Plugin postgresql>
  920. # <Query magic>
  921. # Statement "SELECT magic FROM wizard WHERE host = $1;"
  922. # Param hostname
  923. #
  924. # <Result>
  925. # Type gauge
  926. # InstancePrefix "magic"
  927. # ValuesFrom "magic"
  928. # </Result>
  929. # </Query>
  930. #
  931. # <Query rt36_tickets>
  932. # Statement "SELECT COUNT(type) AS count, type \
  933. # FROM (SELECT CASE \
  934. # WHEN resolved = 'epoch' THEN 'open' \
  935. # ELSE 'resolved' END AS type \
  936. # FROM tickets) type \
  937. # GROUP BY type;"
  938. #
  939. # <Result>
  940. # Type counter
  941. # InstancePrefix "rt36_tickets"
  942. # InstancesFrom "type"
  943. # ValuesFrom "count"
  944. # </Result>
  945. # </Query>
  946. #
  947. # <Writer sqlstore>
  948. # # See /usr/share/doc/collectd-core/examples/postgresql/collectd_insert.sql for details
  949. # Statement "SELECT collectd_insert($1, $2, $3, $4, $5, $6, $7, $8, $9);"
  950. # StoreRates true
  951. # </Writer>
  952. #
  953. # <Database foo>
  954. # Host "hostname"
  955. # Port 5432
  956. # User "username"
  957. # Password "secret"
  958. #
  959. # SSLMode "prefer"
  960. # KRBSrvName "kerberos_service_name"
  961. #
  962. # Query magic
  963. # </Database>
  964. #
  965. # <Database bar>
  966. # Interval 60
  967. # Service "service_name"
  968. #
  969. # Query backend # predefined
  970. # Query rt36_tickets
  971. # </Database>
  972. #
  973. # <Database qux>
  974. # Service "collectd_store"
  975. # Writer sqlstore
  976. # # see collectd.conf(5) for details
  977. # CommitInterval 30
  978. # </Database>
  979. #</Plugin>
  980.  
  981. #<Plugin powerdns>
  982. # <Server "server_name">
  983. # Collect "latency"
  984. # Collect "udp-answers" "udp-queries"
  985. # Socket "/var/run/pdns.controlsocket"
  986. # </Server>
  987. # <Recursor "recursor_name">
  988. # Collect "questions"
  989. # Collect "cache-hits" "cache-misses"
  990. # Socket "/var/run/pdns_recursor.controlsocket"
  991. # </Recursor>
  992. # LocalSocket "/opt/collectd/var/run/collectd-powerdns"
  993. #</Plugin>
  994.  
  995. #<Plugin processes>
  996. # Process "name"
  997. # ProcessMatch "foobar" "/usr/bin/perl foobar\\.pl.*"
  998. #</Plugin>
  999.  
  1000. #<Plugin protocols>
  1001. # Value "/^Tcp:/"
  1002. # IgnoreSelected false
  1003. #</Plugin>
  1004.  
  1005. #<Plugin python>
  1006. # ModulePath "/path/to/your/python/modules"
  1007. # LogTraces true
  1008. # Interactive true
  1009. # Import "spam"
  1010. #
  1011. # <Module spam>
  1012. # spam "wonderful" "lovely"
  1013. # </Module>
  1014. #</Plugin>
  1015.  
  1016. #<Plugin redis>
  1017. # <Node example>
  1018. # Host "redis.example.com"
  1019. # Port "6379"
  1020. # Timeout 2000
  1021. # </Node>
  1022. #</Plugin>
  1023.  
  1024. #<Plugin rrdcached>
  1025. # DaemonAddress "unix:/var/run/rrdcached.sock"
  1026. # DataDir "/var/lib/rrdcached/db/collectd"
  1027. # CreateFiles true
  1028. # CreateFilesAsync false
  1029. # CollectStatistics true
  1030. #
  1031. # The following settings are rather advanced
  1032. # and should usually not be touched:
  1033. # StepSize 10
  1034. # HeartBeat 20
  1035. # RRARows 1200
  1036. # RRATimespan 158112000
  1037. # XFF 0.1
  1038. #</Plugin>
  1039.  
  1040. <Plugin rrdtool>
  1041. DataDir "/var/lib/collectd/rrd"
  1042. # CacheTimeout 120
  1043. # CacheFlush 900
  1044. # WritesPerSecond 30
  1045. # CreateFilesAsync false
  1046. # RandomTimeout 0
  1047. #
  1048. # The following settings are rather advanced
  1049. # and should usually not be touched:
  1050. # StepSize 10
  1051. # HeartBeat 20
  1052. # RRARows 1200
  1053. # RRATimespan 158112000
  1054. # XFF 0.1
  1055. </Plugin>
  1056.  
  1057. #<Plugin sensors>
  1058. # SensorConfigFile "/etc/sensors3.conf"
  1059. # Sensor "it8712-isa-0290/temperature-temp1"
  1060. # Sensor "it8712-isa-0290/fanspeed-fan3"
  1061. # Sensor "it8712-isa-0290/voltage-in8"
  1062. # IgnoreSelected false
  1063. #</Plugin>
  1064.  
  1065. #<Plugin sigrok>
  1066. # LogLevel 3
  1067. # <Device "AC Voltage">
  1068. # Driver "fluke-dmm"
  1069. # MinimumInterval 10
  1070. # Conn "/dev/ttyUSB2"
  1071. # </Device>
  1072. # <Device "Sound Level">
  1073. # Driver "cem-dt-885x"
  1074. # Conn "/dev/ttyUSB1"
  1075. # </Device>
  1076. #</Plugin>
  1077.  
  1078. #<Plugin smart>
  1079. # Disk "/^[hs]d[a-f][0-9]?$/"
  1080. # IgnoreSelected false
  1081. #</Plugin>
  1082.  
  1083. # See /usr/share/doc/collectd/examples/snmp-data.conf.gz for a
  1084. # comprehensive sample configuration.
  1085. #<Plugin snmp>
  1086. # <Data "powerplus_voltge_input">
  1087. # Type "voltage"
  1088. # Table false
  1089. # Instance "input_line1"
  1090. # Scale 0.1
  1091. # Values "SNMPv2-SMI::enterprises.6050.5.4.1.1.2.1"
  1092. # </Data>
  1093. # <Data "hr_users">
  1094. # Type "users"
  1095. # Table false
  1096. # Instance ""
  1097. # Shift -1
  1098. # Values "HOST-RESOURCES-MIB::hrSystemNumUsers.0"
  1099. # </Data>
  1100. # <Data "std_traffic">
  1101. # Type "if_octets"
  1102. # Table true
  1103. # InstancePrefix "traffic"
  1104. # Instance "IF-MIB::ifDescr"
  1105. # Values "IF-MIB::ifInOctets" "IF-MIB::ifOutOctets"
  1106. # </Data>
  1107. #
  1108. # <Host "some.switch.mydomain.org">
  1109. # Address "192.168.0.2"
  1110. # Version 1
  1111. # Community "community_string"
  1112. # Collect "std_traffic"
  1113. # Inverval 120
  1114. # </Host>
  1115. # <Host "some.server.mydomain.org">
  1116. # Address "192.168.0.42"
  1117. # Version 2
  1118. # Community "another_string"
  1119. # Collect "std_traffic" "hr_users"
  1120. # </Host>
  1121. # <Host "some.ups.mydomain.org">
  1122. # Address "192.168.0.3"
  1123. # Version 1
  1124. # Community "more_communities"
  1125. # Collect "powerplus_voltge_input"
  1126. # Interval 300
  1127. # </Host>
  1128. #</Plugin>
  1129.  
  1130. #<Plugin statsd>
  1131. # Host "::"
  1132. # Port "8125"
  1133. # DeleteCounters false
  1134. # DeleteTimers false
  1135. # DeleteGauges false
  1136. # DeleteSets false
  1137. # CounterSum false
  1138. # TimerPercentile 90.0
  1139. # TimerPercentile 95.0
  1140. # TimerPercentile 99.0
  1141. # TimerLower false
  1142. # TimerUpper false
  1143. # TimerSum false
  1144. # TimerCount false
  1145. #</Plugin>
  1146.  
  1147. #<Plugin swap>
  1148. # ReportByDevice false
  1149. # ReportBytes true
  1150. #</Plugin>
  1151.  
  1152. #<Plugin table>
  1153. # <Table "/proc/slabinfo">
  1154. # Instance "slabinfo"
  1155. # Separator " "
  1156. # <Result>
  1157. # Type gauge
  1158. # InstancePrefix "active_objs"
  1159. # InstancesFrom 0
  1160. # ValuesFrom 1
  1161. # </Result>
  1162. # <Result>
  1163. # Type gauge
  1164. # InstancePrefix "objperslab"
  1165. # InstancesFrom 0
  1166. # ValuesFrom 4
  1167. # </Result>
  1168. # </Table>
  1169. #</Plugin>
  1170.  
  1171. #<Plugin tail>
  1172. # <File "/var/log/exim4/mainlog">
  1173. # Instance "exim"
  1174. # Interval 60
  1175. # <Match>
  1176. # Regex "S=([1-9][0-9]*)"
  1177. # DSType "CounterAdd"
  1178. # Type "ipt_bytes"
  1179. # Instance "total"
  1180. # </Match>
  1181. # <Match>
  1182. # Regex "\\<R=local_user\\>"
  1183. # ExcludeRegex "\\<R=local_user\\>.*mail_spool defer"
  1184. # DSType "CounterInc"
  1185. # Type "counter"
  1186. # Instance "local_user"
  1187. # </Match>
  1188. # </File>
  1189. # <File "/var/log/nginx/apache-time.log">
  1190. # #Use the following log format in nginx:
  1191. # #log_format response_time '[$host] "$upstream_response_time" ...'
  1192. # Instance "apache"
  1193. # <Match>
  1194. # Regex "^\\S+ \"([0-9.]+)\""
  1195. # <DSType Distribution>
  1196. # Percentile 80 # -> latency-foo-80
  1197. # Percentile 95 # -> latency-foo-95
  1198. # Percentile 99 # -> latency-foo-99
  1199. # Bucket 0 0.1 # -> bucket-latency-foo-0_0.1
  1200. # Bucket 0.1 0.2 # -> bucket-latency-foo-0.1_0.2
  1201. # Bucket 0.2 0.5 # -> bucket-latency-foo-0.2_0.5
  1202. # Bucket 0.5 1.0 # -> bucket-latency-foo-0.5_1
  1203. # Bucket 1.0 2.0 # -> bucket-latency-foo-1_2
  1204. # Bucket 2.0 0 # -> bucket-latency-foo-2_inf
  1205. # </DSType>
  1206. # Type "latency"
  1207. # Instance "foo"
  1208. # </Match>
  1209. # </File>
  1210. #</Plugin>
  1211.  
  1212. #<Plugin tail_csv>
  1213. # <Metric "dropped">
  1214. # Type "percent"
  1215. # Instance "dropped"
  1216. # ValueFrom 1
  1217. # </Metric>
  1218. # <Metric "mbps">
  1219. # Type "bytes"
  1220. # Instance "wire-realtime"
  1221. # ValueFrom 2
  1222. # </Metric>
  1223. # <Metric "alerts">
  1224. # Type "alerts_per_second"
  1225. # ValueFrom 3
  1226. # </Metric>
  1227. # <Metric "kpps">
  1228. # Type "kpackets_wire_per_sec.realtime"
  1229. # ValueFrom 4
  1230. # </Metric>
  1231. # <File "/var/log/snort/snort.stats">
  1232. # Instance "snort-eth0"
  1233. # Interval 600
  1234. # Collect "dropped" "mbps" "alerts" "kpps"
  1235. # TimeFrom 0
  1236. # </File>
  1237. #</Plugin>
  1238.  
  1239. #<Plugin tcpconns>
  1240. # ListeningPorts false
  1241. # AllPortsSummary false
  1242. # LocalPort "25"
  1243. # RemotePort "25"
  1244. #</Plugin>
  1245.  
  1246. #<Plugin teamspeak2>
  1247. # Host "127.0.0.1"
  1248. # Port "51234"
  1249. # Server "8767"
  1250. #</Plugin>
  1251.  
  1252. #<Plugin ted>
  1253. # Device "/dev/ttyUSB0"
  1254. # Retries 0
  1255. #</Plugin>
  1256.  
  1257. #<Plugin thermal>
  1258. # ForceUseProcfs false
  1259. # Device "THRM"
  1260. # IgnoreSelected false
  1261. #</Plugin>
  1262.  
  1263. #<Plugin tokyotyrant>
  1264. # Host "localhost"
  1265. # Port "1978"
  1266. #</Plugin>
  1267.  
  1268. #<Plugin turbostat>
  1269. ## None of the following option should be set manually
  1270. ## This plugin automatically detect most optimal options
  1271. ## Only set values here if:
  1272. ## - The module asks you to
  1273. ## - You want to disable the collection of some data
  1274. ## - Your (Intel) CPU is not supported (yet) by the module
  1275. ## - The module generates a lot of errors 'MSR offset 0x... read failed'
  1276. ## In the last two cases, please open a bug request
  1277. #
  1278. # TCCActivationTemp "100"
  1279. # CoreCstates "392"
  1280. # PackageCstates "396"
  1281. # SystemManagementInterrupt true
  1282. # DigitalTemperatureSensor true
  1283. # PackageThermalManagement true
  1284. # RunningAveragePowerLimit "7"
  1285. #</Plugin>
  1286.  
  1287. #<Plugin unixsock>
  1288. # SocketFile "/var/run/collectd-unixsock"
  1289. # SocketGroup "collectd"
  1290. # SocketPerms "0660"
  1291. # DeleteSocket false
  1292. #</Plugin>
  1293.  
  1294. #<Plugin uuid>
  1295. # UUIDFile "/etc/uuid"
  1296. #</Plugin>
  1297.  
  1298. #<Plugin varnish>
  1299. # <Instance>
  1300. # CollectBackend true
  1301. # CollectBan false # Varnish 3 and above
  1302. # CollectCache true
  1303. # CollectConnections true
  1304. # CollectDirectorDNS false # Varnish 3 only
  1305. # CollectESI false
  1306. # CollectFetch false
  1307. # CollectHCB false
  1308. # CollectObjects false
  1309. # CollectPurge false # Varnish 2 only
  1310. # CollectSession false
  1311. # CollectSHM true
  1312. # CollectSMA false # Varnish 2 only
  1313. # CollectSMS false
  1314. # CollectSM false # Varnish 2 only
  1315. # CollectStruct false
  1316. # CollectTotals false
  1317. # CollectUptime false # Varnish 3 and above
  1318. # CollectdVCL false
  1319. # CollectVSM false # Varnish 4 only
  1320. # CollectWorkers false
  1321. # </Instance>
  1322. #
  1323. # <Instance "myinstance">
  1324. # CollectCache true
  1325. # </Instance>
  1326. #</Plugin>
  1327.  
  1328. #<Plugin virt>
  1329. # Connection "xen:///"
  1330. # RefreshInterval 60
  1331. # Domain "name"
  1332. # BlockDevice "name:device"
  1333. # BlockDeviceFormat target
  1334. # BlockDeviceFormatBasename false
  1335. # InterfaceDevice "name:device"
  1336. # IgnoreSelected false
  1337. # HostnameFormat name
  1338. # InterfaceFormat name
  1339. # PluginInstanceFormat name
  1340. #</Plugin>
  1341.  
  1342. #<Plugin vmem>
  1343. # Verbose false
  1344. #</Plugin>
  1345.  
  1346. <Plugin write_graphite>
  1347. <Node "graphing">
  1348. Host "127.0.0.1"
  1349. Port "2003"
  1350. Protocol "tcp"
  1351. LogSendErrors true
  1352. Prefix "collectd."
  1353. StoreRates true
  1354. AlwaysAppendDS false
  1355. EscapeCharacter "_"
  1356. </Node>
  1357. </Plugin>
  1358.  
  1359. #<Plugin write_http>
  1360. # <Node "example">
  1361. # URL "http://example.com/collectd-post"
  1362. # User "collectd"
  1363. # Password "secret"
  1364. # VerifyPeer true
  1365. # VerifyHost true
  1366. # CACert "/etc/ssl/ca.crt"
  1367. # CAPath "/etc/ssl/certs/"
  1368. # ClientKey "/etc/ssl/client.pem"
  1369. # ClientCert "/etc/ssl/client.crt"
  1370. # ClientKeyPass "secret"
  1371. # Header "X-Custom-Header: custom_value"
  1372. # SSLVersion "TLSv1"
  1373. # Format "Command"
  1374. # Metrics true
  1375. # Notifications false
  1376. # StoreRates false
  1377. # BufferSize 4096
  1378. # LowSpeedLimit 0
  1379. # Timeout 0
  1380. # Prefix "collectd/"
  1381. # </Node>
  1382. #</Plugin>
  1383.  
  1384. #<Plugin write_kafka>
  1385. # Property "metadata.broker.list" "localhost:9092"
  1386. # <Topic "collectd">
  1387. # Format JSON
  1388. # </Topic>
  1389. #</Plugin>
  1390.  
  1391. #<Plugin write_prometheus>
  1392. # Port "9103"
  1393. #</Plugin>
  1394.  
  1395. #<Plugin write_redis>
  1396. # <Node "example">
  1397. # Host "localhost"
  1398. # Port "6379"
  1399. # Timeout 1000
  1400. # <Node>
  1401. #</Plugin>
  1402.  
  1403. #<Plugin write_riemann>
  1404. # <Node "example">
  1405. # Host "localhost"
  1406. # Port 5555
  1407. # Protocol TCP
  1408. # Batch true
  1409. # BatchMaxSize 8192
  1410. # StoreRates true
  1411. # AlwaysAppendDS false
  1412. # TTLFactor 2.0
  1413. # Notifications true
  1414. # CheckThresholds false
  1415. # EventServicePrefix ""
  1416. # </Node>
  1417. # Tag "foobar"
  1418. # Attribute "foo" "bar"
  1419. #</Plugin>
  1420.  
  1421. #<Plugin write_sensu>
  1422. # <Node "example">
  1423. # Host "localhost"
  1424. # Port 3030
  1425. # StoreRates true
  1426. # AlwaysAppendDS false
  1427. # Notifications true
  1428. # Metrics true
  1429. # EventServicePrefix ""
  1430. # MetricHandler "influx"
  1431. # MetricHandler "default"
  1432. # NotificationHandler "flapjack"
  1433. # NotificationHandler "howling_monkey"
  1434. # </Node>
  1435. # Tag "foobar"
  1436. # Attribute "foo" "bar"
  1437. #</Plugin>
  1438.  
  1439. #<Plugin write_tsdb>
  1440. # <Node>
  1441. # Host "localhost"
  1442. # Port "4242"
  1443. # HostTags "status=production"
  1444. # StoreRates false
  1445. # AlwaysAppendDS false
  1446. # </Node>
  1447. #</Plugin>
  1448.  
  1449. #<Plugin zookeeper>
  1450. # Host "localhost"
  1451. # Port "2181"
  1452. #</Plugin>
  1453.  
  1454. <Include "/etc/collectd/collectd.conf.d">
  1455. Filter "*.conf"
  1456. </Include>
Advertisement
Add Comment
Please, Sign In to add comment