bitmeteros
bitmeteros copied to clipboard
Configurable alert notification
eg run a shell command when an alert is triggered, this would require some server-side monitoring of alerts - currently only the web client checks them
Also reported on http://codebox.org.uk/forum/posts/list/35723.page#53355 ; this need comprise of
- a place to keep those ongoing aggregated stats
- periodically accumulating new data into those stats counters
- checking those stats for exceeding thresholds
- running an action (e.g. the shell script)
The main sourcecode is in C (a barrier for me)
(At least on a Mac) the record entry stats are held in SQLite (/Library/Application Support/BitMeter/bitmeter.db)
SQLite does permit the creation of triggers http://www.sqlite.org/lang_createtrigger.html though, so that could (assuming SQLite is used on all platforms) be the lightest-weight and easiest threshold implementation.
I assume there would be some mechanism for registering a method to be called on that.