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:[email protected]]
*Sent:* Friday, August 24, 2012 4:39 PM
*To:* Wright, Stephen
*Cc:* [email protected]
*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 | [email protected]
    <mailto:[email protected]>

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

    *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

    [email protected]  <mailto:[email protected]>

    http://mailman.verplant.org/listinfo/collectd


_______________________________________________
collectd mailing list
[email protected]
http://mailman.verplant.org/listinfo/collectd

Reply via email to