How to check NTP on network devices (agentless)

I have SNMP access to a bunch of Cisco and Juniper switches. I monitor them with checkmk. NTP is configured on all of the devices. How can I check that NTP is working on them? I’ve read about the “ntp” and “ntp-time” checks, but they seem to require that an agent be running on the monitored device. The switches don’t have checkmk agents installed.

I’d like to check that the NTP state is “synchronized” and separately, that the configured peers are all associated. I run checkmk 1.6.0.p20.

You can use the classic active check “check_ntp_peer” or “check_ntp_time”.
With 1.6 go to “WATO” → “Host & Service Parameters” → “Active checks” → “Classic active and passive Monitoring checks”
Here you can create a rule with the command line
“$USER1$/check_ntp_peer -H targetIP”
Or you use the macro $HOSTNAME$/$HOSTADDRESS$ in the command line.

3 Likes

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact an admin if you think this should be re-opened.