Access host variables in custom agent based plugin

Thanks for your answers!

I’m not sending the host IP because it may be several IP address in the host, and I’m interested in the one that CheckMK server has configured for monitoring that host.

I understand the limitation. I suppose I will be doing a local check then, because I want this to be automated when I deploy the agent, and in check_http service I will still need to manualy enter the port.

Regards