Guest User

Allwinner_H3.conf

a guest
Nov 26th, 2015
1,003
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ########################################################################
  2. # Extract H3 information
  3. # Page: 1
  4. # Information Status Statistics
  5. # - cpu frequency - yes - yes
  6. # - cpu load 1, 5, 15 - yes - yes
  7. # - cpu scaling governor - yes - no
  8. # - cpus available - yes - yes
  9. # - dram frequency - yes - yes
  10. # - zone1/SoC temperature - yes - yes
  11. ########################################################################
  12. dynamic.1.name=cpu_frequency
  13. dynamic.1.source=/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq
  14. dynamic.1.regexp=(.*)
  15. dynamic.1.postprocess=sprintf("%.3f", $1/1000000)
  16. dynamic.1.rrd=GAUGE
  17.  
  18. dynamic.2.name=load1,load5,load15
  19. dynamic.2.source=/proc/loadavg
  20. dynamic.2.regexp=^(\S+)\s(\S+)\s(\S+)
  21. dynamic.2.postprocess=
  22. dynamic.2.rrd=GAUGE
  23.  
  24. dynamic.3.name=scaling_governor
  25. dynamic.3.source=/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
  26. dynamic.3.regexp=(.*)
  27. dynamic.3.postprocess=
  28. dynamic.3.rrd=
  29.  
  30. dynamic.4.name=cpu_count
  31. dynamic.4.source=/usr/bin/expr 1 + `/usr/bin/awk -F": " '/^processor/ {print $2}' < /proc/cpuinfo | /usr/bin/tail -n1`
  32. dynamic.4.regexp=(.*)
  33. dynamic.4.postprocess=
  34. dynamic.4.rrd=GAUGE
  35.  
  36. dynamic.5.name=dram_frequency
  37. dynamic.5.source=/sys/devices/platform/sunxi-ddrfreq/devfreq/sunxi-ddrfreq/cur_freq
  38. dynamic.5.regexp=(.*)
  39. dynamic.5.postprocess=sprintf("%.3f", $1/1000000)
  40. dynamic.5.rrd=GAUGE
  41.  
  42. dynamic.6.name=soctemp
  43. dynamic.6.source=/sys/class/thermal/thermal_zone1/temp
  44. dynamic.6.regexp=(.*)
  45. #dynamic.6.postprocess=sprintf("%.1f", $1/1000)
  46. dynamic.6.postprocess=
  47. dynamic.6.rrd=GAUGE
  48.  
  49. dynamic.7.name=DropThis,UserStat,NiceStat,SystemStat,IdleStat,IOWaitStat,IrqStat,SoftIrqStat
  50. dynamic.7.source=/proc/stat
  51. dynamic.7.regexp=^cpu(\S+)\s(\S+)\s(\S+)(\S+)\s(\S+)\s(\S+)\s(\S+)\s(\S+)
  52. dynamic.7.postprocess=
  53. dynamic.7.rrd=DERIVE
  54.  
  55. web.status.1.content.1.name=CPU
  56. web.status.1.content.1.icon=cpu.png
  57. #web.status.1.content.1.line.1="Loads: <b>" + data.load1 + "</b> [1min] - <b>" + data.load5 + "</b> [5min] - <b>" + data.load15 + "</b> [15min]"
  58. web.status.1.content.1.line.1=JustGageBar("Load", "1min", 0, data.load1, 3, 100, 80)+" "+JustGageBar("Load", "5min", 0, data.load5, 3, 100, 80)+" "+JustGageBar("Load", "15min", 0, data.load15, 3, 100, 80)
  59. web.status.1.content.1.line.2="CPU frequency: <b>" + data.cpu_frequency + "GHz</b> &nbsp;DRAM frequency: <b>" + data.dram_frequency + "GHz</b>"
  60. web.status.1.content.1.line.3="Governor: <b>" + data.scaling_governor + "</b> &nbsp;Active CPU cores: <b>" + data.cpu_count + "</b>"
  61.  
  62. web.status.1.content.3.name=Temperature
  63. web.status.1.content.3.icon=cpu_temp.png
  64. web.status.1.content.3.line.1=JustGageBar("SoC", "°C",0, data.soctemp , 100,100,80,percentColors,50,70)
  65.  
  66. web.statistics.1.content.1.name=Load / Clockspeeds / Temperature
  67. web.statistics.1.content.1.graph.1=load1
  68. web.statistics.1.content.1.graph.2=load5
  69. web.statistics.1.content.1.graph.3=load15
  70. web.statistics.1.content.1.graph.4=cpu_frequency
  71. web.statistics.1.content.1.graph.5=dram_frequency
  72. web.statistics.1.content.1.graph.6=cpu_count
  73. web.statistics.1.content.1.graph.7=soctemp
  74. web.statistics.1.content.1.ds_graph_options.load1.label=Load 1 min
  75. web.statistics.1.content.1.ds_graph_options.load5.label=Load 5 min
  76. web.statistics.1.content.1.ds_graph_options.load15.label=Load 15 min
  77. web.statistics.1.content.1.ds_graph_options.cpu_frequency.label=CPU Clock speed (GHz)
  78. web.statistics.1.content.1.ds_graph_options.cpu_frequency.yaxis=2
  79. web.statistics.1.content.1.ds_graph_options.dram_frequency.label=DRAM Clock speed (GHz)
  80. web.statistics.1.content.1.ds_graph_options.dram_frequency.yaxis=2
  81. web.statistics.1.content.1.ds_graph_options.cpu_count.label=Active CPUs
  82. web.statistics.1.content.1.ds_graph_options.cpu_count.yaxis=2
  83. web.statistics.1.content.1.ds_graph_options.soctemp.label=SoC temp
  84. web.statistics.1.content.1.graph_options.y2axis={ position: "right" }
RAW Paste Data