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

Plugin:NTPd fails #1

Open
WirthmU opened this issue Oct 22, 2021 · 3 comments
Open

Plugin:NTPd fails #1

WirthmU opened this issue Oct 22, 2021 · 3 comments

Comments

@WirthmU
Copy link

WirthmU commented Oct 22, 2021

  • Version of collectd: 5.7.2
  • Operating system / distribution: Ubuntu 18.04.6 LTS
  • Kernel version (if applicable): 4.15.0-161-generic

Expected behavior

Plugin:NTPd is enabled and configured as supposed

Actual behavior

[2021-10-22 08:18:30] recv(2) failed: Connection refused
[2021-10-22 08:18:30] ntpd plugin: ntpd_do_query (REQ_GET_KERNEL) failed with status -1
[2021-10-22 08:18:30] read-function of plugin `ntpd' failed. Will suspend it for 20.000 seconds.

any help to this`?

@rpv-tomsk
Copy link
Owner

rpv-tomsk commented Oct 22, 2021

Hi,

  1. Why don't use more recent Collectd version?
  2. You should have UDP 123 port opened on 127.0.0.1
# netstat -an |grep 123
...
udp        0      0 127.0.0.1:123           0.0.0.0:*
udp        0      0 0.0.0.0:123             0.0.0.0:*
...
  1. What is the ntpd version you use ?

@rpv-tomsk
Copy link
Owner

collectd#932
openwrt/packages#12777

It seems you have to re-enable "mode 7"?

@WirthmU
Copy link
Author

WirthmU commented Oct 22, 2021

I am on Ubuntu and apt install gives:
collectd is already the newest version (5.7.2-2ubuntu1.2)

uw@uw-SBC-FITPC2:~/tmp/collectd-5.12.0$ netstat -an |grep 123
udp 0 0 127.0.0.1:38243 127.0.0.1:123 ESTABLISHED
udp 0 0 127.0.0.1:48095 127.0.0.1:123 ESTABLISHED
udp 0 0 192.168.1.43:123 0.0.0.0:*
udp 0 0 127.0.0.1:123 0.0.0.0:*
udp 0 0 0.0.0.0:123 0.0.0.0:*
udp6 0 0 fe80::3c88:12d7:ff0:123 :::*
udp6 0 0 ::1:123 :::*
udp6 0 0 :::123 :::*
unix 2 [ ACC ] STREAM LISTENING 30895 /tmp/ssh-QWqXkbTyMvWs/agent.1236
unix 3 [ ] STREAM CONNECTED 31123
unix 3 [ ] STREAM CONNECTED 21123

I have re-enabled "mode 7" but it does not solve the problem.

NTP Version:
ntp is already the newest version (1:4.2.8p10+dfsg-5ubuntu7.3).

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

No branches or pull requests

2 participants