mirror of
https://github.com/munin-monitoring/contrib.git
synced 2018-11-08 00:59:34 +01:00
[chrony] format POD documentation
This commit is contained in:
parent
6cb29a3bf3
commit
6fd9d9072b
@ -1,37 +1,54 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
#
|
|
||||||
# Script to parse Chrony Tracking Output
|
|
||||||
#
|
|
||||||
# Parameters understood:
|
|
||||||
#
|
|
||||||
# config (required)
|
|
||||||
# autoconf (optional - used by munin-config)
|
|
||||||
#
|
|
||||||
# $log$
|
|
||||||
# Revision 0.1 2008/08/23 13:06:00 joti
|
|
||||||
# First version only chronyc tracking, autodetection included.
|
|
||||||
#
|
|
||||||
# Revision 0.2 2008/10/11 16:09:00 joti
|
|
||||||
# Added scaling of other values to match with frequency, added more description to fields
|
|
||||||
#
|
|
||||||
# Revision 0.3 2014/02/16 zjttoefs
|
|
||||||
# reduce forking by using awk
|
|
||||||
# do not limit output precision
|
|
||||||
# add stratum monitoring
|
|
||||||
# detect slow/fast time or freqency and adjust sign of value accordingly
|
|
||||||
# remove commented out code
|
|
||||||
#
|
|
||||||
# Magic markers (optional - used by munin-config and installation scripts):
|
|
||||||
#
|
|
||||||
#%# family=auto
|
|
||||||
#%# capabilities=autoconf
|
|
||||||
|
|
||||||
#Modify this to fit other chronyc path
|
: <<=cut
|
||||||
|
|
||||||
|
=head1 NAME
|
||||||
|
|
||||||
|
parse Chrony Tracking output for timeserver status information
|
||||||
|
|
||||||
|
=head1 APPLICABLE SYSTEMS
|
||||||
|
|
||||||
|
Any system with a local chronyd service.
|
||||||
|
|
||||||
|
=head1 CONFIGURATION
|
||||||
|
|
||||||
|
No configuration.
|
||||||
|
|
||||||
|
=head1 MAGIC MARKERS
|
||||||
|
|
||||||
|
#%# family=auto
|
||||||
|
#%# capabilities=autoconf
|
||||||
|
|
||||||
|
=head1 VERSION
|
||||||
|
|
||||||
|
Revision 0.1 2008/08/23 13:06:00 joti
|
||||||
|
|
||||||
|
First version only chronyc tracking, autodetection included.
|
||||||
|
|
||||||
|
Revision 0.2 2008/10/11 16:09:00 joti
|
||||||
|
|
||||||
|
Added scaling of other values to match with frequency, added more description to fields
|
||||||
|
|
||||||
|
Revision 0.3 2014/02/16 zjttoefs
|
||||||
|
|
||||||
|
reduce forking by using awk
|
||||||
|
do not limit output precision
|
||||||
|
add stratum monitoring
|
||||||
|
detect slow/fast time or freqency and adjust sign of value accordingly
|
||||||
|
remove commented out code
|
||||||
|
|
||||||
|
=head1 AUTHOR
|
||||||
|
|
||||||
|
joti
|
||||||
|
zjttoefs
|
||||||
|
|
||||||
|
=cut
|
||||||
|
|
||||||
|
# Modify this to fit other chronyc path
|
||||||
CHRONYC=/usr/bin/chronyc
|
CHRONYC=/usr/bin/chronyc
|
||||||
|
|
||||||
#Frequency has extremely higher values than other. Therefore they are fitted by scaling. Adjust the factors here
|
# Frequency has extremely higher values than other. Therefore they are fitted by scaling. Adjust the factors here
|
||||||
fieldfactors="1 1000 1 100 100 1000 1000"
|
fieldfactors="1 1000 1 100 100 1000 1000"
|
||||||
#fieldfactors="1 1000000 0.1 100 10 10 10"
|
|
||||||
fields="stratum systime frequency residualfreq skew rootdelay rootdispersion"
|
fields="stratum systime frequency residualfreq skew rootdelay rootdispersion"
|
||||||
fieldnames="Stratum (=System Time (seconds,x=Frequency (ppm,x=Residual Freq (ppm,x=Skew (ppm,x=Root delay(seconds,x=Root dispersion (seconds,x"
|
fieldnames="Stratum (=System Time (seconds,x=Frequency (ppm,x=Residual Freq (ppm,x=Skew (ppm,x=Root delay(seconds,x=Root dispersion (seconds,x"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user