<html>
<head>
<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:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@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;}
@font-face
{font-family:"Times New Roman \, serif";}
/* 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;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
{mso-style-priority:99;
mso-style-link:"Plain Text Char";
margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
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;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
{mso-style-priority:99;
mso-style-link:"Balloon Text Char";
margin:0in;
margin-bottom:.0001pt;
font-size:8.0pt;
font-family:"Tahoma","sans-serif";
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.BalloonTextChar
{mso-style-name:"Balloon Text Char";
mso-style-priority:99;
mso-style-link:"Balloon Text";
font-family:"Tahoma","sans-serif";
color:black;}
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.moz-txt-tag
{mso-style-name:moz-txt-tag;}
span.EmailStyle24
{mso-style-type:personal;
font-family:"Arial","sans-serif";
color:windowtext;}
span.EmailStyle25
{mso-style-type:personal;
font-family:"Arial","sans-serif";
color:#223E7C;}
span.EmailStyle26
{mso-style-type:personal;
font-family:"Arial","sans-serif";
color:#223E7C;}
span.EmailStyle29
{mso-style-type:personal-reply;
font-family:"Arial","sans-serif";
color:#223E7C;}
span.PlainTextChar
{mso-style-name:"Plain Text Char";
mso-style-priority:99;
mso-style-link:"Plain Text";
font-family:"Calibri","sans-serif";}
.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]-->
</head>
<body bgcolor="white" lang="EN-US" link="#669900" vlink="#FF9900">
<div class="WordSection1">
<p class="MsoPlainText">Everyone thanks for all your help. I actually found a solution with the unix socket. I had to add some changes to the corsosync configurations to start and stop the rrdcached service in a method that suited my needs for the project
I'm working on. I guess I can consider this matter closed. <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"> collectd-bounces@verplant.org [mailto:collectd-bounces@verplant.org]
<b>On Behalf Of </b>Wright, Stephen<br>
<b>Sent:</b> Sunday, August 26, 2012 11:44 PM<br>
<b>To:</b> Poil<br>
<b>Cc:</b> collectd@verplant.org<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>
<p class="MsoNormal"><span style="color:#223E7C">Maybe this will help better explain what I’m trying to accomplish. I’d like server A to be running and rrdcaching daemon. I’d like server B to load collectd with the rrdcached plugin and set its daemon address
to server A. So server A will be writing out all the rrds files. Server B sends updates to the rrdcached daemon on server A via IP address and on port
</span>42217. <span style="color:#223E7C"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#223E7C">Do you know if anyone has gotten rrdcached plugin to work without a unix socket and just working by IP alone. I tried the patch to set the directories but that does not seem to work correctly.
<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 href="mailto:[mailto:poil@quake.fr]">[mailto:poil@quake.fr]</a> <br>
<b>Sent:</b> Sunday, August 26, 2012 2:40 PM<br>
<b>To:</b> Wright, Stephen<br>
<b>Cc:</b> <a 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">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 :<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<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.
</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#223E7C"> </span><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 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"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#223E7C"> </span><o:p></o:p></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 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 href="mailto:collectd@verplant.org">collectd@verplant.org</a><br>
<b>Subject:</b> Re: [collectd] rrdcached connecting to an IP instead of unix socket</span><o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"> <o:p></o:p></p>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">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 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 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" style="margin-bottom:12.0pt"><span style="font-size:12.0pt;font-family:"Times New Roman , serif","serif""><br>
<br>
<br>
</span><o:p></o:p></p>
<pre>_______________________________________________<o:p></o:p></pre>
<pre>collectd mailing list<o:p></o:p></pre>
<pre><a href="mailto:collectd@verplant.org">collectd@verplant.org</a><o:p></o:p></pre>
<pre><a 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","serif""> </span><o:p></o:p></p>
</blockquote>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif""><o:p> </o:p></span></p>
</div>
</body>
</html>