<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">I'm not sure if I've understand what
you are doing but<br>
<br>
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 <br>
<br>
<br>
<br>
Le 25/08/2012 00:08, Wright, Stephen a écrit :<br>
</div>
<blockquote
cite="mid:A3A27E7EB4DFE944A6387CADF470600084C2C74B@CSIADEBS02.office.comscore.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<meta name="Generator" content="Microsoft Word 14 (filtered
medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Arial","sans-serif";
color:black;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#669900;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#FF9900;
text-decoration:underline;}
pre
{mso-style-priority:99;
mso-style-link:"HTML Preformatted Char";
margin:0in;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";
color:black;}
span.HTMLPreformattedChar
{mso-style-name:"HTML Preformatted Char";
mso-style-priority:99;
mso-style-link:"HTML Preformatted";
font-family:Consolas;
color:black;}
span.moz-txt-tag
{mso-style-name:moz-txt-tag;}
p.f2c96c14-7e91-477c-8fbc-04f631104497, li.f2c96c14-7e91-477c-8fbc-04f631104497, div.f2c96c14-7e91-477c-8fbc-04f631104497
{mso-style-name:f2c96c14-7e91-477c-8fbc-04f631104497;
margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";
color:black;}
p.3c792491-33c7-45b4-9145-d4370ac8ce9d, li.3c792491-33c7-45b4-9145-d4370ac8ce9d, div.3c792491-33c7-45b4-9145-d4370ac8ce9d
{mso-style-name:3c792491-33c7-45b4-9145-d4370ac8ce9d;
margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";
color:black;}
span.EmailStyle22
{mso-style-type:personal;
font-family:"Arial","sans-serif";
color:windowtext;}
span.EmailStyle25
{mso-style-type:personal-reply;
font-family:"Arial","sans-serif";
color:#223E7C;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal"><span style="color:#223E7C">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. <o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#223E7C"><o:p> </o:p></span></p>
<p class="MsoNormal">/etc/sysconfig/rrdcached <o:p></o:p></p>
<p class="MsoNormal">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<o:p></o:p></p>
<p class="MsoNormal"><span style="color:#223E7C"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#223E7C"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF
1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span
style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext">From:</span></b><span
style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext">
Poil [<a class="moz-txt-link-freetext" href="mailto:poil@quake.fr">mailto:poil@quake.fr</a>] <br>
<b>Sent:</b> Friday, August 24, 2012 4:39 PM<br>
<b>To:</b> Wright, Stephen<br>
<b>Cc:</b> <a class="moz-txt-link-abbreviated" href="mailto:collectd@verplant.org">collectd@verplant.org</a><br>
<b>Subject:</b> Re: [collectd] rrdcached connecting to
an IP instead of unix socket<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">Hi,<br>
<br>
I'm not a work but I think i'm using this configuration for
rrdcached daemon<br>
<br>
<o:p></o:p></p>
<pre>rrdcached -f 7200 -w 3600 -z 900 -b <span class="moz-txt-tag"><i>/</i></span><i>opt/collectd/var/lib/collectd/rrd<span class="moz-txt-tag">/</span></i> -P FLUSH,BATCH,UPDATE,STATS -l 127.0.0.1 -l unix:/tmp/rrdcached.sock<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>Why don't you use a virtual IP on top of your "drbd servers" IPs?<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>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<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>Best regards<o:p></o:p></pre>
<p class="MsoNormal"><br>
<br>
Le 24/08/2012 20:11, Wright, Stephen a écrit :<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal">Hey quick question is it possible for
rrdcached to connect to an IP address instead of a unix
socket with the rrdcached plugin. <o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">The following is my rrdcached config and
collectd config working with the unix socket<o:p></o:p></p>
<p class="MsoNormal">-----------------------------------------------------------------------------------------<o:p></o:p></p>
<p class="MsoNormal">/etc/sysconfig/rrdcached<o:p></o:p></p>
<p class="MsoNormal">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"<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">/etc/collectd.conf<o:p></o:p></p>
<p class="MsoNormal">LoadPlugin rrdcached<o:p></o:p></p>
<p class="MsoNormal"><Plugin "rrdcached"><o:p></o:p></p>
<p class="MsoNormal"> DaemonAddress
"unix:/var/rrdtool/rrdcached/rrdcached.sock"<o:p></o:p></p>
<p class="MsoNormal"> DataDir "/data/collectd/rrd"<o:p></o:p></p>
<p class="MsoNormal"> CreateFiles true<o:p></o:p></p>
<p class="MsoNormal"></Plugin><o:p></o:p></p>
<p class="MsoNormal">-------------------------------------------------------------------------------------------<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">The following is not working if I’m
running rrdcached bound to an IP instead of a unix socket.
<o:p></o:p></p>
<p class="MsoNormal">/etc/sysconfig/rrdcached<o:p></o:p></p>
<p class="MsoNormal">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<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">/etc/collectd.conf<o:p></o:p></p>
<p class="MsoNormal">LoadPlugin rrdcached<o:p></o:p></p>
<p class="MsoNormal"><Plugin "rrdcached"><o:p></o:p></p>
<p class="MsoNormal"> DaemonAddress "hostname:42217"<o:p></o:p></p>
<p class="MsoNormal"> DataDir "/data/collectd/rrd"<o:p></o:p></p>
<p class="MsoNormal"> CreateFiles true<o:p></o:p></p>
<p class="MsoNormal"></Plugin><o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Changing any of the –P options dosen’t
seem to help. <o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">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. <o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Any help would be appreciated. <o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="3c792491-33c7-45b4-9145-d4370ac8ce9d"> <o:p></o:p></p>
<p class="3c792491-33c7-45b4-9145-d4370ac8ce9d"><b><span
style="color:#26446E">Stephen</span></b> <b><span
style="color:#26446E">Wright</span></b> <span
style="color:#26446E">Open Source Engineer</span> | <span
style="color:#26446E">comScore, Inc. </span><em><span
style="font-size:7.5pt;color:#26446E">(NASDAQ:SCOR)</span></em><o:p></o:p></p>
<p class="3c792491-33c7-45b4-9145-d4370ac8ce9d"><span
style="color:#26446E">o +1 (312) 777-8806 | <a
moz-do-not-send="true"
href="mailto:swright@comscore.com" title="Click to send
email to Wright, Stephen"><span style="color:#26446E">swright@comscore.com</span></a></span><o:p></o:p></p>
<p class="3c792491-33c7-45b4-9145-d4370ac8ce9d"><span
style="color:#1F497D">...........................................................................................................</span><o:p></o:p></p>
<p class="f2c96c14-7e91-477c-8fbc-04f631104497"><strong><span
style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#CC6600">Introducing
Mobile Metrix 2.0 - The next generation of mobile
behavioral measurement </span></strong><b><span
style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#CC6600"><br>
</span></b><a moz-do-not-send="true"
href="http://www.comscore.com/Products_Services/Product_Index/Mobile_Metrix_2.0">www.comscore.com/MobileMetrix</a><o:p></o:p></p>
<p class="f2c96c14-7e91-477c-8fbc-04f631104497"> <o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:12.0pt;font-family:"Times New
Roman","serif""><br>
<br>
<br>
<o:p></o:p></span></p>
<pre>_______________________________________________<o:p></o:p></pre>
<pre>collectd mailing list<o:p></o:p></pre>
<pre><a moz-do-not-send="true" href="mailto:collectd@verplant.org">collectd@verplant.org</a><o:p></o:p></pre>
<pre><a moz-do-not-send="true" href="http://mailman.verplant.org/listinfo/collectd">http://mailman.verplant.org/listinfo/collectd</a><o:p></o:p></pre>
</blockquote>
<p class="MsoNormal"><span
style="font-size:12.0pt;font-family:"Times New
Roman","serif""><o:p> </o:p></span></p>
</div>
</blockquote>
<br>
</body>
</html>