<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:clearspace="http://www.jivesoftware.com/xmlns/clearspace/rss" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  <channel>
    <title>Integrations : Tweet out Events to Twitter : Comments</title>
    <link>http://community.zenoss.org/docs/DOC-5863#comments</link>
    <description>Comments on : Tweet out Events to Twitter</description>
    <language>en</language>
    <pubDate>Tue, 24 Aug 2010 07:46:30 GMT</pubDate>
    <generator>Jive SBS 4.5.6.2  (http://jivesoftware.com/products/clearspace/)</generator>
    <dc:date>2010-08-24T07:46:30Z</dc:date>
    <dc:language>en</dc:language>
    <item>
      <title>RE: Tweet out Events to Twitter</title>
      <link>http://community.zenoss.org/docs/DOC-5863#comments-2507</link>
      <description>&lt;!-- [DocumentBodyStart:0f892789-b018-4d20-9c89-7961361c6b70] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Hi everybody,&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;nice script. I made a litte modification. Because i use an iPhone i want to get push notifications. so what i did is, I set up a second twitter account. Both accounts have to follow each other, so you can send direct messages between them. now i added:&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;seconduser="the_second_twitter_account_i_want_messages_sent_to"&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;and i added a second curl-line to create the direct message:&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;&lt;span&gt;$curl -u $user:$pass -d "text=`echo $@`&amp;amp;user=$seconduser" &lt;/span&gt;&lt;a class="jive-link-external-small" href="http://twitter.com/direct_messages/new.xml"&gt;http://twitter.com/direct_messages/new.xml&lt;/a&gt;&lt;span&gt; &amp;gt;&amp;amp; /dev/null&lt;/span&gt;&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;Now with an iphone app that support twitter direct messages with push i got the update right to my iphone.&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;Hope you like it!&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;MacSEK&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:0f892789-b018-4d20-9c89-7961361c6b70] --&gt;</description>
      <pubDate>Tue, 24 Aug 2010 07:46:30 GMT</pubDate>
      <author>community@zenoss.org</author>
      <guid>http://community.zenoss.org/docs/DOC-5863#comments-2507</guid>
      <dc:date>2010-08-24T07:46:30Z</dc:date>
      <clearspace:dateToText>3 years, 6 months ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>RE: Tweet out Events to Twitter</title>
      <link>http://community.zenoss.org/docs/DOC-5863#comments-2496</link>
      <description>&lt;!-- [DocumentBodyStart:5f80965b-afb3-4643-9910-6b5609328f87] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Hi,&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;i like this twitter thing but i had a problem with. sometimes i got some error tickets when the script was running. These errors where cause by some event summary / device names that contained brackets. so if you have similar problems you should change command from this:&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;$ZENHOME/scripts/tweet.sh ${evt/device} -- ${evt/summary}&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;to this:&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;$ZENHOME/scripts/tweet.sh "${evt/device} -- ${evt/summary}"&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;then everything will work also with brackets inside the device name and event summary.&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;MacSEK&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:5f80965b-afb3-4643-9910-6b5609328f87] --&gt;</description>
      <pubDate>Mon, 30 Aug 2010 11:12:23 GMT</pubDate>
      <author>community@zenoss.org</author>
      <guid>http://community.zenoss.org/docs/DOC-5863#comments-2496</guid>
      <dc:date>2010-08-30T11:12:23Z</dc:date>
      <clearspace:dateToText>3 years, 6 months ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
  </channel>
</rss>

