Get the graph (performance data) for a custom Nagios plugin

Thank for this advice but the goal is to not use the agent because this custom Nagios plugin checks a specific status of internet service, not of a host.

If I use the agent to execute this custom script (MRPE or local check), custom check will be associated with this agent-based host.

Maybe, is there a way to associate the HostA service to the HostB?

Thank you,
Sean