collectd does not work

Posted by bery on Server Fault See other posts from Server Fault or by bery
Published on 2011-08-02T09:40:01Z Indexed on 2012/07/10 3:17 UTC
Read the original article Hit count: 579

Filed under:
|
|
|

I have installed collectd-5.0.0 on Fedora12 server and would like to run its service for receiving data from clients. I have enabled network plugin and rddtool plugin as commented:

collectd.conf in server:

BaseDir "/opt/collectd/var/lib/collectd"
LoadPlugin "logfile"
LoadPlugin network
LoadPlugin rrdtool
<Plugin network>
 Listen "192.168.8.37" "25826"
</Plugin>

collectd.conf in client:

LoadPlugin logfile
LoadPlugin cpu
LoadPlugin network
LoadPlugin memory
<Plugin network>
 Server"192.168.8.37" "25826"
</Plugin>

collectd.log in server:

[2011-08-03 02:36:04] Exiting normally.
[2011-08-03 02:36:04] rrdtool plugin: Shutting down the queue thread.
[2011-08-03 02:36:04] network plugin: Stopping receive thread.
[2011-08-03 02:36:04] network plugin: Stopping dispatch thread.
[2011-08-03 02:37:11] Initialization complete, entering read-loop.

collectd.log in client:

[2011-08-02 17:31:44] Initialization complete, entering read-loop.

results thst execute netstat on server:
 netstat -ulpn | grep 25826
udp        0      0 192.168.8.37:25826          0.0.0.0:*                               4744/collectd

problem:
but there is noting in "/opt/collectd/var/lib/collectd/" on ser

yes,I move the port number of "25826" as your propose(But I think this is the default port for coolectd).there is no rdd files recived on server.

collectd.log in client collectd

[2011-08-03 10:01:36] plugin_read_thread: Handling memory'. [2011-08-03 10:01:36] plugin_read_thread: Handlingcpu'. [2011-08-03 10:01:36] plugin_dispatch_values: time = 1312380096.431; interval = 10.000; host = uml; plugin = memory; plugin_instance = ; type = memory; type_instance = used; [2011-08-03 10:01:36] plugin_dispatch_values: time = 1312380096.431; interval = 10.000; host = uml; plugin = cpu; plugin_instance = 0; type = cpu; type_instance = user; [2011-08-03 10:01:36] uc_update: uml/memory/memory-used: ds[0] = 280412160.000000 [2011-08-03 10:01:36] plugin: plugin_write: Writing values via network. [2011-08-03 10:01:36] uc_update: uml/cpu-0/cpu-user: ds[0] = 0.100008 [2011-08-03 10:01:36] plugin: plugin_write: Writing values via network. [2011-08-03 10:01:36] plugin_dispatch_values: time = 1312380096.431; interval = 10.000; host = uml; plugin = memory; plugin_instance = ; type = memory; type_instance = buffered; [2011-08-03 10:01:36] plugin_dispatch_values: time = 1312380096.431; interval = 10.000; host = uml; plugin = cpu; plugin_instance = 0; type = cpu; type_instance = nice; [2011-08-03 10:01:36] uc_update: uml/memory/memory-buffered: ds[0] = 344182784.000000 [2011-08-03 10:01:36] plugin: plugin_write: Writing values via network. [2011-08-03 10:01:36] uc_update: uml/cpu-0/cpu-nice: ds[0] = 0.000000 [2011-08-03 10:01:36] plugin: plugin_write: Writing values via network. [2011-08-03 10:01:36] network plugin: flush_buffer: send_buffer_fill = 1340 [2011-08-03 10:01:36] network plugin: network_send_buffer: buffer_len = 1340 ... [2011-08-03 10:01:36] plugin_read_thread: Next read of the cpu plugin at 1312380106.429064774.

collectd.log in server collectd:

[2011-08-03 20:18:08] type = network [2011-08-03 20:18:08] type = rrdtool [2011-08-03 20:18:08] network plugin: sockent_open: node = 192.168.8.37; service = 25826; [2011-08-03 20:18:08] fd = 3; calling bind' [2011-08-03 20:18:08] Done parsing/opt/collectd//share/collectd/types.db' [2011-08-03 20:18:08] interval_g = 10; [2011-08-03 20:18:08] timeout_g = 2; [2011-08-03 20:18:08] hostname_g = localhost.localdomain; [2011-08-03 20:18:08] Initialization complete, entering read-loop.

It looks like, data is sending but doesn't be recived. Where is the mistake?

© Server Fault or respective owner

Related posts about linux

Related posts about monitoring