#!/bin/bash

if [ -e /bin/systemctl -a "$( /bin/systemctl is-active systemd-timesyncd.service )" == "active" ]
then
	/usr/lib/nagios/plugins/check_timedatectl_ntp
	exit $?
else
	/usr/lib/nagios/plugins/check_ntp $@
	exit $?
fi
