Forum Discussion
Abed_AL-R_26070
Nimbostratus
Apr 30, 2018ntp delay notification
Hi
We've configured an NTP status mail notification in te crontab to send email every day at 08:00AM , and its working fine
[root@vipirion:/S1-green-P:Active:Standalone] config crontab -e
cron...
jaikumar_f5
Noctilucent
Apr 30, 2018You can put in a simple script to gather the offset value, ntpdate with query (-q) should help you. And with the offset value put a condition and action on it.
OFFSET=`ntpdate -q |sed 's/.*\(offset\) \([0-9]\.[0-9]\+\).*/\2/'`
Like this,
OFFSET=`ntpdate -q |sed 's/.*\(offset\) \([0-9]\.[0-9]\+\).*/\2/'`
if [[ $OFFSET -gt 0.5 ]]; then
fi
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects