Keeps track of chrony.
Needs the following configuration:
AllowKey=system.run[/usr/bin/chronyc -c activity]
AllowKey=system.run[/usr/bin/chronyc -c tracking]
This template is part of RaBe's Zabbix template and helpers collection.
Get info about chrony processes
proc.get[chronyd,chrony,,summary]
Settings:
Item Setting | Value |
---|---|
Type | ZABBIX_ACTIVE |
Value type | TEXT |
Sources doing burst (return to offline).
rabe.chrony.activity.sources_burst_to_offline
Settings:
Item Setting | Value |
---|---|
Type | DEPENDENT |
History | 7d |
Source item | system.run[/usr/bin/chronyc -c activity] |
Preprocessing steps:
Type | Parameters |
---|---|
JAVASCRIPT | ["return value.split(\",\")[3]"] |
DISCARD_UNCHANGED_HEARTBEAT | ["5m"] |
Sources doing burst (return to online).
rabe.chrony.activity.sources_burst_to_online
Settings:
Item Setting | Value |
---|---|
Type | DEPENDENT |
History | 7d |
Source item | system.run[/usr/bin/chronyc -c activity] |
Preprocessing steps:
Type | Parameters |
---|---|
JAVASCRIPT | ["return value.split(\",\")[2]"] |
DISCARD_UNCHANGED_HEARTBEAT | ["5m"] |
Sources offline.
rabe.chrony.activity.sources_offline
Settings:
Item Setting | Value |
---|---|
Type | DEPENDENT |
History | 7d |
Source item | system.run[/usr/bin/chronyc -c activity] |
Preprocessing steps:
Type | Parameters |
---|---|
JAVASCRIPT | ["return value.split(\",\")[1]"] |
DISCARD_UNCHANGED_HEARTBEAT | ["5m"] |
Sources online.
rabe.chrony.activity.sources_online
Settings:
Item Setting | Value |
---|---|
Type | DEPENDENT |
History | 7d |
Source item | system.run[/usr/bin/chronyc -c activity] |
Preprocessing steps:
Type | Parameters |
---|---|
JAVASCRIPT | ["return value.split(\",\")[0]"] |
DISCARD_UNCHANGED_HEARTBEAT | ["5m"] |
Sources with unknown address.
rabe.chrony.activity.sources_with_unknown_address
Settings:
Item Setting | Value |
---|---|
Type | DEPENDENT |
History | 7d |
Source item | system.run[/usr/bin/chronyc -c activity] |
Preprocessing steps:
Type | Parameters |
---|---|
JAVASCRIPT | ["return value.split(\",\")[4]"] |
DISCARD_UNCHANGED_HEARTBEAT | ["5m"] |
Total CPU seconds (system) of chronyd processes.
rabe.chrony.chronyd.cputime_system
Settings:
Item Setting | Value |
---|---|
Type | DEPENDENT |
Value type | FLOAT |
History | 7d |
Source item | proc.get[chronyd,chrony,,summary] |
Preprocessing steps:
Type | Parameters |
---|---|
JSONPATH | ["$[*].cputime_system.first()"] |
SIMPLE_CHANGE | [""] |
DISCARD_UNCHANGED_HEARTBEAT | ["5m"] |
Total CPU seconds (user) of chronyd processes.
rabe.chrony.chronyd.cputime_user
Settings:
Item Setting | Value |
---|---|
Type | DEPENDENT |
Value type | FLOAT |
History | 7d |
Source item | proc.get[chronyd,chrony,,summary] |
Preprocessing steps:
Type | Parameters |
---|---|
JSONPATH | ["$[*].cputime_user.first()"] |
SIMPLE_CHANGE | [""] |
DISCARD_UNCHANGED_HEARTBEAT | ["5m"] |
Number of chronyd processes.
rabe.chrony.chronyd.processes
Settings:
Item Setting | Value |
---|---|
Type | DEPENDENT |
History | 7d |
Source item | proc.get[chronyd,chrony,,summary] |
Preprocessing steps:
Type | Parameters |
---|---|
JSONPATH | ["$[*].processes.first()"] |
DISCARD_UNCHANGED_HEARTBEAT | ["5m"] |
Memory usage of chronyd processes.
rabe.chrony.chronyd.rss
Settings:
Item Setting | Value |
---|---|
Type | DEPENDENT |
History | 7d |
Source item | proc.get[chronyd,chrony,,summary] |
Preprocessing steps:
Type | Parameters |
---|---|
JSONPATH | ["$[*].rss.first()"] |
DISCARD_UNCHANGED_HEARTBEAT | ["5m"] |
Swap usage of chronyd processes.
rabe.chrony.chronyd.swap
Settings:
Item Setting | Value |
---|---|
Type | DEPENDENT |
History | 7d |
Source item | proc.get[chronyd,chrony,,summary] |
Preprocessing steps:
Type | Parameters |
---|---|
JSONPATH | ["$[*].swap.first()"] |
DISCARD_UNCHANGED_HEARTBEAT | ["5m"] |
Number of chronyd threads.
rabe.chrony.chronyd.threads
Settings:
Item Setting | Value |
---|---|
Type | DEPENDENT |
History | 7d |
Source item | proc.get[chronyd,chrony,,summary] |
Preprocessing steps:
Type | Parameters |
---|---|
JSONPATH | ["$[*].threads.first()"] |
DISCARD_UNCHANGED_HEARTBEAT | ["5m"] |
Reference ID.
rabe.chrony.tracking.reference_id
Settings:
Item Setting | Value |
---|---|
Type | DEPENDENT |
Value type | TEXT |
History | 7d |
Source item | system.run[/usr/bin/chronyc -c tracking] |
Preprocessing steps:
Type | Parameters |
---|---|
JAVASCRIPT | ["return value.split(\",\")[0]"] |
DISCARD_UNCHANGED_HEARTBEAT | ["1h"] |
Reference IP.
rabe.chrony.tracking.reference_ip
Settings:
Item Setting | Value |
---|---|
Type | DEPENDENT |
Value type | TEXT |
History | 7d |
Source item | system.run[/usr/bin/chronyc -c tracking] |
Preprocessing steps:
Type | Parameters |
---|---|
JAVASCRIPT | ["return value.split(\",\")[1]"] |
DISCARD_UNCHANGED_HEARTBEAT | ["1h"] |
Ref time (UTC).
rabe.chrony.tracking.ref_time
Settings:
Item Setting | Value |
---|---|
Type | DEPENDENT |
Value type | FLOAT in unixtime |
History | 7d |
Source item | system.run[/usr/bin/chronyc -c tracking] |
Preprocessing steps:
Type | Parameters |
---|---|
JAVASCRIPT | ["return value.split(\",\")[3]"] |
Skew.
rabe.chrony.tracking.skew
Settings:
Item Setting | Value |
---|---|
Type | DEPENDENT |
Value type | FLOAT in ppm |
History | 7d |
Source item | system.run[/usr/bin/chronyc -c tracking] |
Preprocessing steps:
Type | Parameters |
---|---|
JAVASCRIPT | ["return value.split(\",\")[9]"] |
DISCARD_UNCHANGED_HEARTBEAT | ["5m"] |
Stratum.
rabe.chrony.tracking.stratum
Settings:
Item Setting | Value |
---|---|
Type | DEPENDENT |
History | 7d |
Source item | system.run[/usr/bin/chronyc -c tracking] |
Preprocessing steps:
Type | Parameters |
---|---|
JAVASCRIPT | ["return value.split(\",\")[2]"] |
DISCARD_UNCHANGED_HEARTBEAT | ["1h"] |
System time is seconds slow of NTP time
rabe.chrony.tracking.system_time
Settings:
Item Setting | Value |
---|---|
Type | DEPENDENT |
Value type | FLOAT in s |
History | 7d |
Source item | system.run[/usr/bin/chronyc -c tracking] |
Preprocessing steps:
Type | Parameters |
---|---|
JAVASCRIPT | ["return value.split(\",\")[4]"] |
DISCARD_UNCHANGED_HEARTBEAT | ["5m"] |
Results of chronyc -c activity
system.run[/usr/bin/chronyc -c activity]
Settings:
Item Setting | Value |
---|---|
Type | ZABBIX_ACTIVE |
Value type | TEXT |
Results of chronyc -c tracking
system.run[/usr/bin/chronyc -c tracking]
Settings:
Item Setting | Value |
---|---|
Type | ZABBIX_ACTIVE |
Value type | TEXT |
No running chronyd processes. Settings:
Trigger Setting | Values |
---|---|
Priority | HIGH |
last(/chrony/rabe.chrony.chronyd.processes)<1
The following Zabbix macros are configured via this template.
Minimum amount of processes expected to be running at all times.
Default:
1
The following Zabbix dashboards are included in this template.
- chrony: Overview
This template is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, version 3 of the License.
Copyright (c) 2017 - 2024 Radio Bern RaBe