mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-22 02:51:03 +00:00
Use case insensitive grep for Temp lines
xorg-x11-drv-nvidia-340.29-1.el6.x86_64 (CUDA 6.5?) seems to have changed the Temperature lines from "Gpu" to "GPU" prefixes. Case insensitive grep preserves backwards comatability.
This commit is contained in:
parent
24e77a2624
commit
493121924a
1 changed files with 1 additions and 1 deletions
|
@ -186,7 +186,7 @@ fi
|
||||||
# Get requested value
|
# Get requested value
|
||||||
case $name in
|
case $name in
|
||||||
temp)
|
temp)
|
||||||
valueGpus=`echo "$smiOutput" | grep -A 1 "Temperature" | grep "Gpu" | cut -d : -f 2 | cut -d ' ' -f 2`
|
valueGpus=`echo "$smiOutput" | grep -A 1 "Temperature" | grep -i "Gpu" | cut -d : -f 2 | cut -d ' ' -f 2`
|
||||||
;;
|
;;
|
||||||
mem)
|
mem)
|
||||||
totalMemGpus=`echo "$smiOutput" | grep -A 3 "Memory Usage" | grep "Total" | cut -d : -f 2 | cut -d ' ' -f 2`
|
totalMemGpus=`echo "$smiOutput" | grep -A 3 "Memory Usage" | grep "Total" | cut -d : -f 2 | cut -d ' ' -f 2`
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue