<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: MySQL replication monitoring with Python</title>
	<atom:link href="http://tech.tomgoren.com/archives/86/feed" rel="self" type="application/rss+xml" />
	<link>http://tech.tomgoren.com/archives/86</link>
	<description>useful (?) scripts</description>
	<lastBuildDate>Thu, 15 Dec 2011 18:58:15 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Greg</title>
		<link>http://tech.tomgoren.com/archives/86/comment-page-1#comment-7784</link>
		<dc:creator>Greg</dc:creator>
		<pubDate>Thu, 15 Dec 2011 18:58:15 +0000</pubDate>
		<guid isPermaLink="false">http://tech.tomgoren.com/?p=86#comment-7784</guid>
		<description>Honestly, I&#039;m not an expert on what you&#039;re doing here. I am doing something much more basic - digging into the status of a slave and sending alerts with monit if there is a problem.

I am fairly new to python, though and your code was a very helpful basis. 

My comment was only to help for someone who used your code but was using a version of mysql that would break on the seconds_behind_master check. (also, it is a simple fix). It will of course, break if someone changes the name of that variable in a future release. :(</description>
		<content:encoded><![CDATA[<p>Honestly, I&#8217;m not an expert on what you&#8217;re doing here. I am doing something much more basic &#8211; digging into the status of a slave and sending alerts with monit if there is a problem.</p>
<p>I am fairly new to python, though and your code was a very helpful basis. </p>
<p>My comment was only to help for someone who used your code but was using a version of mysql that would break on the seconds_behind_master check. (also, it is a simple fix). It will of course, break if someone changes the name of that variable in a future release. <img src='http://tech.tomgoren.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tom</title>
		<link>http://tech.tomgoren.com/archives/86/comment-page-1#comment-7783</link>
		<dc:creator>tom</dc:creator>
		<pubDate>Thu, 15 Dec 2011 17:52:01 +0000</pubDate>
		<guid isPermaLink="false">http://tech.tomgoren.com/?p=86#comment-7783</guid>
		<description>Greg, Thanks!

Sorry to say I haven&#039;t re-visited this subject in a while (posted this 2.5 years ago).

I actually had some qualms regarding the whole setup and its robustness. What is your opinion of the method / algorithm as a whole?</description>
		<content:encoded><![CDATA[<p>Greg, Thanks!</p>
<p>Sorry to say I haven&#8217;t re-visited this subject in a while (posted this 2.5 years ago).</p>
<p>I actually had some qualms regarding the whole setup and its robustness. What is your opinion of the method / algorithm as a whole?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Greg</title>
		<link>http://tech.tomgoren.com/archives/86/comment-page-1#comment-7781</link>
		<dc:creator>Greg</dc:creator>
		<pubDate>Thu, 15 Dec 2011 17:35:54 +0000</pubDate>
		<guid isPermaLink="false">http://tech.tomgoren.com/?p=86#comment-7781</guid>
		<description>You can get the results from &quot;show slave status&quot; to be in a dict form by using a DictCursor. This lets you specifically look at &#039;seconds_behind_master&#039; instead of just assuming it is the last thing in  your row (which it isn&#039;t in 5.5).

cursor = conn.cursor(MySQLdb.cursors.DictCursor)</description>
		<content:encoded><![CDATA[<p>You can get the results from &#8220;show slave status&#8221; to be in a dict form by using a DictCursor. This lets you specifically look at &#8216;seconds_behind_master&#8217; instead of just assuming it is the last thing in  your row (which it isn&#8217;t in 5.5).</p>
<p>cursor = conn.cursor(MySQLdb.cursors.DictCursor)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tom</title>
		<link>http://tech.tomgoren.com/archives/86/comment-page-1#comment-3762</link>
		<dc:creator>tom</dc:creator>
		<pubDate>Tue, 01 Mar 2011 12:44:28 +0000</pubDate>
		<guid isPermaLink="false">http://tech.tomgoren.com/?p=86#comment-3762</guid>
		<description>That is definitely a viable method. The solution suggested here is not by any means the optimal solution.
In addition this is sort of an end case - not the usual way of handling mission critical data with MySQL replications.
Thanks!</description>
		<content:encoded><![CDATA[<p>That is definitely a viable method. The solution suggested here is not by any means the optimal solution.<br />
In addition this is sort of an end case &#8211; not the usual way of handling mission critical data with MySQL replications.<br />
Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Danial Poeschel</title>
		<link>http://tech.tomgoren.com/archives/86/comment-page-1#comment-1897</link>
		<dc:creator>Danial Poeschel</dc:creator>
		<pubDate>Tue, 19 Oct 2010 21:08:48 +0000</pubDate>
		<guid isPermaLink="false">http://tech.tomgoren.com/?p=86#comment-1897</guid>
		<description>I depend on having each model backed up and watching each appliance, as opposed to simply monitoring naturally on the Internet, after which responding in a short enough point in time for a resolution.</description>
		<content:encoded><![CDATA[<p>I depend on having each model backed up and watching each appliance, as opposed to simply monitoring naturally on the Internet, after which responding in a short enough point in time for a resolution.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

