Multihost load balanced SMS messages with gnokii
I am finishing writing a program called pysmsqueue that can manage to send SMS text messages through phones on multiple hosts or multiple phones on multiple hosts. There for handles load balancing, e.g. sending multiple messages at the same time. The code works pretty much for me but should be considered beta quality. You can have a look at the source in my trac.
The reason for writing it is that I needed something more than the gnokii-smsd that can handle failures of phones. I’m using this as a messaging system for Nagios so it needs to be highly available.
I’m expecting to release a setup file with RPM’s pretty soon.
You can do a subversion checkout with
svn co http://tommi.org/repos/tommi/trunk/pysmsqueue
Tags: gnokii, nagios, open source, sms, text message
November 7th, 2008 at 9:53 am
when i run the pysmsqueue from the terminal i got an error:
File “pysmsqueue.py”, line 609
“”"
^
IndentationError: expected an indented block
Please help me I”m just new in Python and I don’t understand this completely.
I just downloaded your file and put in my server to run for a test and that’s what happen.
Any help and assistant will be greatly appreciated. thanks in advance.
November 7th, 2008 at 9:55 am
I tried adjust the the block indentation from tab to 4 spaces staring from line 609 below but with no avail.
I’m using ubuntu hardy server
November 11th, 2008 at 1:01 am
Hi Eric
The createdb function still doesn’t do anything. I changed the indentation so it will run if you download the latest version from subversion.
November 14th, 2008 at 12:53 pm
ok thanks I’ll give a try again. more power!!!