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

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

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
socat UNIX-CLIENT:/var/something/collectd.socket TCP4-LISTEN:1234
socat UNIX-LISTEN:/var/something/collectd.socket TCP4:

Mariusz Gronczewski (XANi) <xani666 at gmail.com>
GnuPG: 0xEA8ACE64

-------------- 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