When a process needs restarting for injection to complete, there's no way of us knowing until we manually check via the UI or an API call. Is there a way to alert on this issue so we know when processes are not correctly monitored.
hi, I'd be very interested to know how to find this out, by pure coincidence we've noticed this issue on a couple of processes - See below
Process isn't monitored
Process is ready to be monitored, waiting for injection status...
If there is some way to be informed of this status, I would appreciate it.
You can check your processes that need to be restart with Processes API - GET all processes which returns under MonitoringState a Boolean element called restartRequired.
You can set alert into dynatrace with Events API v2 - POST an event
In order to run it automatically every minute you can create Active Gate extension (v1).
Good point @Kulraj_Atwal
To eliminate those you can check if the agent version of the process instance is different then the one on the host. 🙄
Please check the attached AG extension.
** Please be aware that its a quick and dirty one ,which checked only on sand box environment **
It browses all processes and if there is a a process marked as restartRequired its look for the Host OA version and compere it with the process OA version, if the versions are not equals CUSTOM_ALERT is set with 'Need to restart' message, if the version are equals AVAILABILITY_EVENT is set with 'Must restart" message.
Both events are set for 2 minutes timeout so it will close automatically after restartRequired is change to False.
Here is one problem open after upgrading OA and not restating the Outlook
IMO Its a combination of expectedMonitoringState and actualMonitoringState elements under monitoringState
Process isn't monitored = expectedMonitoringState = OFF
Process is ready to be monitored, waiting for injection status = actualMonitoringState = OFF & expectedMonitoringState = ON
Alerts on availability using the alerting profiles.