Generate an alert when accessing a stopped service

1781
18
07-25-2023 02:44 AM
Lerman
by
Occasional Contributor

Imagine a common scenario: a map service has stopped, perhaps due to some accident. However, the application is still using the service, and when it accesses the service, it gets a request response of 500:[ Error: Service XXX/MapServer not started Code: 500.]  ArcGIS Server generates a log with the warning level:[ Unable to process request. Service XXX/MapServer not started.]  In this case, I think ArcGIS Monitor should generate an alert so that the administrator can check the status of the service in time to avoid serious consequences. Surprisingly, ArcGIS Monitor does not generate any alerts for this case. (Is this correct? Is there an additional setting that I didn't notice?)

I tried to analyze this problem, and I think there are two reasons, the first reason is that ArcGIS Monitor doesn't count this kind of failed requests as failed requests, so even though I added the Request Failed(req) Metrics, it still didn't generate any alert. The second reason is that ArcGIS Monitor does not generate alerts for ArcGIS Server warning level logs. I know that earlier versions such as ArcGIS Monitor 10.8.1 could generate alerts for different levels of logs, however, for version 2023.1, I did not find such a setting.

Any suggestions please? I would like ArcGIS Monitor to be able to generate alerts for this situation.

Thank you!

18 Replies
GeoJosh
Esri Regular Contributor

Hello, ArcGIS Monitor does not yet open alerts based on component logs. This is a feature that has been requested by a few users and is on our road map. Please vote for this feature so the development team can gauge interest in it.

ArcGIS Monitor 2023.3 will introduce a new "disconnected" or "unreachable" status. This will be tracked in a new metric in which alert rules can be configured on.

Josh

Lerman
by
Occasional Contributor

@GeoJosh 

Thank you very much, Josh! I really want to continue to confirm a few questions with you. ArcGIS Monitor does not count these requests as failed requests, so the current version of arcgis monitor cannot generate alerts, right? There is no other solution in the current version, right? In addition, when will version 2023.3 be released? Do you have any news? Thanks again!

0 Kudos
GeoJosh
Esri Regular Contributor

Hi @Lerman,


ArcGIS Monitor does not count these requests as failed requests, so the current version of arcgis monitor cannot generate alerts, right? There is no other solution in the current version, right?


You can be notified via e-mail and webhook when a service is stopped by creating a new custom notification with the following configuration:

GeoJosh_0-1690383796594.png

  • For "Operations", choose "Updated"
  • For ID, specify the ID of the service component.

In addition, when will version 2023.3 be released?


We have not yet settled on an exact release date for 2023.3.

Josh

IrisHadarStltd
New Contributor III

Hi ,
I tried to create the NOTIFICATION as you explained, but after saving, the system omits the condition of System state is stopped

IrisHadarStltd_0-1691578177925.png

IrisHadarStltd_1-1691578225287.png

 

PatrickKielty
New Contributor III

Did you ever find a solution to this issue? I am trying to do the exact same thing and the 'stopped' rules is gone after I click save. Also, not sure why we have to type the value into the value box when it should be populated. Thanks

0 Kudos
ChrisRobinsonCOF
New Contributor III

Josh,

I was able to set up this notification like you have configured for a single service.  Is it possible to set this up for multiple services instead of each individual service having to have a notification tied it?  I was thinking maybe through a collection of all our maps services but when I choose the collection resource type, System State isn't presented as an option.

**UPDATE- Monitor version is 2023.3.1

Thank you,

Chris

0 Kudos
PhilLarkin1
Occasional Contributor III

Are you on Monitor 2023.3?

You could try to set a condition based on Name + Contains + selection of service names. Or ID + Is Any Of + IDs you need.

PhilLarkin1_0-1707937139512.png

 

ChrisRobinsonCOF
New Contributor III

Thank you Phil for the idea.  Yes, I am on monitor 2023.3.1. That does seem to work for me but I have a few servers registered that have the same folder structure and map service name. If I stop a service on one server that has a duplicate name and folder structure from another, a notification doesn't get generated. If they are duplicated, the drop down list doesn't seem to recognize those duplicates by server so I am looking for a way to create a notification by server.  I came up with this definition below, the logic seems sound but I am not getting a notification result if I stop a service:

 

Chris_Robinson_COF_0-1708461831983.png

 

Thank you,

Chris

 

0 Kudos
PhilLarkin1
Occasional Contributor III

I've not used Internal Address. Curious if it is actually want you want to target. The description of that component is 'The common network address.'

https://doc.arcgis.com/en/monitor/latest/get-started/windows/arcgis-monitor-information-model.htm

0 Kudos