zabbix_export: version: '5.4' date: '2021-11-21T21:39:35Z' groups: - uuid: 9a14b9af19924635b6219fb66800936d name: HomeRackUserGroupTemplates templates: - uuid: a19f201627354651b8e79aadfab56aa3 template: chrony_Monitoring name: chrony description: | ## Overview chrony accuracy Infomation Template Japanese version template is in the . 日本語版テンプレートは 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. groups: - name: HomeRackUserGroupTemplates items: - uuid: b8b52a71941942619af1f250d2d9277f name: 'chrony Version' type: ZABBIX_ACTIVE key: 'system.run[chronyc -v]' delay: '3600' trends: '0' value_type: CHAR tags: - tag: Application value: chrony - uuid: 8cfc89b9a0484c08bfa999ad1faf3eee name: 'chronyc sources' type: ZABBIX_ACTIVE key: 'system.run[chronyc sources]' delay: '600' history: 60d trends: '0' value_type: TEXT tags: - tag: Application value: chrony - uuid: 7c1ba6b56dfd43a791d9bfd631f4c5fa name: 'NTP synchronized server' type: ZABBIX_ACTIVE key: 'system.run[chronyc sources|grep \* |awk ''{print$2}'']' delay: '600' trends: '0' value_type: CHAR tags: - tag: Application value: chrony - uuid: da90d32f254947c59974ffd01b69f3c3 name: 'NTP stratum' type: ZABBIX_ACTIVE key: 'system.run[chronyc sources|grep \* |awk ''{print$3}'']' delay: '1800' description: 'The stratum of the synchronous NTP server' tags: - tag: Application value: chrony - uuid: 0263d2b3470d472cbe6454b2d75e1320 name: chronyReach type: ZABBIX_ACTIVE key: 'system.run[chronyc sources|grep \* |awk ''{print$5}'']' delay: '600' description: 過去8回の問合せ成功回数を8ビットで表現します。 preprocessing: - type: OCTAL_TO_DECIMAL parameters: - '' tags: - tag: Application value: chrony - uuid: 67b42611e4a94b60a9126b0ade7998c1 name: 'chronyc tracking' type: ZABBIX_ACTIVE key: 'system.run[chronyc tracking]' delay: '600' history: 60d trends: '0' value_type: TEXT tags: - tag: Application value: chrony - uuid: 14f2e5a16db74efda93b36d4f8df4970 name: 'NTP offset' type: ZABBIX_ACTIVE key: 'system.run[chronyc tracking |grep "Last offset"|awk ''{print$4}'']' delay: '600' value_type: FLOAT units: ms description: 'Time deviation between the NTP server' preprocessing: - type: MULTIPLIER parameters: - '1000' tags: - tag: Application value: chrony triggers: - uuid: d868c3b869104086b27f90368767dbd4 expression: | last(/chrony_Monitoring/system.run[chronyc tracking |grep "Last offset"|awk '{print$4}'])>{$NTP_OFFSET_LARGE} or last(/chrony_Monitoring/system.run[chronyc tracking |grep "Last offset"|awk '{print$4}'])<-{$NTP_OFFSET_LARGE} name: 'Misalignment of the upper NTP has exceeded the {$NTP_OFFSET_LARGE}ms' priority: WARNING - uuid: 35f419613459466294a5479009d49b27 expression: | last(/chrony_Monitoring/system.run[chronyc tracking |grep "Last offset"|awk '{print$4}'])>{$NTP_OFFSET_SMALL} or last(/chrony_Monitoring/system.run[chronyc tracking |grep "Last offset"|awk '{print$4}'])<-{$NTP_OFFSET_SMALL} name: 'Misalignment of the upper NTP has exceeded the {$NTP_OFFSET_SMALL}ms' priority: INFO dependencies: - name: 'Misalignment of the upper NTP has exceeded the {$NTP_OFFSET_LARGE}ms' expression: | last(/chrony_Monitoring/system.run[chronyc tracking |grep "Last offset"|awk '{print$4}'])>{$NTP_OFFSET_LARGE} or last(/chrony_Monitoring/system.run[chronyc tracking |grep "Last offset"|awk '{print$4}'])<-{$NTP_OFFSET_LARGE} - uuid: 3f8c5db999c64177aaa54d84110acde7 name: 'Leap status' type: ZABBIX_ACTIVE key: 'system.run[chronyc tracking |grep "Leap status"|awk ''{print$4}'']' delay: '600' trends: '0' value_type: CHAR description: | Leap status Normal Insert second Delete second Not synchronized tags: - tag: Application value: chrony triggers: - uuid: ef08e2da8cc14b3c9609ce8719e31736 expression: '((find(/chrony_Monitoring/system.run[chronyc tracking |grep "Leap status"|awk ''{print$4}''],,"regexp","Not synchronized"))<>0)' name: 'Not synchronized with the NTP server.' priority: WARNING type: MULTIPLE - uuid: f1f7e9df9a9c49f594142aebeba508db name: 'NTP offset (long term average)' type: ZABBIX_ACTIVE key: 'system.run[chronyc tracking |grep "RMS offset"|awk ''{print$4}'']' delay: '600' value_type: FLOAT units: ms description: 'Time deviation between the NTP server (long term average)' preprocessing: - type: MULTIPLIER parameters: - '1000' tags: - tag: Application value: chrony - uuid: 073c30148f14406f8052228c7fbeb274 name: 'Network total delay' type: ZABBIX_ACTIVE key: 'system.run[chronyc tracking |grep "Root delay"|awk ''{print$4}'']' delay: '10' value_type: FLOAT units: ms description: 'Network total delay up to stratum-1.' preprocessing: - type: MULTIPLIER parameters: - '1000' tags: - tag: Application value: chrony - uuid: 90619b3d7f2c4129b294361799b455e9 name: 'NTP time difference (ms)' type: ZABBIX_ACTIVE key: 'system.run[chronyc tracking |grep "System time"|awk ''{print$4}'']' delay: '10' value_type: FLOAT units: ms description: 'Displays the difference between NTP time and system time.' preprocessing: - type: MULTIPLIER parameters: - '1000' tags: - tag: Application value: chrony - uuid: a717462887cd499f854ec8758e09e677 name: 'NTP time difference (direction)' type: ZABBIX_ACTIVE key: 'system.run[chronyc tracking |grep "System time"|awk ''{print$6}'']' delay: '10' trends: '0' value_type: CHAR description: 'Displays the direction of the difference between NTP time and system time.' tags: - tag: Application value: chrony - uuid: 0b13e560511f4b7b94f2f8d431a1bb7d name: 'NTP polling' type: ZABBIX_ACTIVE key: 'system.run[chronyc tracking |grep "Update interval"|awk ''{print$4}'']' delay: '600' value_type: FLOAT units: s description: 'Displays the synchronization interval with the NTP server.' tags: - tag: Application value: chrony macros: - macro: '{$NTP_OFFSET}' value: '50' - macro: '{$NTP_OFFSET_LARGE}' value: '5000'