trivial fix for get-hosts on 2.0.x

It seems getMonitor was removed on 2.0.x,

i am using this version on 2.0.3 (latest atm) and it is ok.