Guest User

rpi-monitor cpu.conf for A20 device like BananaPi

a guest
Oct 14th, 2014
810
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ########################################################################
  2. # Extract CPU information
  3. # Page: 1
  4. # Information Status Statistics
  5. # - cpu frequency - yes - yes
  6. # - pmu voltage - no - yes
  7. # - cpu load 1, 5, 15 - yes - yes
  8. # - cpu scaling governor - yes - no
  9. # - pmu current - yes - yes
  10. # - pmu consumption (V * A) - no - 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=$1/1000
  16. dynamic.1.rrd=GAUGE
  17.  
  18. dynamic.2.name=pmu_voltage
  19. dynamic.2.source=/sys/devices/platform/sunxi-i2c.0/i2c-0/0-0034/axp20-supplyer.28/power_supply/ac/voltage_now
  20. dynamic.2.regexp=(.*)
  21. dynamic.2.postprocess=$1/1000000
  22. dynamic.2.rrd=GAUGE
  23.  
  24. dynamic.3.name=load1,load5,load15
  25. dynamic.3.source=/proc/loadavg
  26. dynamic.3.regexp=^(\S+)\s(\S+)\s(\S+)
  27. dynamic.3.postprocess=
  28. dynamic.3.rrd=GAUGE
  29.  
  30. dynamic.4.name=scaling_governor
  31. dynamic.4.source=/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
  32. dynamic.4.regexp=(.*)
  33. dynamic.4.postprocess=
  34. dynamic.4.rrd=
  35.  
  36. dynamic.5.name=pmu_current
  37. dynamic.5.source=/sys/devices/platform/sunxi-i2c.0/i2c-0/0-0034/axp20-supplyer.28/power_supply/ac/current_now
  38. dynamic.5.regexp=(.*)
  39. dynamic.5.postprocess=$1/1000
  40. dynamic.5.rrd=GAUGE
  41.  
  42. dynamic.6.name=pmu_consumption
  43. dynamic.6.source=/sys/devices/platform/sunxi-i2c.0/i2c-0/0-0034/axp20-supplyer.28/power_supply/ac/current_now
  44. dynamic.6.regexp=(.*)
  45. dynamic.6.postprocess=$1/1000000 * $this->{'dynamic'}->{'pmu_voltage'}
  46. dynamic.6.rrd=GAUGE
  47.  
  48. web.status.1.content.1.name=CPU / PMU
  49. web.status.1.content.1.icon=cpu.png
  50. web.status.1.content.1.line.1="Loads: <b>" + data.load1 + "</b> [1min] - <b>" + data.load5 + "</b> [5min] - <b>" + data.load15 + "</b> [15min]"
  51. web.status.1.content.1.line.2="CPU frequency: <b>" + data.cpu_frequency + "MHz</b> PMU Current: <b>" + data.pmu_current + "mA</b>"
  52. web.status.1.content.1.line.3="Scaling governor: <b>" + data.scaling_governor + "</b>"
  53.  
  54. web.statistics.1.content.1.name=Load / Clock speed / PMU
  55. web.statistics.1.content.1.graph.1=load1
  56. web.statistics.1.content.1.graph.2=load5
  57. web.statistics.1.content.1.graph.3=load15
  58. web.statistics.1.content.1.graph.4=pmu_consumption
  59. web.statistics.1.content.1.graph.5=cpu_frequency
  60. web.statistics.1.content.1.graph.6=pmu_current
  61. web.statistics.1.content.1.ds_graph_options.load1.label=Load 1 min
  62. web.statistics.1.content.1.ds_graph_options.load5.label=Load 5 min
  63. web.statistics.1.content.1.ds_graph_options.load15.label=Load 15 min
  64. web.statistics.1.content.1.ds_graph_options.pmu_consumption.label=PMU consumption (W)
  65. web.statistics.1.content.1.ds_graph_options.cpu_frequency.label=Clock speed (MHz)
  66. web.statistics.1.content.1.ds_graph_options.pmu_current.label=PMU Current (mA)
  67. web.statistics.1.content.1.ds_graph_options.cpu_frequency.yaxis=2
  68. web.statistics.1.content.1.ds_graph_options.pmu_current.yaxis=2
  69. web.statistics.1.content.1.graph_options.y2axis={ position: "right" }
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×