|
POST
|
Thanks @Brian_Wilson ! Hopefully some more people will add suggestions like yours. Bernie.
... View more
02-06-2024
09:41 AM
|
0
|
0
|
2838
|
|
POST
|
Brian, We have a similar ASP.NET page that we display in a simple ExB app that refreshes every 7 minutes and gives us a visual of map services that are failing. It's just a list of map services in a table. When a service fails it appears in red text in the list. Using a python script like you would probably be more useful. Can you share a copy of your script? Bernie.
... View more
02-05-2024
03:01 PM
|
0
|
0
|
2880
|
|
POST
|
Hello, We are not in a position to purchase ArcGIS Monitor - we are considering other monitoring software options. In the meantime I am looking for suggestions on using python scripts to monitor ArcGIS Server. I am working on a python script that will routinely query the ArcGIS Server logs for the most recent 1000 log messages. What patterns can I detect in the logs that will indicate a problem? Our enviroment is open to the public and it runs on virtual machines (Windows Server 2016) in our own data centre. We do not use an enterprise geodatabase. All of our data is read-only and served from File Geodatabases - no editing is permitted. Our site typically receives 1,000,000 requests per day. We have 3 ArcGIS Servers sharing the load in a single site. Occassionally, one of the three servers will stop responding to requests and flood the logs with messages. The web adaptors don't detect the problem so the effect is that 1 out of 3 requests will fail. We often do not notice the problem until a user reports an error. Currently, my script will look at the balance of the messages coming from the 3 servers. They should each contribute ~333 messages out of 1000. However, this varies by a few 100 messages. I know from examining the logs during past occurrences that one server will contribute nearly all 1000 messages when it is malfunctioning. I am planning to use 800 out of 1000 mesages generated by a single machine as a threshold to indicate there is a problem. Another condition I am monitoring is the duration in seconds between the 1st log message and the 1000'th log message. Current monitoring shows the duration can range from 5000 to 70,000 seconds. During the two most recent occurrences the duration was reduced to 40 and 90 seconds. I am considering a threshold of 1000 seconds duration to indicate there might be a problem. If either of these conditions are met email alerts will be sent. In my experience a simple stop / start of the misbehaving server will quickly return performance back to normal levels. In your experience, what are some other conditions that can be detected in the ArcGIS Server logs? Thanks, Bernie. P.S. Here are some smaple stats (in CSV) from the python script I am building: DATE, TIME, DURATION, NODEA_MESSSAGES, NODEB_MESSSAGES, NODEC_MESSSAGES, MAX_DRAW_TIME, AVG_DRAW_TIME, MIN_DRAW_TIME, MAP_DRAWS 2024-02-01, 15:45, 9887, 326, 379, 295, 0.98988, 0.14948588888888886, 0.01422, 90 2024-02-01, 15:50, 8132, 295, 398, 307, 0.97084, 0.14198474137931036, 0.00576, 116 2024-02-01, 15:50, 10425, 463, 333, 204, 0.82525, 0.23391200000000012, 0.02613, 95 2024-02-01, 16:36, 16022, 351, 322, 327, 2.56564, 0.21938160919540237, 0.01393, 87 2024-02-01, 16:40, 9383, 378, 352, 270, 0.97073, 0.13698309734513278, 0.01551, 113 2024-02-01, 22:17, 17915, 269, 383, 348, 0.37303, 0.10854188235294118, 0.01472, 85 2024-02-01, 22:30, 26976, 221, 417, 362, 0.39142, 0.11690624999999995, 0.02177, 112 2024-02-01, 22:33, 14758, 254, 372, 374, 0.52373, 0.10919143939393938, 0.01306, 132 2024-02-01, 22:45, 26553, 251, 376, 373, 0.77659, 0.09833545454545461, 0.01493, 121 2024-02-01, 23:00, 51258, 216, 367, 417, 0.88067, 0.11203641509433963, 0.01489, 106 2024-02-01, 23:15, 72957, 236, 376, 388, 1.8946, 0.1751447115384615, 0.01602, 104 2024-02-01, 23:30, 62913, 258, 360, 382, 0.41343, 0.07835200000000005, 0.01341, 120
... View more
02-05-2024
12:55 PM
|
0
|
7
|
2952
|
|
IDEA
|
I was in the same boat as you and only created one or two scripts per year. But ChatGPT makes it really easy to quickly find all the answers to your Python questions. No need to Google or search through documentation. The script I am working on is for monitoring our ArcGIS Server log files. (ArcGIS Monitor is too expensive). I found a sample script from Esri that can read messages from the logs. Then I started asking questions in ChatGPT to help me make the modifications. Give it a try. If you have ArcGIS Notebooks in your ArcGIS Enterprise deployment you can write your Python code there and there is a built in scheduler to run your Notebook to check for changes in the domain values.
... View more
02-01-2024
11:28 AM
|
0
|
0
|
1391
|
|
POST
|
@Dan_Brumm I knew it would be easy in an ArcGIS Notebook! @mshanaghan The other nice feature of ArcGIS Notebooks - there is a built in scheduler to run your script. Bernie.
... View more
02-01-2024
07:35 AM
|
0
|
0
|
2199
|
|
POST
|
Hi @mshanaghan. Do you have ArcGIS Notebooks in your Enterprise Portal? That would be a great place to create a script to download and backup your feature layer. Here is a huge list of sample notebooks to get you started - https://developers.arcgis.com/python/samples/ And don't forget that ArcGIS Online can also be used as a cloud storage system. It should be easy to use an ArcGIS Notebook to move a copy of your feature layer from Enterprise Portal to ArcGIS Online. Bernie.
... View more
02-01-2024
06:35 AM
|
0
|
0
|
2227
|
|
IDEA
|
Yes, but there is no better feeling then rolling your own custom solution in python and it works just the way you intended. I am working on a python script right now.
... View more
01-31-2024
04:23 PM
|
0
|
0
|
1445
|
|
IDEA
|
Hey Bud, I imagine you could create a python script to run on a schedule to read the domain values and compare them to the known values and then take the necessary action to send a notification and update the list of known domain values. Good luck, Bernie.
... View more
01-31-2024
03:39 PM
|
0
|
0
|
1491
|
|
POST
|
Kevin, I had a similar problem deleting a member from ArcGIS Online. This post helped me solve the problem - https://community.esri.com/t5/arcgis-online-questions/cannot-delete-member-user-id-arcgis-online/td-p/63205 Good luck, Bernie.
... View more
01-22-2024
08:21 AM
|
0
|
0
|
1431
|
|
POST
|
Excellent work Scott discovering the corrupted xml errors in the item info. This is great info to have on the community forum. Bernie.
... View more
01-17-2024
03:31 AM
|
0
|
0
|
5203
|
|
POST
|
It is bad practice to use the SQL wildcard character ("%") in database table names or column names. Changing your table names and column names would be a good idea but it may not be practical if you have many systems that already reference your tables and columns. Bernie.
... View more
01-11-2024
12:16 PM
|
1
|
1
|
2007
|
|
DOC
|
@Jianxia I agree with @DustinEdge_Boroondara. Even simple widgets like "My Location" and "Share" pale in comparison to their WAB counterparts. The Share widget in ExB doesn't even maintain the bounding box of your current map view - It's completely useless as a "Share" widget. It's no better than copying the URL from the address bar. Bernie.
... View more
01-09-2024
05:20 AM
|
0
|
0
|
20868
|
|
POST
|
The sample compact cache served by Mapproxy worked for me. Bernie.
... View more
12-13-2023
09:21 AM
|
0
|
0
|
2588
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | a week ago | |
| 2 | a week ago | |
| 1 | 06-04-2026 12:17 PM | |
| 1 | 02-24-2026 06:27 AM | |
| 2 | 02-24-2026 06:03 AM |
| Online Status |
Offline
|
| Date Last Visited |
yesterday
|