<?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>My two ¢&#039;s &#187; Scripts</title>
	<atom:link href="http://www.linuxaddicted.de/blog/tag/scripts/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.linuxaddicted.de/blog</link>
	<description>A Gentoo addict, linux admin and developer</description>
	<lastBuildDate>Wed, 31 Mar 2010 12:12:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>New helper script: SVN updater using Growl notifications</title>
		<link>http://www.linuxaddicted.de/blog/2009/05/27/new-helper-script-svn-updater-using-growl-notifications/</link>
		<comments>http://www.linuxaddicted.de/blog/2009/05/27/new-helper-script-svn-updater-using-growl-notifications/#comments</comments>
		<pubDate>Wed, 27 May 2009 10:16:27 +0000</pubDate>
		<dc:creator>daniel</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Scripts]]></category>

		<guid isPermaLink="false">http://www.linuxaddicted.de/blog/?p=218</guid>
		<description><![CDATA[<p>This small helper script should be added to cron and checks your local working copies against the online repository. It can automatically update your working copies if a newer revision is available. The user will be informed using Growl popups. As Growl is only available for Mac users it&#8217;s a Mac only tool by <span style="color:#777"> . . . &#8594; Read More: <a href="http://www.linuxaddicted.de/blog/2009/05/27/new-helper-script-svn-updater-using-growl-notifications/">New helper script: SVN updater using Growl notifications</a></span>]]></description>
			<content:encoded><![CDATA[<p>This small helper script should be added to cron and checks your local working copies against the online repository. It can automatically update your working copies if a newer revision is available. The user will be informed using <a href="http://www.growl.info/"><strong>Growl</strong></a> popups. As Growl is only available for Mac users it&#8217;s a Mac only tool by now.</p>
<p>The script currently registers with Growl using the classes from Python bindings. This is not necessary and would also be done by growlnotify. I was just interested in how this whole Growl stuff works. Feel free to remove this parts. <span id="more-218"></span></p>
<p>When i started i was willing to do the whole Growl stuff manually which has worked very well from the command line but not from cron. Seems like the context or something else get&#8217;s lost and no notifications pop up anymore. To be able to run via cron i switched to growlnotify.</p>
<h2>Depencies</h2>
<ul>
<li><a href="http://www.growl.info/files/Growl-1.1.4-SDK.dmg">Growl SDK (Python bindings)</a></li>
<li><a href="http://growl.info/files/Growl-1.1.4.dmg">growlnotify from Growl distribution</a></li>
<li><a href="http://www.python.org">Python &gt;= 2.5</a></li>
</ul>
<h2>Screenshots</h2>
<p><img class="aligncenter size-full wp-image-223" title="svn_growl_screen_1" src="http://www.linuxaddicted.de/blog/wp-content/uploads/2009/05/picture-4.png" alt="svn_growl_screen_1" width="337" height="180" /></p>
<h2>Download</h2>
<p>Download: <strong><center><a href="http://www.linuxaddicted.de/blog/downloads/svn_growl_updater-0.3.tar"><img src="http://www.linuxaddicted.de/blog/wp-content/plugins/download-monitor/img/download.gif" /></a><br />svn_growl_updater / version 0.3 / size 60 kB / dlcount 168</center></strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxaddicted.de/blog/2009/05/27/new-helper-script-svn-updater-using-growl-notifications/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing iPython under MacOS X</title>
		<link>http://www.linuxaddicted.de/blog/2009/02/02/installing-ipython-under-macos-x/</link>
		<comments>http://www.linuxaddicted.de/blog/2009/02/02/installing-ipython-under-macos-x/#comments</comments>
		<pubDate>Mon, 02 Feb 2009 12:54:14 +0000</pubDate>
		<dc:creator>daniel</dc:creator>
				<category><![CDATA[Howto]]></category>
		<category><![CDATA[MacOSX]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Scripts]]></category>

		<guid isPermaLink="false">http://www.linuxaddicted.de/blog/?p=188</guid>
		<description><![CDATA[<p>If you don&#8217;t know iPython by now:  check it out</p> <p>It&#8217;s a pretty nice tool if you work with python from the terminal. Especially the easy way to get information about modules and functions. The easiest way to install (especially in a Mac environment) is to use the &#8220;alldeps&#8221; tarball.</p> <p></p> deathstar-mac ~ $ <span style="color:#777"> . . . &#8594; Read More: <a href="http://www.linuxaddicted.de/blog/2009/02/02/installing-ipython-under-macos-x/">Installing iPython under MacOS X</a></span>]]></description>
			<content:encoded><![CDATA[<p>If you don&#8217;t know iPython by now:  <a href="http://ipython.scipy.org/moin/">check it out</a></p>
<p>It&#8217;s a pretty nice tool if you work with python from the terminal. Especially the easy way to get information about modules and functions. The easiest way to install (especially in a Mac environment) is to use the &#8220;alldeps&#8221; tarball.</p>
<p><span id="more-188"></span></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">deathstar-mac ~ $ <span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>ipython.scipy.org<span style="color: #000000; font-weight: bold;">/</span>dist<span style="color: #000000; font-weight: bold;">/</span>alldeps<span style="color: #000000; font-weight: bold;">/</span>ipython-alldeps-0.9.1.tar
deathstar-mac ~ $ <span style="color: #c20cb9; font-weight: bold;">tar</span> xvf ipython-alldeps-0.9.1.tar
deathstar-mac ~ $ <span style="color: #7a0874; font-weight: bold;">cd</span> ipython-alldeps-0.9.1.tar
deathstar-mac ~ $ <span style="color: #c20cb9; font-weight: bold;">make</span></pre></div></div>

<p>The default install location is ~/usr/local. You may change this by modifying the install scripts but for now use the default. Now it&#8217;s time to make some modifications to your profile. Add the following lines:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">deathstar-mac ~ $ <span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">PATH</span>=<span style="color: #ff0000;">&quot;<span style="color: #007800;">$PATH</span>:/Users/YOUR_USERNAME/usr/local/bin&quot;</span>
deathstar-mac ~ $ <span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">PYTHONPATH</span>=<span style="color: #007800;">$PYTHONPATH</span>:<span style="color: #000000; font-weight: bold;">/</span>Users<span style="color: #000000; font-weight: bold;">/</span>YOUR_USERNAME<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>python2.5<span style="color: #000000; font-weight: bold;">/</span>site-packages</pre></div></div>

<p>Let&#8217;s complete the installation process:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">deathstar-mac ~ $ iptest
deathstar-mac ~ $ <span style="color: #7a0874; font-weight: bold;">cd</span> ipython-alldeps-0.9.1<span style="color: #000000; font-weight: bold;">/</span>ipython-0.9.1
deathstar-mac ~ $ python setup.py <span style="color: #c20cb9; font-weight: bold;">install</span> <span style="color: #660033;">--prefix</span>=~<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">local</span>
&nbsp;
deathstar-mac ~ $ ipython
Leopard libedit detected.
Python 2.5.1 <span style="color: #7a0874; font-weight: bold;">&#40;</span>r251:<span style="color: #000000;">54863</span>, Apr <span style="color: #000000;">15</span> <span style="color: #000000;">2008</span>, <span style="color: #000000;">22</span>:<span style="color: #000000;">57</span>:<span style="color: #000000;">26</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> 
Type <span style="color: #ff0000;">&quot;copyright&quot;</span>, <span style="color: #ff0000;">&quot;credits&quot;</span> or <span style="color: #ff0000;">&quot;license&quot;</span> <span style="color: #000000; font-weight: bold;">for</span> <span style="color: #c20cb9; font-weight: bold;">more</span> information.
&nbsp;
IPython 0.9.1 <span style="color: #660033;">--</span> An enhanced Interactive Python.
?         -<span style="color: #000000; font-weight: bold;">&gt;</span> Introduction and overview of IPython<span style="color: #ff0000;">'s features.
%quickref -&gt; Quick reference.
help      -&gt; Python'</span>s own <span style="color: #7a0874; font-weight: bold;">help</span> system.
object?   -<span style="color: #000000; font-weight: bold;">&gt;</span> Details about <span style="color: #ff0000;">'object'</span>. ?object also works, ?? prints more.
&nbsp;
In <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">1</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>:</pre></div></div>

<p>Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxaddicted.de/blog/2009/02/02/installing-ipython-under-macos-x/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nagios Plugins</title>
		<link>http://www.linuxaddicted.de/blog/projects/nagios-plugins/</link>
		<comments>http://www.linuxaddicted.de/blog/projects/nagios-plugins/#comments</comments>
		<pubDate>Tue, 02 Dec 2008 20:53:00 +0000</pubDate>
		<dc:creator>daniel</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Nagios]]></category>
		<category><![CDATA[Scripts]]></category>

		<guid isPermaLink="false">http://blog.linuxaddicted.de/?page_id=65</guid>
		<description><![CDATA[<p>These are some of the Nagios plugins i wrote which may be useful for you. You may download them via http://www.nagiosexchange.org too. All plugins are released under GPLv2 license.</p> <p></p> check_imap_mailbox <p /> <p>Details</p> <p>This plugin monitors a given IMAP mailbox for new mail. When a new mail arrived a CRITICAL error will be <span style="color:#777"> . . . &#8594; Read More: <a href="http://www.linuxaddicted.de/blog/projects/nagios-plugins/">Nagios Plugins</a></span>]]></description>
			<content:encoded><![CDATA[<p>These are some of the Nagios plugins i wrote which may be useful for you. You may download them via <a href="http://www.nagiosexchange.org">http://www.nagiosexchange.org</a> too. All plugins are released under GPLv2 license.</p>
<p><a name="check_imap_mailbox"></a></p>
<h3>check_imap_mailbox</h3>
<hr />
<p />
<p><strong>Details</strong></p>
<p>This plugin monitors a given IMAP mailbox for new mail. When a new mail arrived a CRITICAL error will be returned. No new mail(s) will result in OK</p>
<p><strong>Depencies</strong></p>
<ul>
<li>Mail::IMAPClient <a href="http://search.cpan.org/~djkernen/Mail-IMAPClient-2.2.9/IMAPClient.pod">from CPAN</a></li>
<li>Getopt::Long <a href="http://search.cpan.org/~jv/Getopt-Long-2.37/lib/Getopt/Long.pm">from CPAN</a></li>
</ul>
<p><strong>Usage</strong></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">Usage: check_imap_mailbox <span style="color: #7a0874; font-weight: bold;">&#91;</span>PARAMETERS<span style="color: #7a0874; font-weight: bold;">&#93;</span>
&nbsp;
Parameters:
&nbsp;
  <span style="color: #660033;">--host</span>=<span style="color: #7a0874; font-weight: bold;">&#91;</span>HOSTNAME<span style="color: #7a0874; font-weight: bold;">&#93;</span>      : Name or IP address of IMAP server
  <span style="color: #660033;">--user</span>=<span style="color: #7a0874; font-weight: bold;">&#91;</span>USERNAME<span style="color: #7a0874; font-weight: bold;">&#93;</span>      : Username to connect with
  <span style="color: #660033;">--pass</span>=<span style="color: #7a0874; font-weight: bold;">&#91;</span>PASSWORD<span style="color: #7a0874; font-weight: bold;">&#93;</span>      : Password to connect with
  <span style="color: #660033;">--folder</span>=<span style="color: #7a0874; font-weight: bold;">&#91;</span>IMAP FOLDER<span style="color: #7a0874; font-weight: bold;">&#93;</span> : The IMAP folder to check</pre></div></div>

<p><strong>Download latest version: </strong><center><a href="http://www.linuxaddicted.de/blog/downloads/check_imap_mailbox.gz"><img src="http://www.linuxaddicted.de/blog/wp-content/plugins/download-monitor/img/download.gif" /></a><br />check_imap_mailbox / version 0.1 / size 1.25 kB / dlcount 407</center></p>
<p><a name="check_jk_status"></a></p>
<h3>check_jk_status</h3>
<hr />
<p />
<p><strong>Details</strong></p>
<p>Check the current status of a given JK loadbalancer. The status is fetched from the management URL (jkstatus). The plugin returns CRITICAL as soon as a cluster node has failed.</p>
<p><strong>Depencies</strong></p>
<ul>
<li>XML::Simple <a href="http://search.cpan.org/~grantm/XML-Simple-2.18/lib/XML/Simple.pm">from CPAN</a></li>
<li>Getopt::Long <a href="http://search.cpan.org/~jv/Getopt-Long-2.37/lib/Getopt/Long.pm">from CPAN</a></li>
<li>wget <a href="http://www.gnu.org/software/wget/">from gnu.org</a></li>
</ul>
<p><strong>Usage</strong></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">Usage: check_jk_status <span style="color: #7a0874; font-weight: bold;">&#91;</span>PARAMETERS<span style="color: #7a0874; font-weight: bold;">&#93;</span>
&nbsp;
Parameters:
  <span style="color: #660033;">--host</span>=<span style="color: #7a0874; font-weight: bold;">&#91;</span>HOSTNAME<span style="color: #7a0874; font-weight: bold;">&#93;</span>        : Name or IP address of JK management interface
  <span style="color: #660033;">--balancer</span>=<span style="color: #7a0874; font-weight: bold;">&#91;</span>JK BALANCER<span style="color: #7a0874; font-weight: bold;">&#93;</span> : Name of the JK balancer</pre></div></div>

<p><strong>Download latest version: </strong> <center><a href="http://www.linuxaddicted.de/blog/downloads/check_jk_status.gz"><img src="http://www.linuxaddicted.de/blog/wp-content/plugins/download-monitor/img/download.gif" /></a><br />check_jk_status / version 0.1 / size 1.72 kB / dlcount 319</center></p>
<p><a name="check_foundry_ports"></a></p>
<h3>check_foundry_ports</h3>
<hr />
<p />
<p><strong>Details</strong></p>
<p>Compare the port status of Foundry switches against a given list and returns CRITICAL if any of the ports has status different from the defined value. May indicate that a switch/server failed or a new unauthorized connection took place.</p>
<p><strong>Depencies</strong></p>
<ul>
<li>Getopt::Long <a href="http://search.cpan.org/~jv/Getopt-Long-2.37/lib/Getopt/Long.pm">from CPAN</a></li>
<li>snmpget <a href="http://net-snmp.sourceforge.net/">from net-snmp.sourceforge.net</a></li>
</ul>
<p><strong>Usage</strong></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">Usage: check_foundry_ports <span style="color: #7a0874; font-weight: bold;">&#91;</span>PARAMETERS<span style="color: #7a0874; font-weight: bold;">&#93;</span>
&nbsp;
Parameters:
	    <span style="color: #660033;">--host</span>=<span style="color: #7a0874; font-weight: bold;">&#91;</span>HOSTNAME<span style="color: #7a0874; font-weight: bold;">&#93;</span>            : Hostname or IP-Address of Foundry device
	    <span style="color: #660033;">--community</span>=<span style="color: #7a0874; font-weight: bold;">&#91;</span>SNMP COMMUNITY<span style="color: #7a0874; font-weight: bold;">&#93;</span> : SNMP community string
	    <span style="color: #660033;">--port</span>=<span style="color: #7a0874; font-weight: bold;">&#91;</span>INTERFACE NR<span style="color: #7a0874; font-weight: bold;">&#93;</span>        : The interface number to check <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">1</span>,<span style="color: #000000;">2</span>,<span style="color: #000000;">3</span>,<span style="color: #000000;">22</span>,...<span style="color: #7a0874; font-weight: bold;">&#41;</span></pre></div></div>

<p><strong>Download latest version: </strong><center><a href="http://www.linuxaddicted.de/blog/downloads/check_foundry_ports.gz"><img src="http://www.linuxaddicted.de/blog/wp-content/plugins/download-monitor/img/download.gif" /></a><br />check_foundry_ports / version 0.9 / size 1.91 kB / dlcount 250</center></p>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxaddicted.de/blog/projects/nagios-plugins/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

