luci_statistics 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218
  1. # general settings
  2. config statistics 'collectd'
  3. option BaseDir '/var/run/collectd'
  4. # option Include '/etc/collectd/conf.d'
  5. option PIDFile '/var/run/collectd.pid'
  6. option PluginDir '/usr/lib/collectd'
  7. option TypesDB '/usr/share/collectd/types.db'
  8. option Interval '30'
  9. option ReadThreads '2'
  10. config statistics 'rrdtool'
  11. option default_timespan '2hour'
  12. option image_width '600'
  13. option image_height '150'
  14. option image_path '/tmp/rrdimg'
  15. # output plugins
  16. config statistics 'collectd_rrdtool'
  17. option enable '1'
  18. option DataDir '/tmp/rrd'
  19. option RRARows '288'
  20. option RRASingle '1'
  21. option RRATimespans '2hour 1day 1week 1month 1year'
  22. option backup '0'
  23. config statistics 'collectd_csv'
  24. option enable '0'
  25. option StoreRates '0'
  26. option DataDir '/tmp'
  27. config statistics 'collectd_email'
  28. option enable '0'
  29. option SocketFile '/var/run/collectd/email.sock'
  30. option SocketGroup 'nogroup'
  31. config statistics 'collectd_logfile'
  32. option enable '0'
  33. option LogLevel 'notice'
  34. option File '/var/log/collectd.log'
  35. option Timestamp '1'
  36. config statistics 'collectd_network'
  37. option enable '0'
  38. config statistics 'collectd_syslog'
  39. option enable '0'
  40. option LogLevel 'warning'
  41. option NotifyLevel 'WARNING'
  42. config statistics 'collectd_unixsock'
  43. option enable '0'
  44. option SocketFile '/var/run/collectd/query.sock'
  45. option SocketGroup 'nogroup'
  46. # input plugins
  47. config statistics 'collectd_apcups'
  48. option enable '0'
  49. option Host 'localhost'
  50. option Port '3551'
  51. config statistics 'collectd_chrony'
  52. option enable '0'
  53. option Host '127.0.0.1'
  54. option Port '323'
  55. option Timeout '2'
  56. config statistics 'collectd_conntrack'
  57. option enable '0'
  58. config statistics 'collectd_contextswitch'
  59. option enable '0'
  60. config statistics 'collectd_cpu'
  61. option enable '1'
  62. option ReportByCpu '1'
  63. option ReportByState '1'
  64. option ShowIdle '0'
  65. option ValuesPercentage '1'
  66. config statistics 'collectd_cpufreq'
  67. option enable '0'
  68. config statistics 'collectd_curl'
  69. option enable '0'
  70. config statistics 'collectd_df'
  71. option enable '0'
  72. option Devices '/dev/mtdblock/4'
  73. option MountPoints '/overlay'
  74. option FSTypes 'tmpfs'
  75. option IgnoreSelected '0'
  76. option ValuesPercentage '0'
  77. config statistics 'collectd_dhcpleases'
  78. option enable '0'
  79. option Path '/tmp/dhcp.leases'
  80. config statistics 'collectd_disk'
  81. option enable '0'
  82. option Disks 'hda1 hdb'
  83. option IgnoreSelected '0'
  84. config statistics 'collectd_dns'
  85. option enable '0'
  86. option Interfaces 'br-lan'
  87. option IgnoreSources '127.0.0.1'
  88. config statistics 'collectd_entropy'
  89. option enable '0'
  90. config statistics 'collectd_exec'
  91. option enable '0'
  92. #example for sqm_collect plugin
  93. #config collectd_exec_input
  94. # option cmduser 'nobody'
  95. # option cmdgroup 'nogroup'
  96. # option cmdline '/usr/libexec/collectd/sqm_collectd.sh eth0 ifb4eth0'
  97. config statistics 'collectd_interface'
  98. option enable '1'
  99. option Interfaces 'br-lan'
  100. option IgnoreSelected '0'
  101. config statistics 'collectd_ipstatistics'
  102. option enable '0'
  103. config statistics 'collectd_iptables'
  104. option enable '0'
  105. config collectd_iptables_match
  106. option table 'nat'
  107. option chain 'luci_fw_postrouting'
  108. option target 'MASQUERADE'
  109. option source '192.168.1.0/24'
  110. option outputif 'br-ff'
  111. option name 'LAN-Clients traffic'
  112. config collectd_iptables_match
  113. option chain 'luci_fw_postrouting'
  114. option table 'nat'
  115. option target 'MASQUERADE'
  116. option source '10.61.230.0/24'
  117. option outputif 'br-ff'
  118. option name 'WLAN-Clients traffic'
  119. config statistics 'collectd_irq'
  120. option enable '0'
  121. option Irqs '2 3 4 7'
  122. config statistics 'collectd_iwinfo'
  123. option enable '1'
  124. config statistics 'collectd_load'
  125. option enable '1'
  126. config statistics 'collectd_memory'
  127. option enable '1'
  128. option HideFree '0'
  129. option ValuesAbsolute '1'
  130. option ValuesPercentage '0'
  131. config statistics 'collectd_netlink'
  132. option enable '0'
  133. option IgnoreSelected '0'
  134. option VerboseInterfaces 'br-lan'
  135. option QDiscs 'br-lan'
  136. config statistics 'collectd_nut'
  137. option enable '0'
  138. list UPS 'myupsname'
  139. config statistics 'collectd_olsrd'
  140. option enable '0'
  141. option Port '2006'
  142. option Host '127.0.0.1'
  143. config statistics 'collectd_openvpn'
  144. option enable '0'
  145. config statistics 'collectd_ping'
  146. option enable '0'
  147. option TTL '127'
  148. option Interval '30'
  149. option Hosts '127.0.0.1'
  150. config statistics 'collectd_processes'
  151. option enable '0'
  152. option Processes 'uhttpd dnsmasq dropbear'
  153. config statistics 'collectd_sensors'
  154. option enable '0'
  155. config statistics 'collectd_snmp6'
  156. option enable '0'
  157. option Interfaces 'br-lan'
  158. option IgnoreSelected '0'
  159. config statistics 'collectd_splash_leases'
  160. option enable '0'
  161. config statistics 'collectd_tcpconns'
  162. option enable '0'
  163. option ListeningPorts '0'
  164. list LocalPorts '22'
  165. option AllPortsSummary '0'
  166. config statistics 'collectd_thermal'
  167. option enable '0'
  168. option IgnoreSelected '0'
  169. option Device ''
  170. config statistics 'collectd_uptime'
  171. option enable '0'