[TriLUG] open source code project curiosity?

David McDowell turnpike420 at gmail.com
Tue Jun 14 14:37:42 EDT 2005


Hi all.  I guess you could class this as an open source project.

http://www.turnpike420.net/linux/iTHX-M/

Anyway, some discussion came up recently and a couple tips from a few
TriLUG members on IRC were suggested, so I just updated the scripts. 
The code is a bash script that uses netcat to gather data from an
ethernet connected iTHX-M in our server room which monitors
temp/humidity.  It writes the data to a daily text file (runs every 10
minutes in a cron job).  It also calls a PHP script which dumps the
data into our database.  Yes, the db is MSSQL, sorry.  :)  We then use
jpgraph to do nifty dynamic PNG graphs from the data, example here:

http://www.turnpike420.net/~dmcdowell/ithxm24.png  (This is a sample I
saved to use for sharing the other day.  I don't really mention the
graphing part in my project either, since there are so many ways to
graph from a given data set and all.)

In a Google search, "ithx-m linux", my little mini-project is the
first hit. (quotes not necessary).   :p

Our PHP script internally goes a step further adding range checking to
the temp/humidity.  If temp above x, text alert to our mobile phones,
if temp above y, text warning to our mobile phones, same with the
lower limits... and same both upper and lower with humidity.  I chose
not to include this in my shared PHP script b/c it means I'd have to
get into explaining the database columns setup, why/how to choose
operating ranges of your equipment, etc., not to mention we use MSSQL,
so I'm sure to catch rants for that.  It also doesn't continuously
text us, so if an alert already exists, it won't send a text alert
again for z number of times unless it becomes a warning, blah blah for
each case.  If the alert status clears itself or changes to warning,
the z counter resets.

What I was really curious about is what do people think about how I've
maintained my notes so far?  Do I need to create a sourceforge project
for something like this?  Keep going the way I have and be happy with
that?  Foo?

thanks,
David McD



More information about the TriLUG mailing list