Hi,
On Wed, 14 Oct 2009 16:50:50 +0200, Andre Arnold
<[email protected]> wrote:
> Hi,
> 
> how about the following change in collectd-nagios.c?
> 
> 491c491
> <     snprintf (address, sizeof (address), "unix:%s", socket_file_g);
> ---
> >     snprintf (address, sizeof (address), "%s", socket_file_g);
> 
> Wouldn't it be useful if you can use an unix or a tcp socket? Or
> could it cause unexpected problems?
> 
> Cheers
> Andi

if you *really* need tcp socket

aptitude install socat
host1:
socat UNIX-CLIENT:/var/something/collectd.socket TCP4-LISTEN:1234
host2:
socat UNIX-LISTEN:/var/something/collectd.socket TCP4:192.168.1.5:1234

Regards
-- 
Mariusz Gronczewski (XANi) <[email protected]>
GnuPG: 0xEA8ACE64
http://devrandom.pl

Attachment: signature.asc
Description: PGP signature

_______________________________________________
collectd mailing list
[email protected]
http://mailman.verplant.org/listinfo/collectd

Reply via email to