Using dstat with scripts and external modules