bitmeteros icon indicating copy to clipboard operation
bitmeteros copied to clipboard

Configurable alert notification

Open codebox opened this issue 13 years ago • 2 comments

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

codebox avatar Mar 18 '12 17:03 codebox

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)

mrjcleaver avatar Jul 06 '13 17:07 mrjcleaver

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.

mrjcleaver avatar Jul 06 '13 18:07 mrjcleaver