How to create action that restarts IIS

All questions related to installations, configurations and maintenance of Advanced Host Monitor (including additional tools such as RMA for Windows, RMA Manager, Web Servie, RCC).
Post Reply
mrw
Posts: 187
Joined: Mon Oct 08, 2012 6:11 am

How to create action that restarts IIS

Post by mrw »

Hi,
I have set up a "URL request" test to monitor a specific site to see if its working or not. The test works fine.

But what would be the easiest(best) way to configure an action that does a "IISreset" on that specific server when the alarm triggers?


Thanks in advance,
//Andreas..
KS-Soft
Posts: 12887
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Restart w3svc service?
You may use Restart Service action
https://www.ks-soft.net/hostmon.eng/mfr ... actService

or use Execute external action, start the following command
iisreset IPaddress
https://www.ks-soft.net/hostmon.eng/mfr ... htm#actPrg

If you have many URL tests that check different web servers, you may use single alert profile for all tests, just use %HostAddr% variable instead of static IP

Regards
Alex
KS-Soft
Posts: 12887
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Also, you may use single Restart service action to restart w3svc and WAS services, specify services in this order: w3svc, WAS
(will fails if you are using old HostMonitor)

Regards
Alex
mrw
Posts: 187
Joined: Mon Oct 08, 2012 6:11 am

Post by mrw »

I tried Execute external program and just set the command to iisreset <ip> to be run from the RMA agent.
That seems to work perfectly. ATM I only need this test on one server but will try %HostAddr% if I need to.

Thank you very much!

//Andreas..
KS-Soft
Posts: 12887
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

You are welcome

Regards
Alex
Post Reply