5

I have ArcGIS 10.7.1 feature services that occasionally fail/have errors.

The feature services are used to integrate/sync records to a separate work order management system. As such, the broken feature services can go unnoticed for some time, which is a problem.

Is there a way to get notified if feature services in a web service fail?

4
  • 1
    Only if you create a web app to test if the service returns results, and send an e-mail it it doesn't.
    – Vince
    Commented Nov 3, 2019 at 1:07
  • Related: gis.stackexchange.com/q/339846/135445
    – User1974
    Commented Nov 11, 2019 at 7:35
  • The process of writing a daemon process that wakes occasionally, invokes a few URLs, and sends mail if any services fail is more of a generic software engineering task, and would fit more naturally in Stack Overflow proper.
    – Vince
    Commented Nov 11, 2019 at 11:59
  • 1
    There are a wide variety of systems monitoring tools available (eg, zabbix.com ), including some online ones that you can subscribe to (eg anturis.com ). They would be overkill if you don't need them for anything else, so you could just build your own if you only need to monitor one type of service, as suggested by @Eoin . Commented Nov 13, 2019 at 5:19

1 Answer 1

3
+50

You could write a Python script that periodically performs a simple query on ESRI REST API for these feature layers.

This thread should be useful for performing the query on the API from Python. How to query an ArcGIS Feature Service by attribute using Python?

Then use smtplib to send yourself an email in the event that the query fails: https://docs.python.org/3/library/smtplib.html#smtp-example

Finally, depending on the platform that you work with, use windows task scheduler or Linux/ mac crontab to periodically run the script.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.