|
| 1 | +######################################################################## |
| 2 | +# Extract H3 information -- extended version |
| 3 | +# Page: 1 |
| 4 | +# Information Status Statistics |
| 5 | +# - cpu frequency - yes - yes |
| 6 | +# - dram frequency - yes - yes |
| 7 | +# - average load 1, 5, 15 - yes - yes |
| 8 | +# - detailed cpu load - yes - yes |
| 9 | +# - cpu scaling governor - yes - no |
| 10 | +# - cpus available - yes - yes |
| 11 | +# - zone1/SoC temperature - yes - yes |
| 12 | +# - disk temperature - yes - yes |
| 13 | +# - external temperature - yes - no |
| 14 | +# - Vcore voltage - yes - yes |
| 15 | +# - cooling state - yes - yes |
| 16 | +######################################################################## |
| 17 | +dynamic.1.name=cpu_frequency |
| 18 | +dynamic.1.source=/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq |
| 19 | +dynamic.1.regexp=(.*) |
| 20 | +dynamic.1.postprocess=sprintf("%.3f", $1/1000000) |
| 21 | +dynamic.1.rrd=GAUGE |
| 22 | + |
| 23 | +dynamic.2.name=load1,load5,load15 |
| 24 | +dynamic.2.source=/proc/loadavg |
| 25 | +dynamic.2.regexp=^(\S+)\s(\S+)\s(\S+) |
| 26 | +dynamic.2.postprocess= |
| 27 | +dynamic.2.rrd=GAUGE |
| 28 | + |
| 29 | +dynamic.3.name=scaling_governor |
| 30 | +dynamic.3.source=/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor |
| 31 | +dynamic.3.regexp=(.*) |
| 32 | +dynamic.3.postprocess= |
| 33 | +dynamic.3.rrd= |
| 34 | + |
| 35 | +dynamic.4.name=cpu_count |
| 36 | +dynamic.4.source=/usr/bin/expr 1 + `/usr/bin/awk -F": " '/^processor/ {print $2}' < /proc/cpuinfo | /usr/bin/tail -n1` |
| 37 | +dynamic.4.regexp=(.*) |
| 38 | +dynamic.4.postprocess= |
| 39 | +dynamic.4.rrd=GAUGE |
| 40 | + |
| 41 | +dynamic.5.name=dram_frequency |
| 42 | +dynamic.5.source=/sys/devices/platform/sunxi-ddrfreq/devfreq/sunxi-ddrfreq/cur_freq |
| 43 | +dynamic.5.regexp=(.*) |
| 44 | +dynamic.5.postprocess=sprintf("%.3f", $1/1000000) |
| 45 | +dynamic.5.rrd=GAUGE |
| 46 | + |
| 47 | +dynamic.6.name=soctemp |
| 48 | +dynamic.6.source=/sys/class/thermal/thermal_zone1/temp |
| 49 | +dynamic.6.regexp=(.*) |
| 50 | +#dynamic.6.postprocess=sprintf("%.1f", $1/1000) |
| 51 | +dynamic.6.postprocess= |
| 52 | +dynamic.6.rrd=GAUGE |
| 53 | + |
| 54 | +dynamic.7.name=externaltemp |
| 55 | +dynamic.7.source=/tmp/externaltemp |
| 56 | +dynamic.7.regexp=(.*) |
| 57 | +dynamic.7.postprocess=sprintf("%.1f", $1/1000) |
| 58 | +dynamic.7.rrd=GAUGE |
| 59 | + |
| 60 | +dynamic.8.name=disktemp |
| 61 | +dynamic.8.source=/tmp/disktemp |
| 62 | +dynamic.8.regexp=(.*) |
| 63 | +dynamic.8.postprocess=sprintf("%.1f", $1/1000) |
| 64 | +dynamic.8.rrd=GAUGE |
| 65 | + |
| 66 | +dynamic.9.name=vcorevoltage |
| 67 | +dynamic.9.source=/tmp/VCore |
| 68 | +dynamic.9.regexp=(.*) |
| 69 | +dynamic.9.postprocess=sprintf("%.2f", $1/1000) |
| 70 | +dynamic.9.rrd=GAUGE |
| 71 | + |
| 72 | +dynamic.10.name=cpu_stat,system_stat,user_stat,nice_stat,iowait_stat,irq_stat |
| 73 | +dynamic.10.source=/tmp/cpustat |
| 74 | +dynamic.10.regexp=^(\S+)\s(\S+)\s(\S+)\s(\S+)\s(\S+)\s(\S+) |
| 75 | +dynamic.10.postprocess= |
| 76 | +dynamic.10.rrd=GAUGE |
| 77 | + |
| 78 | +dynamic.11.name=coolingstate |
| 79 | +dynamic.11.source=/sys/devices/virtual/thermal/cooling_device0/cur_state |
| 80 | +dynamic.11.regexp=(.*) |
| 81 | +dynamic.11.postprocess= |
| 82 | +dynamic.11.rrd=GAUGE |
| 83 | + |
| 84 | +web.status.1.content.1.name=CPU |
| 85 | +web.status.1.content.1.icon=cpu.png |
| 86 | +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) |
| 87 | +web.status.1.content.1.line.2="CPU total: <b>" + data.cpu_stat + "%</b> (Sys: " + data.system_stat + "%, User: " + data.user_stat + "%, I/O wait: " + data.iowait_stat + "%, Nice: " + data.nice_stat + "%)" |
| 88 | +web.status.1.content.1.line.3="CPU frequency: <b>" + data.cpu_frequency + "GHz</b> DRAM frequency: <b>" + data.dram_frequency + "GHz</b>" |
| 89 | +web.status.1.content.1.line.4="Governor: <b>" + data.scaling_governor + "</b> Active CPU cores: <b>" + data.cpu_count + "</b> Vcore: <b>" + data.vcorevoltage + "</b>" |
| 90 | + |
| 91 | +web.status.1.content.3.name=Temperature |
| 92 | +web.status.1.content.3.icon=cpu_temp.png |
| 93 | +#web.status.1.content.3.line.1=JustGageBar("SoC", "°C",0, data.soctemp , 100,100,80,percentColors,50,70)+" "+JustGageBar("Disk", "°C",0, data.disktemp , 100,100,80,percentColors,40,50)+" "+JustGageBar("München", "°C",0, data.externaltemp , 100,100,80,percentColors,30,35) |
| 94 | +web.status.1.content.3.line.1=JustGageBar("SoC", "°C",0, data.soctemp , 100,100,80,percentColors,50,70)+" "+JustGageBar("Disk", "°C",0, data.disktemp , 100,100,80,percentColors,40,50)+" "+JustGageBar("Cooling State", "",0, data.coolingstate , 5,100,80,percentColors,1,2) |
| 95 | + |
| 96 | +web.statistics.1.content.1.name=Load / Clockspeeds / Temperature |
| 97 | +web.statistics.1.content.1.graph.1=load1 |
| 98 | +web.statistics.1.content.1.graph.2=load5 |
| 99 | +web.statistics.1.content.1.graph.3=load15 |
| 100 | +web.statistics.1.content.1.graph.4=cpu_frequency |
| 101 | +web.statistics.1.content.1.graph.5=dram_frequency |
| 102 | +web.statistics.1.content.1.graph.6=cpu_count |
| 103 | +web.statistics.1.content.1.graph.7=soctemp |
| 104 | +web.statistics.1.content.1.graph.8=vcorevoltage |
| 105 | +web.statistics.1.content.1.graph.9=disktemp |
| 106 | +web.statistics.1.content.1.graph.10=cpu_stat |
| 107 | +web.statistics.1.content.1.graph.11=coolingstate |
| 108 | +web.statistics.1.content.1.ds_graph_options.load1.label=Load 1 min |
| 109 | +web.statistics.1.content.1.ds_graph_options.load5.label=Load 5 min |
| 110 | +web.statistics.1.content.1.ds_graph_options.load15.label=Load 15 min |
| 111 | +web.statistics.1.content.1.ds_graph_options.cpu_frequency.label=CPU Clock speed (GHz) |
| 112 | +web.statistics.1.content.1.ds_graph_options.cpu_frequency.yaxis=2 |
| 113 | +web.statistics.1.content.1.ds_graph_options.dram_frequency.label=DRAM Clock speed (GHz) |
| 114 | +web.statistics.1.content.1.ds_graph_options.dram_frequency.yaxis=2 |
| 115 | +web.statistics.1.content.1.ds_graph_options.cpu_count.label=Active CPUs |
| 116 | +web.statistics.1.content.1.ds_graph_options.cpu_count.yaxis=2 |
| 117 | +web.statistics.1.content.1.ds_graph_options.soctemp.label=SoC temp (°C) |
| 118 | +web.statistics.1.content.1.ds_graph_options.disktemp.label=Disk temp (°C) |
| 119 | +web.statistics.1.content.1.ds_graph_options.vcorevoltage.label=Vcore (V) |
| 120 | +web.statistics.1.content.1.ds_graph_options.vcorevoltage.yaxis=2 |
| 121 | +web.statistics.1.content.1.ds_graph_options.coolingstate.label=Cooling State |
| 122 | +web.statistics.1.content.1.ds_graph_options.coolingstate.yaxis=2 |
| 123 | +web.statistics.1.content.1.ds_graph_options.cpu_stat.label=CPU total (%) |
| 124 | +web.statistics.1.content.1.graph_options.y1axis={ position: "left", min: 35, max: 75 } |
| 125 | +web.statistics.1.content.1.graph_options.y2axis={ position: "right" } |
| 126 | + |
| 127 | +web.statistics.1.content.2.name=Detailed CPU Stats |
| 128 | +web.statistics.1.content.2.graph.1=cpu_stat |
| 129 | +web.statistics.1.content.2.graph.2=system_stat |
| 130 | +web.statistics.1.content.2.graph.3=user_stat |
| 131 | +web.statistics.1.content.2.graph.4=nice_stat |
| 132 | +web.statistics.1.content.2.graph.5=iowait_stat |
| 133 | +web.statistics.1.content.2.graph.6=irq_stat |
| 134 | +web.statistics.1.content.2.ds_graph_options.cpu_stat.label=CPU total (%) |
| 135 | +web.statistics.1.content.2.ds_graph_options.system_stat.label=System (%) |
| 136 | +web.statistics.1.content.2.ds_graph_options.user_stat.label=User (%) |
| 137 | +web.statistics.1.content.2.ds_graph_options.nice_stat.label=Nice (%) |
| 138 | +web.statistics.1.content.2.ds_graph_options.iowait_stat.label=I/O wait (%) |
| 139 | +web.statistics.1.content.2.ds_graph_options.irq_stat.label=IRQ/softirq (%) |
| 140 | +web.statistics.1.content.2.graph_options.y1axis={ position: "left", min: 0, max: 100 } |
| 141 | + |
| 142 | + |
0 commit comments