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>


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!

_______________________________________________
collectd mailing list
collectd@verplant.org
https://mailman.verplant.org/listinfo/collectd

Reply via email to