Apr 18 21:41:04 shamim-slave-1 node_exporter: time="2018-04-18T21:41:04Z" level=error msg="ERROR: ntp collector failed after 0.000725s: couldn't get SNTP reply: read udp 127.0.0.1:39205->127.0.0.1:123: read: connection refused" source="collector.go:123"
uname -aLinux shamim-slave-1.novalocal 3.10.0-693.el7.x86_64 #1 SMP Tue Aug 22 21:09:27 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
node_exporter --version[root@shamim-slave-1 ~]# node_exporter --version
node_exporter, version 0.15.2 (branch: , revision: )
build user: copr
build date: 20180108-08:17:01
go version: go1.8.3
[root@shamim-slave-1 ~]#
--collector.ntp --collector.ksmd --collector.logind --collector.systemd --collector.tcpstat --collector.interrupts
[root@shamim-slave-1 ~]# chronyc tracking
Reference ID : 0AAB0805 (10.171.8.5)
Stratum : 3
Ref time (UTC) : Wed Apr 18 21:38:14 2018
System time : 0.000005946 seconds fast of NTP time
Last offset : +0.000008580 seconds
RMS offset : 0.000057627 seconds
Frequency : 60.840 ppm slow
Residual freq : +0.000 ppm
Skew : 0.016 ppm
Root delay : 0.001514490 seconds
Root dispersion : 0.016857117 seconds
Update interval : 1043.4 seconds
Leap status : Normal
[root@shamim-slave-1 ~]#
[root@shamim-slave-1 ~]# chronyc sources
210 Number of sources = 2
MS Name/IP address Stratum Poll Reach LastRx Last sample
===============================================================================
^- 10.171.8.4 2 10 363 693 -13us[-5034ns] +/- 75ms
^* 10.171.8.5 2 10 377 564 +16us[ +25us] +/- 50ms
[root@shamim-slave-1 ~]#
[root@shamim-slave-1 ~]# chronyc sourcestats
210 Number of sources = 2
Name/IP Address NP NR Span Frequency Freq Skew Offset Std Dev
==============================================================================
10.171.8.4 64 34 18h +0.026 0.029 +470us 1342us
10.171.8.5 12 5 207m +0.000 0.015 +108ns 47us
[root@shamim-slave-1 ~]#
[root@shamim-slave-1 ~]# netstat -lntp |grep node_exporter
tcp6 0 0 :::9100 :::* LISTEN 22447/node_exporter
[root@shamim-slave-1 ~]#
chronyc uses a proprietary protocol to talk to the chronyd. The node_exporter only knows how to talk NTP protocol, so you have to make sure that you allow it access. By default, this is disabled.
Make sure you add an allow line in your chrony.conf.
allow 127/8
@SuperQ : After allowing 127/8 in chrony.conf. Error is gone.
Thanks
馃憤 Also, 鉂わ笍 chrony.
Most helpful comment
chronycuses a proprietary protocol to talk to thechronyd. Thenode_exporteronly knows how to talk NTP protocol, so you have to make sure that you allow it access. By default, this is disabled.Make sure you add an allow line in your chrony.conf.