Chrony service maintains synchronizing with external time sources like NTP servers.
In Redhat, Rocky or Alma Linux, Chrony logs can be checked using journalctl.
Example:
sudo journalctl -u chronyd -xe
The output will be limited only to the.log or entries of Chronyd service.
To check status of Chronyd, use systemctl status chronyd
To further check any log entries pertaining to chronyd, browse to /var/log
cd /var/log
And type: egrep "*chrony*" .
This will check all log entries that has the string chrony, include the dot at the end to check all files on the current path.
You can examine those files.if need to troubleshoot further, or just view the configuration of Chrony for any misconfiguration such as typo error, or unsupported Chrony settings.
To view the chrony configuration,.type:
grep ^[^#] /etc/chrony.conf
This will view only the configuration that are currently enabled or uncommented lines, and also remove any blank lines.
chronyc sources -v
The above command will show whether Chrony is sync or connected to any NTP or PTP server
If the output shows with * followed by the IP or URL then Chrony is synced to a time source.
chronyc tracking
Leap status should display Normal if everything is normal as per output of the command.
timedatectl status
The command will check if NTP is active and synchronized
chronyc activity >> will.also show whether chronyc has some issues or working properly
Lift up life turmoils by your prayers, and remember the words "do not be afraid". Just keep going.
Comments
Post a Comment