Updated monitoring to work on ubuntu