diff --git a/plugins/time/chrony b/plugins/time/chrony index 917e8b3e..e10ddd3e 100755 --- a/plugins/time/chrony +++ b/plugins/time/chrony @@ -61,10 +61,10 @@ if [ "$1" = "autoconf" ]; then fi if [ "$1" = "config" ]; then - echo 'graph_title Chrony Tracking Stats' - echo 'graph_args --base 1000 -l 0' - echo 'units (seconds,ppm)' - echo 'graph_category time' + echo 'graph_title Chrony Tracking Stats' + echo 'graph_args --base 1000 -l 0' + echo 'units (seconds,ppm)' + echo 'graph_category time' i=0 for a in $fields ; do i=$((i + 1)) @@ -73,11 +73,11 @@ if [ "$1" = "config" ]; then echo "$a.label $word$factor)"; echo "$a.type GAUGE" done - exit 0 + exit 0 fi # remove non-needed output lines, remove labels, rescale and label values while detecting slow/fast keywords "$CHRONYC" tracking | sed -e 1d -e 3d -e "s/.*://" | \ awk -v FAC="$fieldfactors" -v NAM="$fields" \ - 'BEGIN { split(FAC,factors," "); split(NAM,names," "); } - { /slow/ ? SIGN=-1 : SIGN=1 ; print names[NR]".value ",SIGN*$1*factors[NR]}' + 'BEGIN { split(FAC,factors," "); split(NAM,names," "); + { /slow/ ? SIGN=-1 : SIGN=1 ; print names[NR]".value ",SIGN*$1*factors[NR]}'