<?xml version="1.0" encoding="UTF-8"?>
<!-- name="generator" content="pyblosxom/1.3.2 2/13/2006" -->
<!DOCTYPE rss PUBLIC "-//Netscape Communications//DTD RSS 0.91//EN" "http://my.netscape.com/publish/formats/rss-0.91.dtd">

<rss version="0.91">
<channel>
<title>stdout   </title>
<link>http://www.mstevens.org</link>
<description>stdout</description>
<language>en</language>
<item>
  <title>Switched to nginx</title>
  <link>http://www.mstevens.org/unix/nginx_installed.html</link>
  <description><![CDATA[
<p>
Redid all the etla.org web stuff to be hosted on <a href="http://nginx.org/">nginx</a>. Let me know if you see any problems.
</p>

]]></description>
</item>

<item>
  <title>Accidental spamming</title>
  <link>http://www.mstevens.org/unix/etla_spam.html</link>
  <description><![CDATA[
<p>
Looks like ceres.etla.org has been sending spam out for a few days. As far as I can tell someone cracked my SMTP AUTH password. Investigating.
</p>

]]></description>
</item>

<item>
  <title>DNS propagated</title>
  <link>http://www.mstevens.org/mail/ipv6_spf_google_2.html</link>
  <description><![CDATA[
<p>
Now it works.
</p>

]]></description>
</item>

<item>
  <title>Experimenting with SPF</title>
  <link>http://www.mstevens.org/mail/ipv6_spf_google.html</link>
  <description><![CDATA[
<p>
Setting up <a href="http://www.openspf.org/">SPF</a> on a domain that doesn't normally do email (specifically this one, mstevens.org), for experimental purposes.
</p>
<p>
Found one problem so far - I specified my SPF record as <code>v=spf1 mx -all</code>. I then sent a test email to google, and it was rejected with:
</p>
<pre>
Received-SPF: fail (google.com: domain of mstevens@mstevens.org does not designate 2001:ba8:1f1:f1ef::2 as permitted sender) client-ip=2001:ba8:1f1:f1ef::2;
Authentication-Results: mx.google.com; spf=hardfail (google.com: domain of mstevens@mstevens.org does not designate 2001:ba8:1f1:f1ef::2 as permitted sender) smtp.mail=mstevens@mstevens.org; dkim=pass (test mode) header.i=@mstevens.org
</pre>
<p>
The mx defined for the domain is on IPv4 and IPv6, and has A and AAAA records. I was expecting the SPF record above to mark both as valid, but google doesn't seem to interpret it as valid.
</p>
<p>
Looking at the discussion at <a href="http://www.gossamer-threads.com/lists/spf/help/35598">a thread on the SPF mailing list</a> I think it probably should be considered valid, although I'm not certain. Anyway, I've updated the SPF record with a <code>ip6</code> entry for the specific IP address, hopefully that'll sort it. Possibly there's a bug in the google implementation, but I wouldn't know who to contact!
</p>
<p>
Waiting for the DNS to propagate and see if the change helps.
</p>

]]></description>
</item>

<item>
  <title>Culture of Distraction</title>
  <link>http://www.mstevens.org/web/mlp_culture_of_distraction.html</link>
  <description><![CDATA[
<p>
<a href="http://joekraus.com/were-creating-a-culture-of-distraction">We’re creating a culture of distraction</a>
</p>

]]></description>
</item>

<item>
  <title>Domains</title>
  <link>http://www.mstevens.org/web/domains.html</link>
  <description><![CDATA[
<p>
Just been inspired to renew etla.org for another 3 years.
</p>

]]></description>
</item>

<item>
  <title>Filtering ports by user</title>
  <link>http://www.mstevens.org/unix/iptables_user.html</link>
  <description><![CDATA[
<p>
You can filter ports on the local machine by user with iptables using something like this:
</p>
<pre>
iptables -A OUTPUT -p tcp --dport 1234 -d localhost -m owner ! --uid-owner root -j REJECT
</pre>
<p>
Will restrict port 1234 on localhost to only be accessible by root.
</p>
<p>
Found at <a href="http://www.linuxjournal.com/article/6091">Paranoid Penguin: Using iptables for Local Security</a>.
</p>

]]></description>
</item>

<item>
  <title>TG582n - more</title>
  <link>http://www.mstevens.org/aa/tg582-3g-2.html</link>
  <description><![CDATA[
<p>
<code>gord</code> on irc worked out how to see a list of supported devices:
</p>
<pre>
Administrator}=>mobile device list
Name           : ZTE_MF627 (preconfigured)
	Storage id     : 19D2:2000
	Modem id       : 19D2:0031
	modeswitch     : 55534243123456782000000080000c85010101180101010101000000000000
	AT interface   : 1
	Data interface : 3
	Force USB 1.1  : yes

	Name           : ZTE_MF100 (preconfigured)
	Storage id     : 19D2:2000
	Modem id       : 19D2:0017
	modeswitch     : 55534243123456782000000080000c85010101180101010101000000000000
	AT interface   : 1
	Data interface : 2
	Force USB 1.1  : yes

	Name           : HUAWEI_E1690 (preconfigured)
	Storage id     : 12D1:1446
	Modem id       : 12D1:1001
	modeswitch     : 55534243000000000000000000000011060000000000000000000000000000
	AT interface   : 2
	Data interface : 0
	Force USB 1.1  : yes

	Name           : Zoom_4595 
	Storage id     : 1C9E:F000
	Modem id       : 1C9E:9603
	modeswitch     : 55534243123456788000000080000606f50402527000000000000000000000
	AT interface   : 1
	Data interface : 2
	Force USB 1.1  : yes

	Name           : H_E220 
	Storage id     : 0000:0000
	Modem id       : 12D1:1003
	modeswitch     : 
	AT interface   : 1
	Data interface : 0
	Force USB 1.1  : yes

	Name           : H_E1725Cu 
	Storage id     : 12D1:1446
	Modem id       : 12D1:1417
	modeswitch     : 55534243000000000000000000000011060000000000000000000000000000
	AT interface   : 3
	Data interface : 0
	Force USB 1.1  : yes

	Name           : H_E180 
	Storage id     : 0000:0000
	Modem id       : 12D1:1003
	modeswitch     : 
	AT interface   : 1
	Data interface : 0
	Force USB 1.1  : yes

	Name           : Alcatel 
	Storage id     : 1BBB:F000
	Modem id       : 1BBB:0000
	modeswitch     : 55534243123456788000000080000606f50402527000000000000000000000
	AT interface   : 1
	Data interface : 3
	Force USB 1.1  : yes

	Name           : Telsey 
	Storage id     : 1C9E:F000
	Modem id       : 1C9E:9603
	modeswitch     : 55534243123456788000000080000606f50402527000000000000000000000
	AT interface   : 1
	Data interface : 2
	Force USB 1.1  : yes

	Name           : ZTE_MF110 
	Storage id     : 19D2:2000
	Modem id       : 19D2:0016
	modeswitch     : 55534243123456782000000080000c85010101180101010101000000000000
	AT interface   : 1
	Data interface : 2
	Force USB 1.1  : yes

	Name           : H_E1762 
	Storage id     : 12D1:1446
	Modem id       : 12D1:140C
	modeswitch     : 55534243000000000000000000000011060000000000000000000000000000
	AT interface   : 3
	Data interface : 0
	Force USB 1.1  : yes

	Name           : H_E1752Cu 
	Storage id     : 12D1:1446
	Modem id       : 12D1:140C
	modeswitch     : 55534243000000000000000000000011060000000000000000000000000000
	AT interface   : 3
	Data interface : 0
	Force USB 1.1  : yes

	Name           : H_E1752Cu_OV 
	Storage id     : 12D1:1446
	Modem id       : 12D1:1417
	modeswitch     : 55534243000000000000000000000011060000000000000000000000000000
	AT interface   : 3
	Data interface : 0
	Force USB 1.1  : yes

	No device detected
</pre>


]]></description>
</item>

<item>
  <title>Technicolor TG582N and 3G</title>
  <link>http://www.mstevens.org/aa/tg582-3g.html</link>
  <description><![CDATA[
<p>
I just got the <a href="http://www.technicolor.com/en/hi/digital-home/mediaaccess/dsl/wireless/adsl/technicolor-tg582n">Technicolor TG582N</a> router from <a href="http://www.aa.net.uk/">A&amp;A</a>, after my previous router developed an annoying habit of dropping all my packets.
</p>
<p>
One of the things I wanted to try was getting the "3G backup" support working. This is not very well documented on the internet at the moment.
</p>
<p>
The best documentation I could find (with the help of #A&amp;A on irc) was the Be user group <a href="http://beusergroup.co.uk/technotes/index.php?title=Mobile_internet">Mobile internet</a> document.
</p>
<p>
I tried this out with an old <a href="http://www.vodafone.co.uk/">Vodafone</a> dongle - labelled as a "Vodafone Mobile Connect Model K3565 - Rev 2", but which I believe is really a badged Huawei E220.
</p>
<p>
I backed up the configuration as recommended.
</p>
<p>
I logged in via telnet and tried to run the Be documented commands. I found I had to add an initial <code>mobile ifadd</code> as the umts interface did not exist:
</p>
<pre>
{Administrator}=>mobile ifadd intf=umts
{Administrator}=>mobile ifconfig intf=umts apn=CHANGEME
{Administrator}=>ppp ifadd intf=mobilebroadband
{Administrator}=>ppp ifconfig intf=mobilebroadband dest=umts
{Administrator}=>nat ifconfig translation=enabled intf=mobilebroadband
{Administrator}=>ppp rtadd intf=mobilebroadband dst=0.0.0.0
{Administrator}=>exit
</pre>
<p>
I then went to the web interface <a href="http://192.168.1.254/_pppom_cfg.lp?be=0&l0=2&l1=2&name=mobilebroadband">http://192.168.1.254/_pppom_cfg.lp?be=0&l0=2&l1=2&name=mobilebroadband</a> - replace <code>192.168.1.254</code> with the IP address of your router, and entered the username, password, and APN. For my vodafone SIM, the username was <code>web</code>, the password was <code>web</code>, and the APN was <code>pp.internet</code>.</p>
<p>
You should then be able to fiddle around with telling the interface to connect, and unplugging the DSL. The new connection should show up under "Broadband Connection - Internet Services".
</p>
<p>
I'm not sure how to make failover work, or if anything extra is required. Since I was using a vodafone dongle, and my machines are statically configured to use A&amp;A's DNS servers, I lost working DNS.
</p>
<p>
Hopefully someone else can fill in the rest of the details to make things behave sensibly, and even try an A&amp;A SIM.
</p>
<p>
I also tried with a Huawei E367 - doesn't seem to be recognised.
</p>

]]></description>
</item>

<item>
  <title>Playing with SSHFP</title>
  <link>http://www.mstevens.org/unix/sshfp.html</link>
  <description><![CDATA[
<p>
Playing with setting up <a href="http://benctechnicalblog.blogspot.com/2011/03/sshfp-dns.html">sshfp</a> on etla.org.
</p>
<p>
Should make things a little bit more secure, although I really need to do <a href="http://www.dnssec.net/">dnssec</a> as well.
</p>

]]></description>
</item>

<item>
  <title>Gilbert U-238 Atomic Energy Lab</title>
  <link>http://www.mstevens.org/web/mlp_atomic_energy.html</link>
  <description><![CDATA[
<p>
	<a href="http://www.orau.org/ptp/collection/atomictoys/GilbertU238Lab.htm">I want one of these</a>.
</p>

]]></description>
</item>

<item>
  <title>Fuloong continued</title>
  <link>http://www.mstevens.org/lemote/fuloong_2.html</link>
  <description><![CDATA[
<p>
The fuloong experiments continue:
</p>
<ul>
<li>The 1gb memory upgrade arrived from <a href="http://www.crucial.com/uk/">crucial</a> today. Will see how this affects performance.</li>
<li>DVI output seems to be working in X now, but bizarrely the video quality is much worse than VGA. Colours are wrong, and large areas of colour appeear to be "moving".</li>
<li>Perl builds nicely and passes tests :)</li>
<li>X is faster in 16 bit colour mode, but I'm wondering if that's related to my DVI problems.</li>
<li>Firefox is by far the slowest application I've tried so far.</li>
</ul>

]]></description>
</item>

<item>
  <title>Lemote Fuloong and Debian</title>
  <link>http://www.mstevens.org/lemote/fuloong_setup_r8169.html</link>
  <description><![CDATA[
<p>
I recently bought a new <a href="https://en.wikipedia.org/wiki/Lemote#Fuloong_2_series">Lemote Fuloong</a> with the intention of running <a href="http://www.debian.org/">Debian Linux</a> on it.
</p>
<p>
I've been trying to install following the instructions at <a href="http://wiki.debian.org/DebianYeeloong/HowTo/Install">How to Install</a>, although strictly speaking they are for the Yeeloong rather than the Fuloong I'm using.</p>
<p>
Discoveries so far:
</p>
<ul>
<li>The machine comes with a RTL-8169 network interface. The wheezy netinst daily build images do not provide this driver. You can make the install work by downloading the full loongson kernel deb for wheezy, extracting r8169.ko, and packing it into the netinst initrd. Have reported this as a debian-installer bug.</li>
<li>The installer sets you up to boot grub from pmon, and linux from there. This does not seem to work. Booting linux straight from pmon is very slow but seems to actually work.</li>
<li>Whilst the system is moderately noisy, it's much quieter than discussions on irc had lead me to expect.</li>
<li>The source I bought the system from shipped a EU power cable. It appears to be a standard "C5" laptop power cable, and I was able to buy a cheap UK replacement on Amazon.</li>
<li>The DVI output does not seem to work correctly in console mode - I was unable to see the Debian installer or any boot information. This was fixed when I switched to a VGA cable.</li>
</ul>

]]></description>
</item>

<item>
  <title>I hear the cool kids call it railfanning these days</title>
  <link>http://www.mstevens.org/trainspotting/new-dlr.html</link>
  <description><![CDATA[
<p>
<a href="http://www.etla.org/new-dlr-bins/">Some photos of the new new DLR stations</a>
</p>

]]></description>
</item>

<item>
  <title>Autopilot...</title>
  <link>http://www.mstevens.org/web/mlp_distraction4.html</link>
  <description><![CDATA[
<p>
<a href="http://www.roughtype.com/archives/2011/09/on_autopilot.php">On autopilot?</a>
</p>

]]></description>
</item>

<item>
  <title>Regtools</title>
  <link>http://www.mstevens.org/web/regtools.html</link>
  <description><![CDATA[
<pre>
                _              _
 _ __ ___  __ _| |_ ___   ___ | |___
| '__/ _ \/ _` | __/ _ \ / _ \| / __|
| | |  __/ (_| | || (_) | (_) | \__ \
|_|  \___|\__, |\__\___/ \___/|_|___/
          |___/
</pre>

]]></description>
</item>

<item>
  <title>False Confessions</title>
  <link>http://www.mstevens.org/web/mlp_false_confessions.html</link>
  <description><![CDATA[
<p>
<a href="http://www.economist.com/node/21525840">People have a strange and worrying tendency to admit to things they have not, in fact, done</a>
</p>

]]></description>
</item>

<item>
  <title>Internet addiction in Korea</title>
  <link>http://www.mstevens.org/web/mlp_internet_addiction.html</link>
  <description><![CDATA[
<p>
<a href="http://www.bbc.co.uk/news/world-asia-pacific-14361420">South Korean clinic treats web addicts</a>
</p>

]]></description>
</item>

<item>
  <title>Tweetage Wasteland</title>
  <link>http://www.mstevens.org/web/mlp_tweetage.html</link>
  <description><![CDATA[
<p>
<a href="http://tweetagewasteland.com/2011/08/the-action-movie-blog-post/">Tweetage Wasteland: The Action Movie Blog Post</a>
</p>
<p>
This post is pretty good, as in fact is the entire blog.
</p>

]]></description>
</item>

<item>
  <title>Large datasets</title>
  <link>http://www.mstevens.org/web/datasets.html</link>
  <description><![CDATA[
<p>
So at the moment I'm interested in large datasets. Trying to collect some interesting links to what's out there:
</p>
<ul>
  <li><a href="http://theinfo.org/">theinfo.org: A site to discuss large data sets, although it seems quiet</a></li>
  <li><a href="http://www.ckan.net/">Comprehensive Knowledge Archive Network</a></li>
  <li><a href="http://data.gov.uk/">UK govt data site</a></li>
  <li><a href="http://data.london.gov.uk/">The London Datastore</a></li>
  <li><a href="http://www.datawrangling.com/some-datasets-available-on-the-web">Datawrangling: some datasets available on the web</a></li>
  <li><a href="http://www.ordnancesurvey.co.uk/oswebsite/opendata/">Ordnance Survey OpenData</a></li>
  <li><a href="https://secure.wikimedia.org/wikipedia/en/wiki/Wikipedia:Database_download">Wikipedia database dumps</a></li>
  <li><a href="http://pge.rastko.net/howto/mirror-howto">Project Gutenberg mirroring HOWTO</a></li>
  <li><a href="http://aws.amazon.com/publicdatasets/">Amazon Public data-sets</a></li>
  <li><a href="http://www.data.gov/">data.gov</a></li>
  <li><a href="http://www.usps.com/ncsc/addressinfo/addressinfomenu.htm?from=zclsearch&amp;page=ais&amp;WT.z_zip4link=AIS">USPS Address Information Systems products (okay, this is commercial)</a></li>
</ul>
<p>
There's obviously some duplication here in terms of sites linking to other sites, I'm highlighting stuff I thought was interesting. I'll probably update this post as I find new data that seems interesting.
</p>

]]></description>
</item>

<item>
  <title>Internets rot your brain</title>
  <link>http://www.mstevens.org/distraction/branes.html</link>
  <description><![CDATA[
<p>
<a href="http://www.scientificamerican.com/article.cfm?id=does-addictive-internet-use-restructure-brain">Brain scans hint excessive time online is tied to stark physical changes in the brain</a>
</p>
<p>
<a href="http://www.roughtype.com/archives/2011/06/more_evidence_o.php">Rough Type: Nicholas Carr's Blog: More evidence of Net's effect on the brain</a>
</p>

]]></description>
</item>

<item>
  <title>ep.io</title>
  <link>http://www.mstevens.org/python/epio.html</link>
  <description><![CDATA[
<p>
<a href="http://ep.io/">ep.io</a> are pretty cool automated python hosting.
</p>

]]></description>
</item>

<item>
  <title>Free public datasets</title>
  <link>http://www.mstevens.org/web/datasets_2.html</link>
  <description><![CDATA[
<p>
A couple more interesting links on free public datasets:
</p>
<ul>
	<li><a href="http://jacquesmattheij.com/Free%2C+Public+Data+Sets">Free, Public Data Sets</a></li>
	<li><a href="http://news.ycombinator.com/item?id=2165497">Hacker news discussion on previous link</a></li>
</ul>

]]></description>
</item>

<item>
  <title>OTP Tokens</title>
  <link>http://www.mstevens.org/unix/otp.html</link>
  <description><![CDATA[
<p>
Recently discovered <a href="http://www.gooze.eu/home">gooze</a> and their interesting variety of cryptographic products.
</p>
<p>
I bought one of their <a href="http://www.gooze.eu/otp-c100-token-event-based-1-unit">OTP C100</a> one-time-password tokens to play with. They seem to implement the <a href="http://www.openauthentication.org/">OATH</a> standards, which works nicely with a variety of software.
</p>
<p>
I decided to try to get this working on <a href="http://www.debian.org/">debian</a> with PAM as an authentication method.
</p>
<p>
So far the software I've tried to do this is <a href="http://www.nongnu.org/oath-toolkit/">oath-toolkit</a>, which provides a convenient <code>pam_oath</code> PAM module to use. I've got this working on a home debian machine for testing, requiring a one-time-password from the dongle every time I login.
</p>
<p>
Rough steps to setup:
</p>
<ol>
	<li>Install oath-toolkit as usual. You probably want to install from source or download the supplied debs, the latest version seems to be the thing to get.</li>
	<li>Run <code>ldconfig</code> - this is one thing that's not mentioned in the instructions but was needed before my machine would see the new PAM module.</li>
	<li>Put this in <code>/etc/pam.d/common-auth</code>:
<pre>
# this bit restricts oath checking to the specified user                        
# you could use a group or whatever if you had more than 1 token                
auth [default=1 success=ignore] pam_succeed_if.so quiet user = useryouwanttoauth
auth requisite pam_oath.so usersfile=/etc/users.oath window=20 digits=6
</pre>

	You should have created the <code>users.oath</code> file in the normal course of installing oath-toolkit.</li>

	<li><code>sshd_config</code> should have:
<pre>
ChallengeResponseAuthentication yes                                             
PasswordAuthentication yes                                    
</pre>
</li>
</ol>
<p>
After that, things seem to work with at least <code>sshd</code> and <code>su</code>, but I'm still testing. Annoyingly, if there's a ssh authorized_key, it seems to override password authentication totally. Ideally I'd like to combine ssh keys <em>and</em> OTP, but I haven't worked that out yet.
</p>
<p>
I've also got one of the gooze <a href="http://www.gooze.eu/otp-c200-token-time-based-h17-casing-1-unit">OTP C200</a> tokens, which looks very nice, and uses time based passwords, which I'd really rather use, but it's not supported by oath-toolkit yet.
</p>

]]></description>
</item>

<item>
  <title>Keyrings</title>
  <link>http://www.mstevens.org/aa/keyrings.html</link>
  <description><![CDATA[
<p>
More of <a href="http://www.aaisp.net/">A&amp;A</a>'s engraving work, I present <a href="http://www.etla.org/mstevens/keyrings.jpg">keyrings</a>.
</p>
<p>
Personally I think the wood one comes out much more nicely (and there's some fine detail you can't see because my camera isn't good at closeups).
</p>

]]></description>
</item>

<item>
  <title>A Round Tuit</title>
  <link>http://www.mstevens.org/aa/roundtuit.html</link>
  <description><![CDATA[
<p>
After much popular demand from irc I am pleased to supply a photo of a <a href="http://www.etla.org/mstevens/roundtuit.jpg">round tuit</a>. Well actually 4 of them.
</p>
<p>
An example of the fine <a href="http://www.aaisp.net/engraving.html">Laser Engraving Services</a> from <a href="http://www.aaisp.net/">Andrews &amp; Arnold</a>.
</p>

]]></description>
</item>

<item>
  <title>The Great IPv4 Countdown</title>
  <link>http://www.mstevens.org/unix/ipv4_countdown.html</link>
  <description><![CDATA[
<p>
<a href="http://ipv6.he.net/statistics/">There's not much IPv4 left</a>, it should be an interesting transition.
</p>

]]></description>
</item>

<item>
  <title>Cabell</title>
  <link>http://www.mstevens.org/web/cabell.html</link>
  <description><![CDATA[
<p>
<a href="http://message-to-the-world.blogspot.com/2009/01/its-not-about-becoming-saint_29.html">Cabell de Marcellus</a>
</p>

]]></description>
</item>

<item>
  <title>Is multi-tasking a myth?</title>
  <link>http://www.mstevens.org/web/mlp_multitasking_myth.html</link>
  <description><![CDATA[
<p>
<a href="http://www.bbc.co.uk/news/magazine-11035055">Is multi-tasking a myth?</a> (BBC News article)
</p>

]]></description>
</item>

<item>
  <title>Luddite news</title>
  <link>http://www.mstevens.org/luddite_news.html</link>
  <description><![CDATA[
<ul>
	<li><a href="http://www.paulgraham.com/addiction.html">The acceleration of addiction</a></li>
	<li><a href="http://www.whattofix.com/blog/archives/2009/02/technology_is_h.php">Technology is heroin</a></li>
	<li><a href="http://www.roughtype.com/archives/2010/07/tradeoffs.php">Tradeoffs (an interview about The Shallows)</a></li>
</ul>

]]></description>
</item>

<item>
  <title>aasms 0.6</title>
  <link>http://www.mstevens.org/python/aasms0.6.html</link>
  <description><![CDATA[
<p>
Released <a href="http://github.com/mstevens/aasms">aasms 0.6</a> with a few bugs fixed, and support for the new iccid based direct-to-SIM stuff.
</p>

]]></description>
</item>

<item>
  <title>aasms v0.4</title>
  <link>http://www.mstevens.org/python/aasms0.4.html</link>
  <description><![CDATA[
<p>
More aasms hacking, <a href="http://github.com/mstevens/aasms">v0.4</a> can now get the username and password from a config file, so you don't have to have them in the process name. (which is more or less why I started the whole exercise)
</p>

]]></description>
</item>

<item>
  <title>aasms and nagios</title>
  <link>http://www.mstevens.org/python/aasms-nagios.html</link>
  <description><![CDATA[
<p>
Finally setup my <a href="http://github.com/mstevens/aasms/">aasms</a> module with <a href="http://www.nagios.org/">nagios</a>, which was really the point of the whole exercise.
</p>
<p>
First, define some new notification commands more or less like this:
</p>
<pre>
define command{
	        command_name    notify-host-by-sms
			command_line    send-aa-sms --file=/etc/nagios3/aasms.config -d $CONTACTEMAIL$ -m "***** Nagios *****Notification Type: $NOTIFICATIONTYPE$ Host: $HOSTNAME$ State: $HOSTSTATE$ Address: $HOSTADDRESS$ Info: $HOSTOUTPUT$ Date/Time: $LONGDATETIME$"
}

# 'notify-service-by-email' command definition
define command{
	        command_name    notify-service-by-sms
		    command_line    send-aa-sms --file=/etc/nagios3/aasms.config -d $CONTACTEMAIL$ -m "***** Nagios *****Notification Type: $NOTIFICATIONTYPE$ Service: $SERVICEDESC$ Host: $HOSTALIAS$ Address: $HOSTADDRESS$ State: $SERVICESTATE$ Date/Time: $LONGDATETIME$ Additional Info: $SERVICEOUTPUT$"
}
</pre>
<p>
<code>/etc/nagios3/aasms.config</code> should be replaced with an appropriate config file for aasms readable only by nagios. Then define a new contact:
</p>
<pre>
define contact{
		contact_name                    mstevens-sms
		alias                           Michael Stevens (SMS)
		service_notification_period     24x7
		host_notification_period        24x7
		service_notification_options    w,u,c,r
		host_notification_options       d,r
		host_notifications_enabled      1
		service_notifications_enabled   1
		service_notification_commands   notify-service-by-sms
		host_notification_commands      notify-host-by-sms
		email							your_mobile_here
}
</pre>
<p>
Just add this contact to appropriate groups, and you should now get SMS notification of outages.
</p>
<p>
The key advantage of all this over the curl example on the A&amp;A site is that you don't have to put your account details in the process name, and they can live privately in a nice config file instead.
</p>

]]></description>
</item>

<item>
  <title>Proc::InvokeEditor v.103</title>
  <link>http://www.mstevens.org/perl/proc-invokeeditor-1.03.html</link>
  <description><![CDATA[
<p>
Very minor tweaks to <a href="http://search.cpan.org/dist/Proc-InvokeEditor/">Proc::InvokeEditor</a>, created a <a href="http://github.com/mstevens/Proc--InvokeEditor">github repository</a> for it, and uploaded the shiny new to <a href="http://www.cpan.org/">CPAN</a>.
</p>
<p>
While I was there, noticed some very old versions of some modules I had on CPAN, and deleted them.
</p>

]]></description>
</item>

<item>
  <title>Distraction continued</title>
  <link>http://www.mstevens.org/distraction/hooked.html</link>
  <description><![CDATA[

<p>
<a href="http://www.nytimes.com/2010/06/07/technology/07brain.html?pagewanted=1">Hooked on gadgets, and paying a mental price</a>
</p>

<p>
(the cynic in me suggests the recent surge in articles on this topic is related to the forthcoming book from Nicholas Carr)
</p>

]]></description>
</item>

<item>
  <title>More on distraction</title>
  <link>http://www.mstevens.org/web/mlp_distraction3.html</link>
  <description><![CDATA[
<p>
<a href="http://www.wired.com/magazine/2010/05/ff_nicholas_carr/all/1">Author Nicholas Carr: The Web Shatters Focus, Rewires Brains</a>
</p>

]]></description>
</item>

<item>
  <title>aasms 0.2</title>
  <link>http://www.mstevens.org/python/aasms0.2.html</link>
  <description><![CDATA[
<p>
Further SMS hacking, added a command line script, now available at <a href="http://github.com/mstevens/aasms">aasms 0.2</a>.
</p>

]]></description>
</item>

<item>
  <title>Multitasking still considered bad</title>
  <link>http://www.mstevens.org/web/mlp_multitasking_still_bad.html</link>
  <description><![CDATA[
<p>
<a href="http://blogs.hbr.org/bregman/2010/05/how-and-why-to-stop-multitaski.html">How (and Why) to Stop Multitasking</a>
</p>
<p>
(Yes, I know I keep going on about this every 5 minutes to anyone who'll stand still long enough)
</p>

]]></description>
</item>

<item>
  <title>aasms</title>
  <link>http://www.mstevens.org/python/aasms.html</link>
  <description><![CDATA[
<p>
Hacking a bit on some <a href="http://www.python.org/">Python</a> code to talk to <a href="http://www.aaisp.net.uk/">A&amp;A's</a> SMS service.
</p>
<p>
Doesn't really do much yet, but put up a <a href="http://github.com/">github</a> repo to play with at <a href="http://github.com/mstevens/aasms">http://github.com/mstevens/aasms</a>.
</p>

]]></description>
</item>

<item>
  <title>Leaving Unite</title>
  <link>http://www.mstevens.org/union/leaving_unite.html</link>
  <description><![CDATA[
<p>
After many years of membership, first of Amicus, then of <a href="http://www.unitetheunion.com">Unite</a>, I've now left and am no longer a union member.
</p>
<p>
I like the idea of union membership to some degree, but I thought, amongst other things, the phone call telling me to vote for Gordon Brown was the last straw.
</p>

]]></description>
</item>

</channel>
</rss>
