cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Alerting on a process needing a restart

Kulraj_Atwal
Participant

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.

11 REPLIES 11

jiri_stefanek
Frequent Guest

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.

Yosi_Neuman
DynaMight Leader
DynaMight Leader

Hi @Kulraj_Atwal,

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).

HTH

Yos 

dynatrace certificated professional - dynatrace primer partner - Matrix Soft Ware Division - Israel

Kulraj_Atwal
Participant

Problem with that is that (apart from creating the extension) is that it also shows true for processes that are injected but need a restart due to the agent being updated.

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. 🙄

HTH

Yos

dynatrace certificated professional - dynatrace primer partner - Matrix Soft Ware Division - Israel

Kulraj_Atwal
Participant

Thanks @Yosi_Neuman, worst case we may have to develop that solution.

Although being as we pay Dynatrace so much i was hoping they might develop something we can all use to alert on it ootb 🙂

Hi @Kulraj_Atwal 

 

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

Yosi_Neuman_1-1653493759136.png

HTH

Yos 

dynatrace certificated professional - dynatrace primer partner - Matrix Soft Ware Division - Israel

Thanks @Yosi_Neuman i will have  a look at this and report back.

jiri_stefanek
Frequent Guest

How would you work with this status below?
Process isn't monitored
Process is ready to be monitored, waiting for injection status...

Is there any way to list only these processes via API and create an alert for them?

Hi @jiri_stefanek 

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

 

Yosi_Neuman_0-1653471881760.png

HTH

Yos 

 

dynatrace certificated professional - dynatrace primer partner - Matrix Soft Ware Division - Israel

Yeah those 2 links dont answer my question, thanks though 🙂