[collectd] Unix Sock Plugin Issue

Mahendra Kutare mahendra.kutare at gmail.com
Wed Jul 29 13:07:24 CEST 2009


This made it work.

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.

Anyways this works now.

Thanks a lot
Mahendrra
On Wed, Jul 29, 2009 at 6:51 AM, Andrés J. Díaz <ajdiaz at connectical.com>wrote:

> 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
> >
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.verplant.org/pipermail/collectd/attachments/20090729/dbdca148/attachment.htm 


More information about the collectd mailing list