Révision 36588f92
fixed naming for multiple GPUs in amd_gpu_; adjusted lower limit for temperature to 20
| plugins/gpu/amd_gpu_ | ||
|---|---|---|
| 109 | 109 |
case $name in |
| 110 | 110 |
temp) |
| 111 | 111 |
echo 'graph_title GPU temperature' |
| 112 |
echo 'graph_args -l 0 -u 120' |
|
| 112 |
echo 'graph_args -l 20 -u 120'
|
|
| 113 | 113 |
echo 'graph_vlabel Degrees (C)' |
| 114 | 114 |
echo 'graph_category gpu' |
| 115 | 115 |
echo "graph_info Temperature information for AMD GPUs" |
| 116 | 116 |
nGpusCounter=0 |
| 117 | 117 |
while [ $nGpusCounter -lt $nGpus ] |
| 118 | 118 |
do |
| 119 |
gpuName=`echo "$nGpusOutput" | grep "* 0" | cut -f 1,3 --complement -d " "`
|
|
| 119 |
gpuName=`echo "$nGpusOutput" | grep "\ $nGpusCounter\.\ " | cut -f 3 -d "." | sed -r 's/^[0-9]\ //'`
|
|
| 120 | 120 |
echo "temp${nGpusCounter}.warning ${warning:-75}"
|
| 121 | 121 |
echo "temp${nGpusCounter}.critical ${critical:-95}"
|
| 122 | 122 |
echo "temp${nGpusCounter}.info Temperature information for $gpuName"
|
| ... | ... | |
| 143 | 143 |
nGpusCounter=0 |
| 144 | 144 |
while [ $nGpusCounter -lt $nGpus ] |
| 145 | 145 |
do |
| 146 |
gpuName=`echo "$nGpusOutput" | grep "* 0" | cut -f 1,3 --complement -d " "`
|
|
| 146 |
gpuName=`echo "$nGpusOutput" | grep "\ $nGpusCounter\.\ " | cut -f 3 -d "." | sed -r 's/^[0-9]\ //'`
|
|
| 147 | 147 |
echo "memclock${nGpusCounter}.info Memory clock information for $gpuName"
|
| 148 | 148 |
echo "memclock${nGpusCounter}.label Memory clock ($gpuName)"
|
| 149 | 149 |
echo "coreclock${nGpusCounter}.info Core clock information for $gpuName"
|
| ... | ... | |
| 160 | 160 |
nGpusCounter=0 |
| 161 | 161 |
while [ $nGpusCounter -lt $nGpus ] |
| 162 | 162 |
do |
| 163 |
gpuName=`echo "$nGpusOutput" | grep "* 0" | cut -f 1,3 --complement -d " "`
|
|
| 163 |
gpuName=`echo "$nGpusOutput" | grep "\ $nGpusCounter\.\ " | cut -f 3 -d "." | sed -r 's/^[0-9]\ //'`
|
|
| 164 | 164 |
echo "fan${nGpusCounter}.info Fan speed information for $gpuName"
|
| 165 | 165 |
echo "fan${nGpusCounter}.label Fan speed ($gpuName)"
|
| 166 | 166 |
: $(( nGpusCounter = $nGpusCounter + 1 )) |
| ... | ... | |
| 175 | 175 |
nGpusCounter=0 |
| 176 | 176 |
while [ $nGpusCounter -lt $nGpus ] |
| 177 | 177 |
do |
| 178 |
gpuName=`echo "$nGpusOutput" | grep "* 0" | cut -f 1,3 --complement -d " "`
|
|
| 178 |
gpuName=`echo "$nGpusOutput" | grep "\ $nGpusCounter\.\ " | cut -f 3 -d "." | sed -r 's/^[0-9]\ //'`
|
|
| 179 | 179 |
echo "load${nGpusCounter}.info Load information for $gpuName"
|
| 180 | 180 |
echo "load${nGpusCounter}.label Load ($gpuName)"
|
| 181 | 181 |
: $(( nGpusCounter = $nGpusCounter + 1 )) |
| ... | ... | |
| 189 | 189 |
nGpusCounter=0 |
| 190 | 190 |
while [ $nGpusCounter -lt $nGpus ] |
| 191 | 191 |
do |
| 192 |
gpuName=`echo "$nGpusOutput" | grep "* 0" | cut -f 1,3 --complement -d " "`
|
|
| 192 |
gpuName=`echo "$nGpusOutput" | grep "\ $nGpusCounter\.\ " | cut -f 3 -d "." | sed -r 's/^[0-9]\ //'`
|
|
| 193 | 193 |
echo "vcore${nGpusCounter}.info Vcore information for $gpuName"
|
| 194 | 194 |
echo "vcore${nGpusCounter}.label Core voltage ($gpuName)"
|
| 195 | 195 |
: $(( nGpusCounter = $nGpusCounter + 1 )) |
Formats disponibles : Unified diff