Zabbix Template: chrony
Keeps track of chrony.
Needs the following configuration:
This template is part of RaBe's Zabbix template and helpers collection.
Items
Item: chrony: chronyd process
Get info about chrony processes
Settings:
Item Setting | Value |
---|---|
Type | ZABBIX_ACTIVE |
Value type | TEXT |
Item: chrony: Sources doing burst (return to offline)
Sources doing burst (return 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"] |
Item: chrony: Sources doing burst (return to online)
Sources doing burst (return 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"] |
Item: chrony: Sources offline
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"] |
Item: chrony: Sources online
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"] |
Item: chrony: Sources with unknown address
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"] |
Item: chronyd: CPU seconds (system)
Total CPU seconds (system) of chronyd processes.
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"] |
Item: chronyd: CPU seconds (user)
Total CPU seconds (user) of chronyd processes.
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"] |
Item: chronyd: Number of processes
Number of 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"] |
Item: chronyd: Memory usage (RSS)
Memory usage of chronyd processes.
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"] |
Item: chronyd: Swap usage
Swap usage of chronyd processes.
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"] |
Item: chronyd: Number of threads
Number of 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"] |
Item: chrony: Reference ID
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"] |
Item: chrony: Reference IP
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"] |
Item: chrony: Ref time (UTC)
Ref time (UTC).
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]"] |
Item: chrony: Skew
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"] |
Item: chrony: Stratum
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"] |
Item: chrony: System time slowness
System time is seconds slow of NTP 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"] |
Item: chrony: Activitiy
Results of chronyc -c activity
Settings:
Item Setting | Value |
---|---|
Type | ZABBIX_ACTIVE |
Value type | TEXT |
Item: chrony: Tracking
Results of chronyc -c tracking
Settings:
Item Setting | Value |
---|---|
Type | ZABBIX_ACTIVE |
Value type | TEXT |
Triggers
Trigger: chronyd: No running processes
No running chronyd processes. Settings:
Trigger Setting | Values |
---|---|
Priority | HIGH |
Macros
The following Zabbix macros are configured via this template.
Macro: {$CHRONY.THRESHOLD.MIN_PROC}
Minimum amount of processes expected to be running at all times.
Default:
Dashboards
The following Zabbix dashboards are included in this template.
- chrony: Overview
License
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
Copyright (c) 2017 - 2024 Radio Bern RaBe