[collectd] Client - Server example, please

Serge Leschinsky serge.leschinsky at gmail.com
Wed Feb 1 12:20:31 CET 2006


Hi,

I try to use the client-server mode of collectd.

Client:
> # cat ../etc/collectd.conf
>          Mode    Client
>          PIDFile /var/run/collectd.pid
>          LogFile /var/log/collectd.log
>          Server  192.168.31.97 12345
> 
>          LoadPlugin cpu
>          LoadPlugin memory
>          LoadPlugin load
>          LoadPlugin processes
>          LoadPlugin ping
> 
>          <Plugin ping>
>            Host 192.168.31.1
>          </Plugin>

Server:
> # cat ./collectd.conf
> Mode    Server
> DataDir   /opt/collectd/var/lib/collectd
> PIDFile   /opt/collectd/var/run/collectd.pid
> PluginDir /opt/collectd/lib/collectd
> Listen 192.168.31.97 12345
> 

I see collectd' packets on the client:
> # tcpdump -n -i eth0 port not ssh and host 192.168.31.97
> 02:42:14.122420 192.168.31.98.32858 > 192.168.31.97.12345:  udp 31 (DF)
> 02:42:14.259274 192.168.31.98.32858 > 192.168.31.97.12345:  udp 34 (DF)
> 02:42:14.496794 192.168.31.98.32858 > 192.168.31.97.12345:  udp 37 (DF)
> 02:42:14.497067 192.168.31.98.32858 > 192.168.31.97.12345:  udp 33 (DF)
> 02:42:14.497537 192.168.31.98.32858 > 192.168.31.97.12345:  udp 58 (DF)
> 02:42:14.497960 192.168.31.98.32858 > 192.168.31.97.12345:  udp 42 (DF)

and on the server:
> bhost:/opt/collectd/etc # tcpdump -n host 192.168.31.98
> 14:10:05.878963 192.168.31.98.32858 > 192.168.31.97.12345: udp 31 (DF)
> 14:10:06.042094 192.168.31.98.32858 > 192.168.31.97.12345: udp 34 (DF)
> 14:10:06.268572 192.168.31.98.32858 > 192.168.31.97.12345: udp 37 (DF)
> 14:10:06.268860 192.168.31.98.32858 > 192.168.31.97.12345: udp 33 (DF)
> 14:10:06.269305 192.168.31.98.32858 > 192.168.31.97.12345: udp 58 (DF)


But "DataDir" (/opt/collectd/var/lib/collectd) on the server is empty.

Could you please tell my what I do wrong?


-- 
Best regards,
 Serge                          mailto:serge.leschinsky at gmail.com




More information about the Collectd mailing list