[collectd] Unix Sock Plugin Issue

Andrés J. Díaz ajdiaz at connectical.com
Wed Jul 29 12:51:47 CEST 2009


I've the same problem. The easy workarround is deleted the socket
manually, I put in the launch script the line rm -f
/var/run/collectd-unixsock. The socket will be created again when
collectd restart.

2009/7/29 Mahendra Kutare <mahendra.kutare at gmail.com>:
>
>
> On Tue, Jul 28, 2009 at 11:15 PM, Mahendra Kutare
> <mahendra.kutare at gmail.com> wrote:
>>
>> Hi All,
>>
>> I am using collectd 4.5.3 on RHEL5 with Xen 3.1.2.
>>
>> I have the following configuration in /etc/collectd.conf file -
>>
>> LoadPlugin unixsock
>>
>> 400 <Plugin unixsock>
>> 401     SocketFile "/var/run/collectd-unixsock"
>> 402     SocketGroup "collectd"
>> 403     SocketPerms "0775"
>> 404 </Plugin>
>>
>> I created this file /var/run/collectd-unixsock and it has permissions -
>>
>> [root at samoa2 collectd 11:14 PM]$ ls -l /var/run/collectd-*
>> -rw-rw-rw- 1 root root 0 Jul 28 22:43 /var/run/collectd-unixsock
>>
>> I also created group collectd and can be seen as -
>>
>> [root at samoa2 collectd 11:11 PM]$ cat /etc/group | grep collectd
>> collectd:x:2731:
>>
>> When I start the collectd it shows up in the /var/lib/collectd.log file
>> the following error -
>>
>>  [2009-07-28 23:07:44] unixsock plugin: bind failed: Address already in
>> use
>>
>> Is there anything missing in configuration of unixsock plugin ?
>
> I also tried adding Port param in
>
> 400 <Plugin unixsock>
> 401     SocketFile "/var/run/collectd-unixsock"
>            Port "7634"
> 402     SocketGroup "collectd"
> 403     SocketPerms "0775"
> 404 </Plugin>
>
> but it still says in the log file -
>
> [2009-07-28 23:18:15] Plugin `unixsock' did not register for value `Port'.
> [2009-07-28 23:18:15] unixsock plugin: bind failed: Address already in use
>
>
>
> _______________________________________________
> collectd mailing list
> collectd at verplant.org
> http://mailman.verplant.org/listinfo/collectd
>
>



More information about the collectd mailing list