[collectd] Patch for collectd-nagios.c for tcp sockets

XANi xani666 at gmail.com
Wed Oct 21 12:02:36 CEST 2009


Hi,
On Wed, 14 Oct 2009 16:50:50 +0200, Andre Arnold
<andre.arnold at gmail.com> 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) <xani666 at gmail.com>
GnuPG: 0xEA8ACE64
http://devrandom.pl

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
Url : http://mailman.verplant.org/pipermail/collectd/attachments/20091021/39ab9aee/attachment.pgp 


More information about the collectd mailing list