mirror of
https://github.com/shakemid/pcsensor-temper.git
synced 2025-07-21 01:10:59 +02:00
Change output format parseable
This commit is contained in:
parent
56fb12dab4
commit
eb73622194
2 changed files with 17 additions and 56 deletions
munin-plugin
|
@ -8,7 +8,6 @@
|
|||
set -o nounset
|
||||
|
||||
pcsensor=${pcsensor:-/usr/local/bin/pcsensor}
|
||||
pcsensor_cmd="${pcsensor} -m -c"
|
||||
|
||||
# need calibration
|
||||
# example:
|
||||
|
@ -39,7 +38,7 @@ fetch() {
|
|||
i=0
|
||||
while [ "$i" -le "$retry" ];
|
||||
do
|
||||
value=$( $pcsensor_cmd | sed -n '1p' )
|
||||
value=$( $pcsensor | sed -n '1p' | awk '{ print $4 }' )
|
||||
|
||||
if [ -n "$value" ];then
|
||||
break
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue