High level monitoring for time and date keeping based on the backend agnostic timedatectl command.
This template is part of RaBe's Zabbix template and helpers collection.
- Import the
Template_App_timedatectl_active.xml
into your Zabbix server (click on theRaw
button to download). - Add the template to your host (or stack template)
- Check if new data arrives
- NTP enabled (
rabe.timedatectl.ntp.enabled
) - NTP synchronized (
rabe.timedatectl.ntp.synchronized
)
{$TIMEDATECTL_MAX_NO_SYNC_TIME}
(default: 60m)
- Warning: NTP not enabled on {HOST.NAME}
{Template App timedatectl active:rabe.timedatectl.ntp.enabled.last()}=0
- Information: NTP not synchronized on {HOST.NAME}
{Template App timedatectl active:rabe.timedatectl.ntp.synchronized.last()}=0
- Warning: NTP not synchronized for more than {$TIMEDATECTL_MAX_NO_SYNC_TIME} on {HOST.NAME}
{Template App timedatectl active:rabe.timedatectl.ntp.synchronized.last(,{$TIMEDATECTL_MAX_NO_SYNC_TIME})}<1
The rabetimedatectl policy module allows the agent to connect to dbus and lets it request info from the timedated service. It also allows answers from the timedated service to the agent.
Key | Description |
---|---|
rabe.timedatectl.ntp.enabled |
"NTP enabled" yes/no value from timedatectl status output |
rabe.timedatectl.ntp.synchronized |
"NTP synchonized" yes/no value from timedatectl status output |
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 - 2019 Radio Bern RaBe