We are moving from CentOS 7 to CentOS 8 for our monitoring servers (Zabbix) and we use ntpdate to query for time to detect if our local time provider for all devices (Cisco device) hasn't started drifting.
Basically query pool server, query local device and do math to determine if difference is greater than X.
Input:
ntpdate -p 1 -q 0.centos.pool.ntp.org | grep -oP '(?<=offset ).*?(?= sec)'
Output:
0.006313
Is there a way to query time (without setting server as source) using chrony or other tool in CentOS 8 that would work in similar fashion?