HiltonGiesenow / PoShMon

A PowerShell-based server and farm monitoring solution
MIT License
56 stars 15 forks source link

For Office Online Server monitoring, add a Repair for starting World Wide Web service #208

Closed HiltonGiesenow closed 6 years ago

HiltonGiesenow commented 6 years ago

If the service is down, the following exception will occur:

There was no endpoint listening at http://[server name]:809/farmstatemanager/FarmStateManager.svc that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details.

We can trap for this and try a remote restart of the service

HiltonGiesenow commented 6 years ago

something like

Invoke-Command -Session $remoteSession -ScriptBlock { Start-Service -Name W3SVC }

HiltonGiesenow commented 6 years ago

done, in next release