Relay question

(imported topic written by symbios91)

If i installed an agent and relay into DMZ where only the relay can talk to the TEM server, can i have the agent not try to contact TEM server at all?

Reason is i noticed that when the relay in DMZ went down, the agent will try the relay followed by the TEM server and after some time, the logs showed that it keeps on trying the TEM server and not the relay. It somehow caused the agent not to report back for 4 days although the relay came back within 1 day. Would appreciate if anyone has a solution or workaround for this.