zabbix_export: version: '6.0' date: '2021-11-21T21:21:08Z' groups: - uuid: 7df96b18c230490a9a0a9e2307226338 name: Templates templates: - uuid: 65e518c60839428a957454605ee5c2d7 template: 'App Chrony Service' name: 'App Chrony Service' description: | ## Overview This template will parse the various types of data from the acquisition result of chronyc tracking command. This allows you to detect the change of the time of displacement and Stratum by chrony. groups: - name: Templates items: - uuid: a33886cb4e5648fd8b1f3232a0540887 name: 'Number of chrony processes' key: 'proc.num[,chrony]' delay: '60' tags: - tag: Application value: 'Time synchronization' triggers: - uuid: 9c91d0b647da4d0baae1285e0fb03fd2 expression: 'max(/App Chrony Service/proc.num[,chrony],#1)=0' name: 'Chrony service is down on {HOST.NAME}' status: DISABLED priority: AVERAGE - uuid: 9ad5e401459d4e03a35c600f691b8787 name: 'Chrony Last offset' type: ZABBIX_ACTIVE key: 'system.run[chronyc tracking|grep "Last offset"|awk ''{print $4}'']' delay: '1800' value_type: FLOAT units: s description: 'This is the estimated local offset on the last clock update.' tags: - tag: Application value: 'Time synchronization' - uuid: 541482a426df4d82bd16f7cdbc26355c name: 'Chrony Leap status' type: ZABBIX_ACTIVE key: 'system.run[chronyc tracking|grep "Leap status"|awk ''{print $4" "$5}'']' delay: '1800' trends: '0' value_type: CHAR description: 'This is the leap status, which can be Normal, Insert second, Delete second or Not synchronised.' tags: - tag: Application value: 'Time synchronization' triggers: - uuid: 4c7026e6e79c44ed8023792274892d4b expression: 'find(/App Chrony Service/system.run[chronyc tracking|grep "Leap status"|awk ''{print $4" "$5}''],,"regexp","Not synchronised")=1' name: '{HOST.NAME} is Not synchronized' status: DISABLED priority: HIGH - uuid: 83d88bd150ab4ecab84326f12d0b6d41 name: 'Chrony synchronized server' type: ZABBIX_ACTIVE key: 'system.run[chronyc tracking|grep "Reference ID"|awk ''{print $4$5}'']' delay: '1800' trends: '0' value_type: CHAR description: 'This is the reference ID and name (or IP address) if available, of the server to which the computer is currently synchronized.' tags: - tag: Application value: 'Time synchronization' triggers: - uuid: 29d1ce5f149b40beb5d61314817c8db4 expression: '(last(/App Chrony Service/system.run[chronyc tracking|grep "Reference ID"|awk ''{print $4$5}''],#1)<>last(/App Chrony Service/system.run[chronyc tracking|grep "Reference ID"|awk ''{print $4$5}''],#2))=1' name: 'Chrony servers are synchronized has been changed .' status: DISABLED priority: INFO - uuid: 99c5a22f39894d8eb4a3aafd323e9015 name: 'Chrony RMS offset' type: ZABBIX_ACTIVE key: 'system.run[chronyc tracking|grep "RMS offset"|awk ''{print $4}'']' delay: '1800' value_type: FLOAT units: s description: 'This is a long-term average of the offset value.' tags: - tag: Application value: 'Time synchronization' - uuid: e2a810bf59534910b0c81d2cfebafcfe name: 'Chrony Root delay' type: ZABBIX_ACTIVE key: 'system.run[chronyc tracking|grep "Root delay"|awk ''{print $4}'']' delay: '1800' value_type: FLOAT units: s description: 'This is the total of the network path delays to the stratum-1 computer from which the computer is ultimately synchronized. In certain extreme situations, this value can be negative. (This can arise in a symmetric peer arrangement where the computers’ frequencies are not tracking each other and the network delay is very short relative to the turn-around time at each computer.)' tags: - tag: Application value: 'Time synchronization' - uuid: 3b8f42ce771b43179fc457997027609b name: 'Chrony Stratum' type: ZABBIX_ACTIVE key: 'system.run[chronyc tracking|grep "Stratum"|awk ''{print $3}'']' delay: '1800' description: 'The stratum indicates how many hops away from a computer with an attached reference clock we are. Such a computer is a stratum-1 computer, so the computer in the example is two hops away' tags: - tag: Application value: 'Time synchronization' - uuid: 01e30bb30e6e45999c7325e11f2584db name: 'Chrony Update interval' type: ZABBIX_ACTIVE key: 'system.run[chronyc tracking|grep "Update interval"|awk ''{print $4}'']' delay: '1800' value_type: FLOAT units: s description: 'This is the total dispersion accumulated through all the computers back to the stratum-1 computer from which the computer is ultimately synchronized. Dispersion is due to system clock resolution, statistical measurement variations etc.' tags: - tag: Application value: 'Time synchronization' - uuid: d6e5fe75a4024375b1e5156d6ea19c2f name: 'Version of chrony(d) running' type: ZABBIX_ACTIVE key: 'system.run[chronyd --version]' delay: '3600' trends: '0' value_type: CHAR tags: - tag: Application value: 'Time synchronization'