<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Saiweb &#187; twitter</title>
	<atom:link href="http://www.saiweb.co.uk/tag/twitter/feed" rel="self" type="application/rss+xml" />
	<link>http://www.saiweb.co.uk</link>
	<description>Ramblings of a Sys admin</description>
	<lastBuildDate>Mon, 06 Feb 2012 14:57:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Nagios &#8211; Send alerts to twitter</title>
		<link>http://www.saiweb.co.uk/nagios/nagios-send-alerts-to-twitter</link>
		<comments>http://www.saiweb.co.uk/nagios/nagios-send-alerts-to-twitter#comments</comments>
		<pubDate>Mon, 24 Aug 2009 12:37:18 +0000</pubDate>
		<dc:creator>Buzz</dc:creator>
				<category><![CDATA[Nagios]]></category>
		<category><![CDATA[twitter]]></category>
		<category><![CDATA[alert]]></category>
		<category><![CDATA[sms]]></category>
		<category><![CDATA[text]]></category>

		<guid isPermaLink="false">http://www.saiweb.co.uk/?p=740</guid>
		<description><![CDATA[Pre-req reading: Nagios customization: Alerting via SMS, or anything you like! Making the bird tweet using python or Update twitter in a single line This entry will cover how to send nagios alerts to twitter, in the examples to follow curl will be used however you can choose to use the python example (link above) [...]]]></description>
			<content:encoded><![CDATA[<p>Pre-req reading:</p>
<p><a href="http://www.saiweb.co.uk/nagios/nagios-customization-alerting-via-sms-or-anything-you-like">Nagios customization: Alerting via SMS, or anything you like!</a></p>
<p><a href="http://www.saiweb.co.uk/linux/update-twitter-in-a-single-line">Making the bird tweet using python<br />
</a><br />
or<br />
<a href="http://www.saiweb.co.uk/python/making-the-bird-tweet-using-python">Update twitter in a single line</a></p>
<p>This entry will cover how to send nagios alerts to twitter, in the examples to follow curl will be used however you can choose to use the python example (link above) in place of this.</p>
<p>Firstly edit /usr/local/nagios/etc/objects/commands.cfg</p>
<p>And add the two following commands.</p>
<p><strong>UPDATE 24/03/2011</strong> Twitter no longer supports basic auth, use my oAuth updater <a href="https://github.com/Oneiroi/nagios_addons/blob/master/twitter/nagios_bot.py">here</a></p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">define <span style="color: #7a0874; font-weight: bold;">command</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; command_name &nbsp; &nbsp;notify-by-twitter<br />
&nbsp; &nbsp; &nbsp; &nbsp; command_line &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>curl <span style="color: #660033;">--basic</span> <span style="color: #660033;">--user</span> <span style="color: #ff0000;">&quot;twitteruser:twitterpassword&quot;</span> <span style="color: #660033;">--data-ascii</span> <span style="color: #ff0000;">&quot;status=[Nagios] <span style="color: #007800;">$NOTIFICATIONTYPE</span>$ <span style="color: #007800;">$HOSTALIAS</span>$/<span style="color: #007800;">$SERVICEDESC</span>$ is <span style="color: #007800;">$SERVICESTATE</span>$&quot;</span> http:<span style="color: #000000; font-weight: bold;">//</span>twitter.com<span style="color: #000000; font-weight: bold;">/</span>statuses<span style="color: #000000; font-weight: bold;">/</span>update.json<br />
<span style="color: #7a0874; font-weight: bold;">&#125;</span><br />
<br />
define <span style="color: #7a0874; font-weight: bold;">command</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; command_name &nbsp; &nbsp;host-notify-by-twitter<br />
&nbsp; &nbsp; &nbsp; &nbsp; command_line &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>curl <span style="color: #660033;">--basic</span> <span style="color: #660033;">--user</span> <span style="color: #ff0000;">&quot;twitteruser:twitterpassword&quot;</span> <span style="color: #660033;">--data-ascii</span> <span style="color: #ff0000;">&quot;status=[Nagios] <span style="color: #007800;">$HOSTSTATE</span>$ alert for <span style="color: #007800;">$HOSTNAME</span>$&quot;</span> http:<span style="color: #000000; font-weight: bold;">//</span>twitter.com<span style="color: #000000; font-weight: bold;">/</span>statuses<span style="color: #000000; font-weight: bold;">/</span>update.json<br />
<span style="color: #7a0874; font-weight: bold;">&#125;</span></div></td></tr></tbody></table></div>
<p>Now define a contact for this twitter service</p>
<p>/usr/local/nagios/etc/objects/contacts.cfg</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">define contact<span style="color: #7a0874; font-weight: bold;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; contact_name &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;twitter<br />
&nbsp; &nbsp; &nbsp; &nbsp; service_notification_commands &nbsp; notify-by-twitter<br />
&nbsp; &nbsp; &nbsp; &nbsp; host_notification_commands &nbsp; &nbsp; &nbsp;host-notify-by-twitter<br />
&nbsp; &nbsp; &nbsp; &nbsp; service_notification_period 24x7<br />
&nbsp; &nbsp; &nbsp; &nbsp; host_notification_period 24x7<br />
&nbsp; &nbsp; &nbsp; &nbsp; service_notification_options a<br />
&nbsp; &nbsp; &nbsp; &nbsp; host_notification_options a<br />
<span style="color: #7a0874; font-weight: bold;">&#125;</span></div></td></tr></tbody></table></div>
<p>Choose your own notification options, for my feed I only choose alerts, I also have this send updated to a &#8216;private feed&#8217; which I then follow.</p>
<p>Add this contact into your existing contact groups, i.e.</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">define contactgroup<span style="color: #7a0874; font-weight: bold;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; contactgroup_name &nbsp; &nbsp; &nbsp; admins<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #7a0874; font-weight: bold;">alias</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Nagios Administrators<br />
&nbsp; &nbsp; &nbsp; &nbsp; members &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nagiosadmin,sms_alert,twitter<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #7a0874; font-weight: bold;">&#125;</span></div></td></tr></tbody></table></div>
<p>Then run a nagios-verify to ensure you have no syntax errors, and restart nagios.</p>
<p>Trigger an alert by manually switching a monitored service off or entering a manual result to test.</p>
<p><span style="float: left;" ><a class="twitter-share-button"  data-via="Saiweb" data-count="horizontal" data-related="Saiweb:David Busby" data-lang="en" data-url="http://www.saiweb.co.uk/nagios/nagios-send-alerts-to-twitter" data-text="Nagios &#8211; Send alerts to twitter" href="http://twitter.com/share?via=Saiweb&#038;count=horizontal&#038;related=Saiweb%3ADavid%20Busby&#038;lang=en&#038;url=http%3A%2F%2Fwww.saiweb.co.uk%2Fnagios%2Fnagios-send-alerts-to-twitter&#038;text=Nagios%20%26%238211%3B%20Send%20alerts%20to%20twitter" >Tweet</a></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.saiweb.co.uk/nagios/nagios-send-alerts-to-twitter/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Subversion and twitter &#8211; Keep your followers up to date with your code commits</title>
		<link>http://www.saiweb.co.uk/twitter/subversion-and-twitter-keep-your-followers-up-to-date-with-your-code-commits</link>
		<comments>http://www.saiweb.co.uk/twitter/subversion-and-twitter-keep-your-followers-up-to-date-with-your-code-commits#comments</comments>
		<pubDate>Mon, 24 Aug 2009 12:23:46 +0000</pubDate>
		<dc:creator>Buzz</dc:creator>
				<category><![CDATA[python]]></category>
		<category><![CDATA[twitter]]></category>
		<category><![CDATA[hooks]]></category>
		<category><![CDATA[post-commit]]></category>
		<category><![CDATA[Subversion]]></category>
		<category><![CDATA[svn]]></category>

		<guid isPermaLink="false">http://www.saiweb.co.uk/?p=738</guid>
		<description><![CDATA[Some two months after the fact, I thought it may well be time to post a blog on this little code snippet. As some of you have noticed every commit message to my subversion repository is infact updating my twitter. This code was uploaded to subversion on 10/06/2009, so sorry for the late write up! [...]]]></description>
			<content:encoded><![CDATA[<p>Some two months after the fact, I thought it may well be time to post a blog on this little code snippet.</p>
<p>As some of you have noticed every commit message to my subversion repository is infact updating my twitter.</p>
<p>This code was uploaded to subversion on 10/06/2009, so sorry for the late write up!<br />
<strong><br />
Requirements</strong></p>
<p>Python 2.5 or higher<br />
Subversion server</p>
<p><strong>Installation</strong></p>
<ul>
<li>svn co http://svn.saiweb.co.uk/branches/python/svn_tweeter.py /usr/bin/svn_tweeter</li>
<li>chmod +x /usr/bin/svn_tweeter</li>
<li>cd /path/to/svn/hooks</li>
<li>Edit post-commit with your favorite text editor</li>
</ul>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #007800;">REPOS</span>=<span style="color: #ff0000;">&quot;$1&quot;</span><br />
<span style="color: #007800;">REV</span>=<span style="color: #ff0000;">&quot;$2&quot;</span></div></td></tr></tbody></table></div>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&nbsp;</div></td></tr></tbody></table></div>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>python <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>svn_tweeter <span style="color: #660033;">-u</span> twitterusername <span style="color: #660033;">-p</span> twitterpassword <span style="color: #660033;">-r</span> <span style="color: #007800;">$REV</span> <span style="color: #660033;">-s</span> <span style="color: #007800;">$REPOS</span></div></td></tr></tbody></table></div>
<p>Now try a commit, and check your syslog for entries from the script.</p>
<p>Aug 24 11:36:26 132 python: SVN_TWEETER: http://twitter.com/statuses/update.json query complete</p>
<p><strong>UPDATE 24/03/2011</strong> Twitter has removed basic authentication, you must use oauth (admittedly it has been like this for a fair while now) use this <a href="https://github.com/Oneiroi/nagios_addons/blob/master/twitter/nagios_bot.py">nagios_bot</a> instead<span style="float: left;" ><a class="twitter-share-button"  data-via="Saiweb" data-count="horizontal" data-related="Saiweb:David Busby" data-lang="en" data-url="http://www.saiweb.co.uk/twitter/subversion-and-twitter-keep-your-followers-up-to-date-with-your-code-commits" data-text="Subversion and twitter &#8211; Keep your followers up to date with your code commits" href="http://twitter.com/share?via=Saiweb&#038;count=horizontal&#038;related=Saiweb%3ADavid%20Busby&#038;lang=en&#038;url=http%3A%2F%2Fwww.saiweb.co.uk%2Ftwitter%2Fsubversion-and-twitter-keep-your-followers-up-to-date-with-your-code-commits&#038;text=Subversion%20and%20twitter%20%26%238211%3B%20Keep%20your%20followers%20up%20to%20date%20with%20your%20code%20commits" >Tweet</a></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.saiweb.co.uk/twitter/subversion-and-twitter-keep-your-followers-up-to-date-with-your-code-commits/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Making the bird tweet using python</title>
		<link>http://www.saiweb.co.uk/python/making-the-bird-tweet-using-python</link>
		<comments>http://www.saiweb.co.uk/python/making-the-bird-tweet-using-python#comments</comments>
		<pubDate>Thu, 02 Apr 2009 16:56:35 +0000</pubDate>
		<dc:creator>Buzz</dc:creator>
				<category><![CDATA[python]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://www.saiweb.co.uk/?p=630</guid>
		<description><![CDATA[After taking another look at Python I am quickly coming to love it, as an &#8220;exercise&#8221; in re-learning python I decided to write a very simple command line &#8220;tweeter&#8221; this uses the Twitter API to update your twitter status, extending from the &#8220;update twitter in a single line&#8221; You can grab a copy of the [...]]]></description>
			<content:encoded><![CDATA[<p>After taking another look at Python I am quickly coming to love it, as an &#8220;exercise&#8221; in re-learning python I decided to write a very simple command line &#8220;tweeter&#8221; this uses the Twitter API to update your twitter status, extending from the &#8220;<a href="http://www.saiweb.co.uk/linux/update-twitter-in-a-single-line">update twitter in a single line</a>&#8221;</p>
<p>You can grab a copy of the script from here: <a href="http://svn.saiweb.co.uk/branches/python/tweet.py">http://svn.saiweb.co.uk/branches/python/tweet.py</a></p>
<p><strong>UPDATE 24/03/2011:</strong>Oauth version <a href="https://github.com/Oneiroi/nagios_addons/blob/master/twitter/nagios_bot.py">here</a></p>
<p>Example usage:</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">.<span style="color: #000000; font-weight: bold;">/</span>tweet.py <span style="color: #660033;">-u</span> username <span style="color: #660033;">-p</span> password <span style="color: #660033;">-t</span> your tweet goes here</div></td></tr></tbody></table></div>
<p>If you want to parse the JSON data normally returned after submitting a new tweet simply add the -j flag.</p>
<p>If you are prompted for a username and password when running this script the username and password supplied using the -u and -p flags was incorrect.</p>
<p><span style="float: left;" ><a class="twitter-share-button"  data-via="Saiweb" data-count="horizontal" data-related="Saiweb:David Busby" data-lang="en" data-url="http://www.saiweb.co.uk/python/making-the-bird-tweet-using-python" data-text="Making the bird tweet using python" href="http://twitter.com/share?via=Saiweb&#038;count=horizontal&#038;related=Saiweb%3ADavid%20Busby&#038;lang=en&#038;url=http%3A%2F%2Fwww.saiweb.co.uk%2Fpython%2Fmaking-the-bird-tweet-using-python&#038;text=Making%20the%20bird%20tweet%20using%20python" >Tweet</a></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.saiweb.co.uk/python/making-the-bird-tweet-using-python/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Update twitter in a single line</title>
		<link>http://www.saiweb.co.uk/linux/update-twitter-in-a-single-line</link>
		<comments>http://www.saiweb.co.uk/linux/update-twitter-in-a-single-line#comments</comments>
		<pubDate>Fri, 20 Mar 2009 11:52:44 +0000</pubDate>
		<dc:creator>Buzz</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://www.saiweb.co.uk/?p=616</guid>
		<description><![CDATA[As it turns out twitter account can be updated in a single line, this makes writing &#8220;bots&#8221; just that little bit easier. 1/usr/bin/curl --basic --user &#34;username:password&#34; --data-ascii &#34;your tweet&#34; http://twitter.com/statuses/update.json This also returns JSON should you want to parse the reply data. i.e. 1&#123;&#34;in_reply_to_screen_name&#34;:null,&#34;in_reply_to_status_id&#34;:null,&#34;truncated&#34;:false,&#34;user&#34;:&#123;&#34;profile_image_url&#34;:&#34;http:\/\/static.twitter.com\/images\/default_profile_normal.png&#34;,&#34;description&#34;:&#34;&#34;,&#34;followers_count&#34;:0,&#34;screen_name&#34;:&#34;user&#34;,&#34;url&#34;:null,&#34;name&#34;:&#34;user&#34;,&#34;protected&#34;:true,&#34;location&#34;:&#34;&#34;,&#34;id&#34;:12345678&#125;,&#34;text&#34;:&#34;your tweet&#34;,&#34;favorited&#34;:false,&#34;created_at&#34;:&#34;Fri Mar 20 11:38:44 +0000 2009&#34;,&#34;in_reply_to_user_id&#34;:null,&#34;id&#34;:1359757870,&#34;source&#34;:&#34;web&#34;&#125; At the moment I am [...]]]></description>
			<content:encoded><![CDATA[<p>As it turns out twitter account can be updated in a single line, this makes writing &#8220;bots&#8221; just that little bit easier.</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>curl <span style="color: #660033;">--basic</span> <span style="color: #660033;">--user</span> <span style="color: #ff0000;">&quot;username:password&quot;</span> <span style="color: #660033;">--data-ascii</span> <span style="color: #ff0000;">&quot;your tweet&quot;</span> http:<span style="color: #000000; font-weight: bold;">//</span>twitter.com<span style="color: #000000; font-weight: bold;">/</span>statuses<span style="color: #000000; font-weight: bold;">/</span>update.json</div></td></tr></tbody></table></div>
<p>This also returns JSON should you want to parse the reply data.</p>
<p>i.e.</p>
<div class="codecolorer-container javascript default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="javascript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #009900;">&#123;</span><span style="color: #3366CC;">&quot;in_reply_to_screen_name&quot;</span><span style="color: #339933;">:</span><span style="color: #003366; font-weight: bold;">null</span><span style="color: #339933;">,</span><span style="color: #3366CC;">&quot;in_reply_to_status_id&quot;</span><span style="color: #339933;">:</span><span style="color: #003366; font-weight: bold;">null</span><span style="color: #339933;">,</span><span style="color: #3366CC;">&quot;truncated&quot;</span><span style="color: #339933;">:</span><span style="color: #003366; font-weight: bold;">false</span><span style="color: #339933;">,</span><span style="color: #3366CC;">&quot;user&quot;</span><span style="color: #339933;">:</span><span style="color: #009900;">&#123;</span><span style="color: #3366CC;">&quot;profile_image_url&quot;</span><span style="color: #339933;">:</span><span style="color: #3366CC;">&quot;http:<span style="color: #000099; font-weight: bold;">\/</span><span style="color: #000099; font-weight: bold;">\/</span>static.twitter.com<span style="color: #000099; font-weight: bold;">\/</span>images<span style="color: #000099; font-weight: bold;">\/</span>default_profile_normal.png&quot;</span><span style="color: #339933;">,</span><span style="color: #3366CC;">&quot;description&quot;</span><span style="color: #339933;">:</span><span style="color: #3366CC;">&quot;&quot;</span><span style="color: #339933;">,</span><span style="color: #3366CC;">&quot;followers_count&quot;</span><span style="color: #339933;">:</span><span style="color: #CC0000;">0</span><span style="color: #339933;">,</span><span style="color: #3366CC;">&quot;screen_name&quot;</span><span style="color: #339933;">:</span><span style="color: #3366CC;">&quot;user&quot;</span><span style="color: #339933;">,</span><span style="color: #3366CC;">&quot;url&quot;</span><span style="color: #339933;">:</span><span style="color: #003366; font-weight: bold;">null</span><span style="color: #339933;">,</span><span style="color: #3366CC;">&quot;name&quot;</span><span style="color: #339933;">:</span><span style="color: #3366CC;">&quot;user&quot;</span><span style="color: #339933;">,</span><span style="color: #3366CC;">&quot;protected&quot;</span><span style="color: #339933;">:</span><span style="color: #003366; font-weight: bold;">true</span><span style="color: #339933;">,</span><span style="color: #3366CC;">&quot;location&quot;</span><span style="color: #339933;">:</span><span style="color: #3366CC;">&quot;&quot;</span><span style="color: #339933;">,</span><span style="color: #3366CC;">&quot;id&quot;</span><span style="color: #339933;">:</span><span style="color: #CC0000;">12345678</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span><span style="color: #3366CC;">&quot;text&quot;</span><span style="color: #339933;">:</span><span style="color: #3366CC;">&quot;your tweet&quot;</span><span style="color: #339933;">,</span><span style="color: #3366CC;">&quot;favorited&quot;</span><span style="color: #339933;">:</span><span style="color: #003366; font-weight: bold;">false</span><span style="color: #339933;">,</span><span style="color: #3366CC;">&quot;created_at&quot;</span><span style="color: #339933;">:</span><span style="color: #3366CC;">&quot;Fri Mar 20 11:38:44 +0000 2009&quot;</span><span style="color: #339933;">,</span><span style="color: #3366CC;">&quot;in_reply_to_user_id&quot;</span><span style="color: #339933;">:</span><span style="color: #003366; font-weight: bold;">null</span><span style="color: #339933;">,</span><span style="color: #3366CC;">&quot;id&quot;</span><span style="color: #339933;">:</span><span style="color: #CC0000;">1359757870</span><span style="color: #339933;">,</span><span style="color: #3366CC;">&quot;source&quot;</span><span style="color: #339933;">:</span><span style="color: #3366CC;">&quot;web&quot;</span><span style="color: #009900;">&#125;</span></div></td></tr></tbody></table></div>
<p>At the moment I am looking at hooking this into Nagios, from there the feed will be passed into a &#8216;service status page&#8217;.</p>
<p>But in theory this single line could be used for any purpose.<span style="float: left;" ><a class="twitter-share-button"  data-via="Saiweb" data-count="horizontal" data-related="Saiweb:David Busby" data-lang="en" data-url="http://www.saiweb.co.uk/linux/update-twitter-in-a-single-line" data-text="Update twitter in a single line" href="http://twitter.com/share?via=Saiweb&#038;count=horizontal&#038;related=Saiweb%3ADavid%20Busby&#038;lang=en&#038;url=http%3A%2F%2Fwww.saiweb.co.uk%2Flinux%2Fupdate-twitter-in-a-single-line&#038;text=Update%20twitter%20in%20a%20single%20line" >Tweet</a></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.saiweb.co.uk/linux/update-twitter-in-a-single-line/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using apc
Database Caching 9/31 queries in 1.047 seconds using apc
Object Caching 1037/1085 objects using apc
Content Delivery Network via Rackspace Cloud Files: cdn.saiweb.co.uk

Served from: www.saiweb.co.uk @ 2012-02-08 14:25:43 -->
