Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Zabbix Template: chrony

class: software target: chrony vendor: RaBe version: 6.4

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.

Items

Item: chrony: chronyd process

component: raw

Get info about chrony processes

proc.get[chronyd,chrony,,summary]

Settings:

Item Setting Value
Type ZABBIX_ACTIVE
Value type TEXT

Item: chrony: Sources doing burst (return to offline)

component: chrony

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"]

Item: chrony: Sources doing burst (return to online)

component: chrony

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"]

Item: chrony: Sources offline

component: chrony

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"]

Item: chrony: Sources online

component: chrony

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"]

Item: chrony: Sources with unknown address

component: chrony

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"]

Item: chronyd: CPU seconds (system)

component: chrony component: chronyd

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"]

Item: chronyd: CPU seconds (user)

component: chrony component: chronyd

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"]

Item: chronyd: Number of processes

component: chrony component: chronyd

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"]

Item: chronyd: Memory usage (RSS)

component: chrony component: chronyd

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"]

Item: chronyd: Swap usage

component: chrony component: chronyd

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"]

Item: chronyd: Number of threads

component: chrony component: chronyd

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"]

Item: chrony: Reference ID

component: chrony

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"]

Item: chrony: Reference IP

component: chrony

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"]

Item: chrony: Ref time (UTC)

component: chrony

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]"]

Item: chrony: Skew

component: chrony

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"]

Item: chrony: Stratum

component: chrony

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"]

Item: chrony: System time slowness

component: chrony

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"]

Item: chrony: Activitiy

component: raw

Results of chronyc -c activity

system.run[/usr/bin/chronyc -c activity]

Settings:

Item Setting Value
Type ZABBIX_ACTIVE
Value type TEXT

Item: chrony: Tracking

component: raw

Results of chronyc -c tracking

system.run[/usr/bin/chronyc -c tracking]

Settings:

Item Setting Value
Type ZABBIX_ACTIVE
Value type TEXT

Triggers

Trigger: chronyd: No running processes

scope: availability

No running chronyd processes. Settings:

Trigger Setting Values
Priority HIGH
last(/chrony/rabe.chrony.chronyd.processes)<1

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:

1

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