[collectd] rrdcached connecting to an IP instead of unix socket

Wright, Stephen swright at comscore.com
Fri Aug 24 20:11:53 CEST 2012


Hey quick question is it possible for rrdcached to connect to an IP address instead of a unix socket with the rrdcached plugin.

The following is my rrdcached config and collectd config working with the unix socket
-----------------------------------------------------------------------------------------
/etc/sysconfig/rrdcached
OPTIONS="-l unix:/var/rrdtool/rrdcached/rrdcached.sock -F -s root -m 664 -b /data/collectd/rrd -j /tmp/ -P FLUSH,PENDING -w 300 -z 90 -t 20"

/etc/collectd.conf
LoadPlugin rrdcached
<Plugin "rrdcached">
  DaemonAddress "unix:/var/rrdtool/rrdcached/rrdcached.sock"
  DataDir "/data/collectd/rrd"
  CreateFiles true
</Plugin>
-------------------------------------------------------------------------------------------

The following is not working if I’m running rrdcached bound to an IP instead of a unix socket.
/etc/sysconfig/rrdcached
OPTIONS="-P FLUSH,FLUSHALL,PENDING,FORGET,QUEUE,HELP,STATS,UPDATE,WROTE,BATCH,QUIT -l hostname:42217 -F -s root -m 664 -b /data/collectd/rrd -j /tmp/  -w 300 -z 90 -t 20

/etc/collectd.conf
LoadPlugin rrdcached
<Plugin "rrdcached">
  DaemonAddress "hostname:42217"
  DataDir "/data/collectd/rrd"
  CreateFiles true
</Plugin>


Changing any of the –P options dosen’t seem to help.

I know the recommend method is to use the unix socket, however I’m going to be running this in drbd setup so basically the directory where the files and daemon are running on can change.  I have a floating IP that will move between the collection servers.  That’s why I need to be able to set the DamonAddress to an IP.  The IP for the Daemon Address will be able to write to the directory correctly.

Any help would be appreciated.




Stephen Wright Open Source Engineer | comScore, Inc. (NASDAQ:SCOR)

o +1 (312) 777-8806 | swright at comscore.com<mailto:swright at comscore.com>

...........................................................................................................

Introducing Mobile Metrix 2.0 - The next generation of mobile behavioral measurement
www.comscore.com/MobileMetrix<http://www.comscore.com/Products_Services/Product_Index/Mobile_Metrix_2.0>


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.verplant.org/pipermail/collectd/attachments/20120824/861595be/attachment-0001.html>


More information about the collectd mailing list