Fri, 18 Mar 2011 are pretty cool automated python hosting.

[11:16] | [] |

Sun, 11 Jul 2010

aasms 0.6

Released aasms 0.6 with a few bugs fixed, and support for the new iccid based direct-to-SIM stuff.

[22:15] | [] | aasms 0.6

Mon, 14 Jun 2010

aasms v0.4

More aasms hacking, v0.4 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)

[21:45] | [] | aasms v0.4

aasms and nagios

Finally setup my aasms module with nagios, which was really the point of the whole exercise.

First, define some new notification commands more or less like this:

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$"

/etc/nagios3/aasms.config should be replaced with an appropriate config file for aasms readable only by nagios. Then define a new contact:

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

Just add this contact to appropriate groups, and you should now get SMS notification of outages.

The key advantage of all this over the curl example on the A&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.

[21:44] | [] | aasms and nagios

Wed, 26 May 2010

aasms 0.2

Further SMS hacking, added a command line script, now available at aasms 0.2.

[19:23] | [] | aasms 0.2

Tue, 25 May 2010


Hacking a bit on some Python code to talk to A&A's SMS service.

Doesn't really do much yet, but put up a github repo to play with at

[22:01] | [] | aasms

< March 2011 >
   1 2 3 4 5
6 7 8 9101112

Contact: Michael Stevens <>

RSS: RSS feed

Atom: Atom feed

Valid XHTML 1.0!

Valid CSS!