Skip to content

Commit

Permalink
Merge pull request #1545 from DataDog/remh/ntp
Browse files Browse the repository at this point in the history
[NTP] Increase min collection interval and log in debug if it can't conn...
  • Loading branch information
Remi Hakim committed Apr 15, 2015
2 parents 9aba329 + f2595f8 commit d8a8637
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions checks.d/ntp.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

class NtpCheck(AgentCheck):

DEFAULT_MIN_COLLECTION_INTERVAL = 20 # in seconds
DEFAULT_MIN_COLLECTION_INTERVAL = 900 # in seconds

def check(self, instance):
service_check_msg = None
Expand All @@ -33,7 +33,7 @@ def check(self, instance):
try:
ntp_stats = ntplib.NTPClient().request(**req_args)
except ntplib.NTPException:
self.log.warning("Could not connect to NTP Server")
self.log.debug("Could not connect to NTP Server {0}".format(req_args['host']))
status = AgentCheck.UNKNOWN
ntp_ts = None
else:
Expand Down

0 comments on commit d8a8637

Please sign in to comment.