Is there any tools or scripts to start ArcGIS server 10.1 services automatically when the services are stop?
I found Example: Stop or start all services in a folder . It was very useful for the purpose . If you want to start automatically just change some of items in this sample and run in task scheduler of windows .
It should be fairly simple:
- Use a tool to monitor the ArcGIS service. For example Nagios or a member of its ilk.
- When the service ceases to respond, have a script run automatically (such as the one you found) that restarts it.
Restarting ArcGIS service involves using ArcGIS Rest Admin API and ability to authenticate using token-based authentication with ArcGIS server. One way to do it is to write a script/program to monitor the ArcGIS Service and in the event service is found stopped restart it , schedule it to run periodically. But it gets cumbersome when you have to monitor more and more services and servers. As far as I know, iGeoAsset is the only tool available that has the capability to monitor an ArcGIS server service and restart it automatically via token-based authentication.