This made it work.<br><br>So we do not need to create the file manually in first place. When I was not doing that it was giving me error No file found.<br><br>Anyways this works now.<br><br>Thanks a lot<br>Mahendrra<br><div class="gmail_quote">
On Wed, Jul 29, 2009 at 6:51 AM, Andrés J. Díaz <span dir="ltr"><<a href="mailto:ajdiaz@connectical.com">ajdiaz@connectical.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I've the same problem. The easy workarround is deleted the socket<br>
manually, I put in the launch script the line rm -f<br>
/var/run/collectd-unixsock. The socket will be created again when<br>
collectd restart.<br>
<br>
2009/7/29 Mahendra Kutare <<a href="mailto:mahendra.kutare@gmail.com">mahendra.kutare@gmail.com</a>>:<br>
<div><div></div><div class="h5">><br>
><br>
> On Tue, Jul 28, 2009 at 11:15 PM, Mahendra Kutare<br>
> <<a href="mailto:mahendra.kutare@gmail.com">mahendra.kutare@gmail.com</a>> wrote:<br>
>><br>
>> Hi All,<br>
>><br>
>> I am using collectd 4.5.3 on RHEL5 with Xen 3.1.2.<br>
>><br>
>> I have the following configuration in /etc/collectd.conf file -<br>
>><br>
>> LoadPlugin unixsock<br>
>><br>
>> 400 <Plugin unixsock><br>
>> 401 SocketFile "/var/run/collectd-unixsock"<br>
>> 402 SocketGroup "collectd"<br>
>> 403 SocketPerms "0775"<br>
>> 404 </Plugin><br>
>><br>
>> I created this file /var/run/collectd-unixsock and it has permissions -<br>
>><br>
>> [root@samoa2 collectd 11:14 PM]$ ls -l /var/run/collectd-*<br>
>> -rw-rw-rw- 1 root root 0 Jul 28 22:43 /var/run/collectd-unixsock<br>
>><br>
>> I also created group collectd and can be seen as -<br>
>><br>
>> [root@samoa2 collectd 11:11 PM]$ cat /etc/group | grep collectd<br>
>> collectd:x:2731:<br>
>><br>
>> When I start the collectd it shows up in the /var/lib/collectd.log file<br>
>> the following error -<br>
>><br>
>> [2009-07-28 23:07:44] unixsock plugin: bind failed: Address already in<br>
>> use<br>
>><br>
>> Is there anything missing in configuration of unixsock plugin ?<br>
><br>
> I also tried adding Port param in<br>
><br>
> 400 <Plugin unixsock><br>
> 401 SocketFile "/var/run/collectd-unixsock"<br>
> Port "7634"<br>
> 402 SocketGroup "collectd"<br>
> 403 SocketPerms "0775"<br>
> 404 </Plugin><br>
><br>
> but it still says in the log file -<br>
><br>
> [2009-07-28 23:18:15] Plugin `unixsock' did not register for value `Port'.<br>
> [2009-07-28 23:18:15] unixsock plugin: bind failed: Address already in use<br>
><br>
><br>
><br>
</div></div>> _______________________________________________<br>
> collectd mailing list<br>
> <a href="mailto:collectd@verplant.org">collectd@verplant.org</a><br>
> <a href="http://mailman.verplant.org/listinfo/collectd" target="_blank">http://mailman.verplant.org/listinfo/collectd</a><br>
><br>
><br>
</blockquote></div><br>