fix parsing in monit module

Fixes #10041 

 - do not process empty lines
  - make sure data is there.