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

Poil poil at quake.fr
Sun Aug 26 21:39:50 CEST 2012


I'm not sure if I've understand what you are doing but

I think with heartbeat you can manage start/stop of rrdcached with a 
different configuration for your rrdcached srv1 and rrdcached srv2 and 
simply listen on the true IP



Le 25/08/2012 00:08, Wright, Stephen a écrit :
>
> I'm using a virtual IP for the rrdcache daemon.  The virtual ip floats 
> between my two collectd hosts.  I'm trying to get this to work without 
> the unix sock because I want the data to be sent only to the virtual 
> IP which will shift between the servers.  The virtual ip will shift 
> between the two servers as will the mount point that the data is 
> written to.  My rrdcached config looks like this.
>
> /etc/sysconfig/rrdcached
>
> OPTIONS="-P 
> FLUSH,FLUSHALL,PENDING,FORGET,QUEUE,HELP,STATS,UPDATE,WROTE,BATCH,QUIT 
> --l virtualip:42217 -F -s root -m 664 -b /data/collectd/rrd -j /tmp/  
> -w 300 -z 90 -t 20
>
> *From:*Poil [mailto:poil at quake.fr]
> *Sent:* Friday, August 24, 2012 4:39 PM
> *To:* Wright, Stephen
> *Cc:* collectd at verplant.org
> *Subject:* Re: [collectd] rrdcached connecting to an IP instead of 
> unix socket
>
> Hi,
>
> I'm not a work but I think i'm using this configuration for rrdcached 
> daemon
>
> rrdcached -f 7200 -w 3600 -z 900 -b////opt/collectd/var/lib/collectd/rrd//  -P FLUSH,BATCH,UPDATE,STATS -l 127.0.0.1 -l unix:/tmp/rrdcached.sock
>   
> Why don't you use a virtual IP on top of your "drbd servers" IPs?
>   
> There was a small bug on rrdcached collectd plugin, umask wasn't correct, search for " [collectd] rrdc_update failed with status -1" in this mailing list
>   
> Best regards
>
>
>
> Le 24/08/2012 20:11, Wright, Stephen a écrit :
>
>     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>
>
>
>
>
>     _______________________________________________
>
>     collectd mailing list
>
>     collectd at verplant.org  <mailto: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/20120826/0a9b3b91/attachment.html>


More information about the collectd mailing list