Révision 6fd9d907
[chrony] format POD documentation
| plugins/time/chrony | ||
|---|---|---|
| 1 | 1 |
#!/bin/sh |
| 2 |
# |
|
| 3 |
# Script to parse Chrony Tracking Output |
|
| 4 |
# |
|
| 5 |
# Parameters understood: |
|
| 6 |
# |
|
| 7 |
# config (required) |
|
| 8 |
# autoconf (optional - used by munin-config) |
|
| 9 |
# |
|
| 10 |
# $log$ |
|
| 11 |
# Revision 0.1 2008/08/23 13:06:00 joti |
|
| 12 |
# First version only chronyc tracking, autodetection included. |
|
| 13 |
# |
|
| 14 |
# Revision 0.2 2008/10/11 16:09:00 joti |
|
| 15 |
# Added scaling of other values to match with frequency, added more description to fields |
|
| 16 |
# |
|
| 17 |
# Revision 0.3 2014/02/16 zjttoefs |
|
| 18 |
# reduce forking by using awk |
|
| 19 |
# do not limit output precision |
|
| 20 |
# add stratum monitoring |
|
| 21 |
# detect slow/fast time or freqency and adjust sign of value accordingly |
|
| 22 |
# remove commented out code |
|
| 23 |
# |
|
| 24 |
# Magic markers (optional - used by munin-config and installation scripts): |
|
| 25 |
# |
|
| 26 |
#%# family=auto |
|
| 27 |
#%# capabilities=autoconf |
|
| 28 |
|
|
| 29 |
#Modify this to fit other chronyc path |
|
| 2 |
|
|
| 3 |
: <<=cut |
|
| 4 |
|
|
| 5 |
=head1 NAME |
|
| 6 |
|
|
| 7 |
parse Chrony Tracking output for timeserver status information |
|
| 8 |
|
|
| 9 |
=head1 APPLICABLE SYSTEMS |
|
| 10 |
|
|
| 11 |
Any system with a local chronyd service. |
|
| 12 |
|
|
| 13 |
=head1 CONFIGURATION |
|
| 14 |
|
|
| 15 |
No configuration. |
|
| 16 |
|
|
| 17 |
=head1 MAGIC MARKERS |
|
| 18 |
|
|
| 19 |
#%# family=auto |
|
| 20 |
#%# capabilities=autoconf |
|
| 21 |
|
|
| 22 |
=head1 VERSION |
|
| 23 |
|
|
| 24 |
Revision 0.1 2008/08/23 13:06:00 joti |
|
| 25 |
|
|
| 26 |
First version only chronyc tracking, autodetection included. |
|
| 27 |
|
|
| 28 |
Revision 0.2 2008/10/11 16:09:00 joti |
|
| 29 |
|
|
| 30 |
Added scaling of other values to match with frequency, added more description to fields |
|
| 31 |
|
|
| 32 |
Revision 0.3 2014/02/16 zjttoefs |
|
| 33 |
|
|
| 34 |
reduce forking by using awk |
|
| 35 |
do not limit output precision |
|
| 36 |
add stratum monitoring |
|
| 37 |
detect slow/fast time or freqency and adjust sign of value accordingly |
|
| 38 |
remove commented out code |
|
| 39 |
|
|
| 40 |
=head1 AUTHOR |
|
| 41 |
|
|
| 42 |
joti |
|
| 43 |
zjttoefs |
|
| 44 |
|
|
| 45 |
=cut |
|
| 46 |
|
|
| 47 |
# Modify this to fit other chronyc path |
|
| 30 | 48 |
CHRONYC=/usr/bin/chronyc |
| 31 | 49 |
|
| 32 |
#Frequency has extremely higher values than other. Therefore they are fitted by scaling. Adjust the factors here |
|
| 50 |
# Frequency has extremely higher values than other. Therefore they are fitted by scaling. Adjust the factors here
|
|
| 33 | 51 |
fieldfactors="1 1000 1 100 100 1000 1000" |
| 34 |
#fieldfactors="1 1000000 0.1 100 10 10 10" |
|
| 35 | 52 |
fields="stratum systime frequency residualfreq skew rootdelay rootdispersion" |
| 36 | 53 |
fieldnames="Stratum (=System Time (seconds,x=Frequency (ppm,x=Residual Freq (ppm,x=Skew (ppm,x=Root delay(seconds,x=Root dispersion (seconds,x" |
| 37 | 54 |
|
Formats disponibles : Unified diff