5.02021-11-21T21:39:37ZHomeRackUserGroupTemplateschrony_Monitoringchrony## Overview
chrony accuracy Infomation Template
Japanese version template is in the [link](cat-app/ntp/chrony-accuracy-template-japanese).
日本語版テンプレートは[こちら](cat-app/ntp/chrony-accuracy-template-japanese)
Sammeln Sie alle Informationen, die in der chronyc Befehl angezeigt wird.
When you use a template
Please make the following settings zabbix\_agentd.conf.
EnableRemoteCommands=1
UnsafeUserParameters=1
In ZabbixAgent is installed environment
It will use the chrony template.
HomeRackUserGroupTemplateschrony- NTP offsetDEPENDENTLastoffset0FLOATmsTime deviation between the NTP serverchronyREGEXLast offset : (.*)
\1RTRIMsecondsMULTIPLIER1000system.run[chronyc tracking]POST{last()}>{$NTP_OFFSET_LARGE} or
{last()}<-{$NTP_OFFSET_LARGE}Misalignment of the upper NTP has exceeded the {$NTP_OFFSET_LARGE}msWARNING{last()}>{$NTP_OFFSET_SMALL} or
{last()}<-{$NTP_OFFSET_SMALL}Misalignment of the upper NTP has exceeded the {$NTP_OFFSET_SMALL}msINFOMisalignment of the upper NTP has exceeded the {$NTP_OFFSET_LARGE}ms{chrony_Monitoring:Lastoffset.last()}>{$NTP_OFFSET_LARGE} or
{chrony_Monitoring:Lastoffset.last()}<-{$NTP_OFFSET_LARGE}
- Leap statusDEPENDENTLeapStatus00CHARLeap status
Normal
Insert second
Delete second
Not synchronizedchronyREGEXLeap status :(.*)
\1system.run[chronyc tracking]POST(({regexp(Not synchronized)})<>0)Not synchronized with the NTP server.WARNINGMULTIPLE
- NTP synchronized serverDEPENDENTReference00CHARchronyREGEXReference ID : (.*)
\1LTRIMReference ID : system.run[chronyc tracking]POST
- NTP offset (long term average)DEPENDENTRMSoffset0FLOATmsTime deviation between the NTP server (long term average)chronyREGEXRMS offset :(.*)
\1RTRIMsecondsMULTIPLIER1000system.run[chronyc tracking]POST
- Network total delayDEPENDENTRootdelay0FLOATmsNetwork total delay up to stratum-1.chronyREGEXRoot delay :(.*)
\1RTRIMsecondsMULTIPLIER1000system.run[chronyc tracking]POST
- NTP stratumDEPENDENTStratum0The stratum of the this serverchronyREGEXStratum : (.*)
\1system.run[chronyc tracking]POST
- chrony VersionZABBIX_ACTIVEsystem.run[chronyc -v]1h0CHARchronyPOST
- chronyc sourcesZABBIX_ACTIVEsystem.run[chronyc sources]10m60d0TEXTchronyPOST
- chronyReachZABBIX_ACTIVEsystem.run[chronyc sources|grep \* |awk '{print$5}']10m過去8回の問合せ成功回数を8ビットで表現します。chronyOCTAL_TO_DECIMALPOST
- chronyc trackingZABBIX_ACTIVEsystem.run[chronyc tracking]10m60d0TEXTchronyPOST
- NTP time difference (direction)DEPENDENTSystemtime00CHARDisplays the direction of the difference between NTP time and system time.chronyREGEXSystem time : (.*)
\1REGEX(fast|slow)
\0system.run[chronyc tracking]POST
- NTP time difference (ms)DEPENDENTSystemtime_ms0FLOATmsDisplays the difference between NTP time and system time.chronyREGEXSystem time :(.*)
\1RTRIMseconds {fast|slow} of NTP timeMULTIPLIER1000system.run[chronyc tracking]POST
- NTP pollingDEPENDENTUpdateinterval0FLOATsDisplays the synchronization interval with the NTP server.chronyREGEXUpdate interval :(.*)
\1RTRIMsecondssystem.run[chronyc tracking]POST
{$NTP_OFFSET}50{$NTP_OFFSET_LARGE}5000chrony NTP accuracy informationBOLD_LINE1A7C11- chrony_MonitoringLastoffset
1BOLD_LINEF63100- chrony_MonitoringRMSoffset
2BOLD_LINE2774A4- chrony_MonitoringSystemtime_ms