7.0 monitoring

port MP from https://code.launchpad.net/~camptocamp/server-env-tools/7.0-monitoring/+merge/215138 as requested as part of #35 
This script is far too long, could you please split it per class/model.