[collectd] Fwd: client is never sending data to server
Ricardo J. Barberis
ricardo at palmtx.com.ar
Mon Jul 30 22:21:04 CEST 2018
Hello!
El Domingo 29/07/2018 a las 17:48, Lonni J Friedman escribió:
> Hello,
> I'm in the process of setting up collectd (5.8.0). I'm using influxdb
> and grafana to round out the metrics pipeline. I have everything
> working ok on the 'server'. However, attempting to add a client
> (which sends its metrics to the collectd server) is not working, and
> I'm confused why its failing to work. When I say its not working, I
> mean that collectd on the client doesn't appear to be sending anything
> to the collectd on the server.
>
> On the server (10.0.0.1), the network plugin section looks like this:
>
> <Plugin network>
> Server "127.0.0.1" "8096"
> <Listen "0.0.0.0" "25826">
> SecurityLevel Sign
> AuthFile "/etc/collectd.d/passwd"
> Interface "enp5s0"
> </Listen>
> MaxPacketSize 1452
> </Plugin>
>
>
> On the client,(10.0.0.9) the network plugin section looks like this:
>
> <Plugin network>
> <Server "10.0.0.1" "25826">
> SecurityLevel Encrypt
> Username "netllama"
> Password "nopenopenope"
> </Server>
> MaxPacketSize 1452
> </Plugin>
IUUC, you need to use Sign or Encrypt on both, client and server.
Another thing to try is not to set MaxPacketSize, it never worked for me but
it's been a while since I tested it.
> On the client, I see the following output when collectd is started:
>
> [2018-07-29 13:43:54] [info] plugin_load: plugin "cpu" successfully loaded.
> [2018-07-29 13:43:54] [info] plugin_load: plugin "disk" successfully
> loaded. [2018-07-29 13:43:54] [info] plugin_load: plugin "interface"
> successfully loaded.
> [2018-07-29 13:43:54] [info] plugin_load: plugin "load" successfully
> loaded. [2018-07-29 13:43:54] [info] plugin_load: plugin "memory"
> successfully loaded. [2018-07-29 13:43:54] [info] plugin_load: plugin
> "network" successfully loaded. [2018-07-29 13:43:54] [info] plugin_load:
> plugin "uptime" successfully loaded. [2018-07-29 13:43:54] [notice] Systemd
> detected, trying to signal readyness. [2018-07-29 13:43:54] [info]
> Initialization complete, entering read-loop.
>
> and then there's no more output (errors, etc) after many minutes of
> waiting.
>
> I tried running strace (everything is Linux) on the client's collectd
> process, and the only output are a bunch of nanosleep (this is after
> waiting more than 10 seconds):
>
> nanosleep({tv_sec=9, tv_nsec=999681119}, 0x7ec885e8) = 0
> nanosleep({tv_sec=9, tv_nsec=999506135}, 0x7ec885e8) = 0
> nanosleep({tv_sec=9, tv_nsec=999502288}, 0x7ec885e8) = 0
> nanosleep({tv_sec=9, tv_nsec=999463651}, 0x7ec885e8) = 0
> nanosleep({tv_sec=9, tv_nsec=999401109}, 0x7ec885e8) = 0
> nanosleep({tv_sec=9, tv_nsec=999439759}, 0x7ec885e8) = 0
> nanosleep({tv_sec=9, tv_nsec=999443827}, 0x7ec885e8) = 0
> nanosleep({tv_sec=9, tv_nsec=999448938}, 0x7ec885e8) = 0
> nanosleep({tv_sec=9, tv_nsec=999431915}, 0x7ec885e8) = 0
>
>
> Shouldn't there be more than just nanosleep if the client was actually
> doing something? Am I missing some obvious solution?
>
> thanks!
About strace, make sure to use 'strace -f' (follow children) in case the
collecting an sending don't happen on the parent process.
HTH,
--
Ricardo J. Barberis
Usuario Linux Nº 250625: http://counter.li.org/
Usuario LFS Nº 5121: http://www.linuxfromscratch.org/
Senior SysAdmin / IT Architect - www.DonWeb.com
More information about the collectd
mailing list