You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
440 B
11 lines
440 B
6 years ago
|
#!/bin/sh
|
||
|
|
||
|
set -o noclobber
|
||
|
|
||
|
HOME=$(dirname $0)
|
||
|
. "$HOME"/master
|
||
|
|
||
|
LINE=$($CHRONY | "$AWK" -F"," -v myhost="$myhost" -v time=`date -u +%s%N` '{printf "chrony,host=%s,reference_id=%s,stratum=%si,leap_status=%s system_time=%s,last_offset=%s,rms_offset=%s,frequency=%s,residual_frequency=%s,skew=%s,root_delay=%s,root_dispersion=%s,update_interval=%s %s\n",myhost,$2,$3,$13,$4,$5,$6,$7,$8,$9,$10,$11,$12,time}')
|
||
|
|
||
|
writeline "$LINE" "$MAXLINES"
|