I wrote a tutorial on how to write statefull scripts in Lua on my blog. ''Stateful scripts are a simple yet powerfully way to enhance your monitoring which I think is used far to little. Using stateful script you can easily add simple predictions and change management. This is very ...