diff options
author | Britney Fransen <brfransen@gmail.com> | 2015-01-20 22:23:22 (GMT) |
---|---|---|
committer | Britney Fransen <brfransen@gmail.com> | 2015-01-20 22:23:22 (GMT) |
commit | f0706652cec2eb979517744d3f07daa00bff2c69 (patch) | |
tree | e13e841c181e373fba87e8c00083a3d22714c1e9 /abs/core/xymon/xymon-gputemp.sh | |
parent | 914d62440fa51e294c8ea901fef7f0e3953da23a (diff) | |
download | linhes_pkgbuild-f0706652cec2eb979517744d3f07daa00bff2c69.zip linhes_pkgbuild-f0706652cec2eb979517744d3f07daa00bff2c69.tar.gz linhes_pkgbuild-f0706652cec2eb979517744d3f07daa00bff2c69.tar.bz2 |
xymon: xymon-gputemp.sh: update temp grep for newer nvidia-smi
Diffstat (limited to 'abs/core/xymon/xymon-gputemp.sh')
-rw-r--r-- | abs/core/xymon/xymon-gputemp.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/abs/core/xymon/xymon-gputemp.sh b/abs/core/xymon/xymon-gputemp.sh index cebea41..f8af649 100644 --- a/abs/core/xymon/xymon-gputemp.sh +++ b/abs/core/xymon/xymon-gputemp.sh @@ -55,7 +55,7 @@ crit_temp=`expr $max_temp - 5` warn_temp=`expr $crit_temp - 10` if test -x /usr/bin/nvidia-smi ; then - temp=`nvidia-smi -q -g 0 -d TEMPERATURE | grep -Ei 'Gpu[[:space:]]+:[[:space:]]+[[:digit:]]+ C'` + temp=`nvidia-smi -q -g 0 -d TEMPERATURE | grep -Ei 'GPU Current Temp[[:space:]]+:[[:space:]]+[[:digit:]]+ C'` gpu_temp=`echo $temp | sed -e 's/[^0-9]*//g'` #echo "GPUTEMP:$gpu_temp" > /tmp/gputemp.txt if test -n "$gpu_temp" ; then @@ -80,4 +80,4 @@ if test -x /usr/bin/nvidia-smi ; then fi fi -exit 0
\ No newline at end of file +exit 0 |