Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failures with the new NTP checking #1558

Closed
mutemule opened this issue Apr 18, 2015 · 2 comments · Fixed by #1651
Closed

Failures with the new NTP checking #1558

mutemule opened this issue Apr 18, 2015 · 2 comments · Fixed by #1651

Comments

@mutemule
Copy link

The NTP checking introduced 5.3.0 itself works fairly well, but get_ntp_info in checks/check_status.py is broken in some configurations.

The NTP checking pulls its configuration, including peers/servers to check against, from a configuration file. But get_ntp_info checks NTP offset against a hard-coded pool.ntp.org. It's not uncommon for datacenters to only allow a small number of servers to poll Internet-based NTP sources, and then to use those servers to re-distribute time internal to the local networks. In such a configuration, the ntplib.NTPClient().request call will always fail.

@LeoCavaille
Copy link
Member

Thanks @mutemule for reporting this, we probably need to have better error handling and:

  • to allow overriding this default pool.ntp.org (which will be changed soon by a datadog subdomain of the pool cc @remh)
  • look at the NTP check settings if there are some?

@mutemule
Copy link
Author

Thanks, @LeoCavaille!

I took a quick look at fixing this before I submitted the issue, but I'm not familiar enough with the DD internals. It seemed reasonable to me to use the check settings if they exist, so there's consistency in the upstream queries, and just set defaults in there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants