Using custom agents in zones

Last published : Jun 10, 2026
If you use custom agents, review the following information for their use in zones:
  • If you use custom agents to monitor the applications that run in zones, you can use C++ or script-based entry points.
  • If you want the custom agent to monitor an application in the zone, for the custom agent type, set the following values for the ContainerOpts attribute: RunInContainer = 1 and the PassCInfo = 0.
  • If you don't want the custom agent to monitor an application in the zone, for the custom agent type, set the following values for the ContainerOpts attribute: RunInContainer = 0 and the PassCInfo = 0.
  • Two main use cases exist where you might want to use a RunInContainer = 0 and PassCInfo = 1, descriptions of these follow.
    • The first is the Zone agent's use of these values. The Zone agent's entry points cannot run inside of the non-global zone but the agent itself manages the zone. RunInContainer requires a value of 0 because the agent must run in the global zone. PassCInfo has a value of 1 because the Zone agent requires the name of the container from the ContainerInfo service group attribute.
    • The second case is how the IP agent uses RunInContainer and PassCInfo. The IP agent's entry points must run outside of the non-global zone because a shared-IP zone may cause the networking stack to not completely run in the non-global zone. You cannot perform an ifconfig command and then plumb the IP from inside of a non-global zone. When you run the ifconfig command in the global zone with the zone option - it plumbs the IP and makes it available to the zone that you specify. The need for the container's name comes from the use of this command, even though it cannot run in the container. This is applicable to all networking agents.
If the non-global zone is of type exclusive IP zone, the agent runs the script based entrypoints inside the non-global zone if the zone is in running state. The agents runs the script based entrypoints in global zone if the zone is not in running state.
For NIC assigned to exclusive IP Zone and IP to be plumbed inside exclusive IP zone you can set ExclusiveIPZone attribute available to NIC and IP resources.