Script function SYS_HOST_ALIVE can be used to check the status on an agent. This can be used with a timed event object to periodically check the status of an agent.
Example script used in the !Process tab of a timed event. This will check if the agent is active and if not it will activate a notification object:
:SET &STATUS# = SYS_HOST_ALIVE("<agent here>", )
:IF &STATUS# ='N'
:SET &ACT#= ACTIVATE_UC_OBJECT("ALARM.AGENT.DOWN")
:ENDIF
Another possibility is using SYS_HOST_ALIVE with MODIFY_SYSTEM to automate the restart of an agent. For example:
:SET &STATUS# = SYS_HOST_ALIVE("<agent here>", )
:IF &STATUS# ='N'
: SET &START# = MODIFY_SYSTEM ("STARTUP", "Agent")
:ENDIF