Zabbix timedatectl monitoring
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.
Usage
- 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
Template App timedatectl active
Items
- NTP enabled (
rabe.timedatectl.ntp.enabled
) - NTP synchronized (
rabe.timedatectl.ntp.synchronized
)
Macros
{$TIMEDATECTL_MAX_NO_SYNC_TIME}
(default: 60m)
Triggers
- Warning: NTP not enabled on {HOST.NAME}
- Information: NTP not synchronized on {HOST.NAME}
- Warning: NTP not synchronized for more than {$TIMEDATECTL_MAX_NO_SYNC_TIME} on {HOST.NAME}
SELinux Policy
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.
UserParameters
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 |
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 - 2019 Radio Bern RaBe