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.
Restarting services
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
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