Access host variables in custom agent based plugin

Nope… I ended up doing a local check: http://localhost:51000 in the monitored host.