Restarting services

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
Bob
Posts: 12
Joined: Wed Sep 14, 2005 5:27 pm

Restarting services

Post by Bob »

I have set up a test page in IIS on around 40 machines that is checked by Hostmonitor via HTTP. When this test fails, I want Hostmonitor to restart IIS on the machine that failed. I get the result via an HTTP test.

Is there a macro variable I can use with the restart service action that matches the address of the machine that failed? I tried with %HostAddr%, which doesn't work, and with %ServiceComp% which also doesn't work.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

1) %ServiceComp% variable supported by Service test method only
2) %HostAddr% works for the following test methods: Ping, TCP, Oracle, Interbase, MS SQL, MySQL, Sybase, Postgre, Process, Service, NT Log, CPU Usage, SNMP, SMTP, POP, IMAP, DNS, LDAP, UNC, UDP, NTP, RADIUS, Temperature Monitor, Traffic Monitor
http://www.ks-soft.net/hostmon.eng/mfra ... .htm#macro
3) To complette restart IIS you should restart 3 services: SMTP, WWW, IISADMIN

Solution? I think you should use comment property of the tests to specify address of the system and use %CommentLine1% variable in the alert profile
I think we can extend %HostAddr% variable to support HTTP test, in next version

Regards
Alex
Bob
Posts: 12
Joined: Wed Sep 14, 2005 5:27 pm

Post by Bob »

KS-Soft wrote: I think we can extend %HostAddr% variable to support HTTP test, in next version
That would be absolutely perfect - thanks Alex!
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Done. Update available at www.ks-soft.net/download/hm564c.zip

Regards
Alex
Bob
Posts: 12
Joined: Wed Sep 14, 2005 5:27 pm

Post by Bob »

Thanks.

That works absolutely perfectly.
Post Reply