Skip to content

Commit 12c43d6

Browse files
committed
Add a command to check the NTP status on a host.
1 parent c1222ad commit 12c43d6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ntp.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
from fabric.api import *
22

3+
@task
4+
def status():
5+
"""Report the VM's NTP status."""
6+
run("/usr/lib/nagios/plugins/check_ntp_time -q -H ntp.ubuntu.com -w 2 -c 3")
7+
38
@task
49
def resync():
510
"""Forcibly resynchronise the VM's NTP clock.

0 commit comments

Comments
 (0)