I've got an internal network with servers running different operating systems and all are supposedly synched via NTP, but I'd like to check that they are indeed synced. Is there a tool (preferably a Linux tool) for doing so?
|
feedback
|
|
This depends on the variety of servers permitting status queries from outside. Not all do. Windows in particular can't respond to standard NTP status requests. If they don't, you'll have to add the polling server to the NTP configuration's allow list if that's possible at all. For those that do respond, the
You'll have to parse the output, but this can be combined with a bit of nmap scripting to identify the up hosts with open NTP hosts to query. Or you can use an actual monitoring framework. | |||
|
feedback
|
|
Nagios has a plugin for NTP. It will connect to the NTP server on the target system, and compare its time to the local time. You can set warning and critical levels for the time difference. | |||
|
feedback
|
|
Assuming the servers haven't been configured to ignore the local network, you can from a central box do
And you should see something like
If your local firewall allows random NTP traffic out onto the internet, you'll see more, perhaps something like:
If you see nothing, it means that ntp has been configured to ignore you; you may have to log onto the box to run ntptrace there. The problems are when someone's come unbound:
| |||
|
feedback
|