Hi,
I want to write a powershell / batch script that will pause the alerts of a specific test remotely.
My goal is to turn off servers for maintenance and in the meantime to pause the alerts.
I don't find in the documentation any way to do that.
Thanks for your help!
Pausing alerts remotely
There is no such option - pause actions for specific test.
You may pause all actions or pause monitoring.
Also you may pause specific test(s) or you may change action profile assigned to the test.
If you want to perform some operations on test items, you may use HM Script action (or start HM Script manually)
http://www.ks-soft.net/hostmon.eng/mfra ... #actScript
If you want to execute script automatically, you need to assign this action to the scheduler or some test item.
E.g. you may create File Integrity test method to check if HMScript file was modified and execute script if modifications detected.
Mark "Recalculate CRC when file content changes are detected" option for this test
http://www.ks-soft.net/hostmon.eng/mfra ... tm#filecrc
Regards
Alex
You may pause all actions or pause monitoring.
Also you may pause specific test(s) or you may change action profile assigned to the test.
If you want to perform some operations on test items, you may use HM Script action (or start HM Script manually)
http://www.ks-soft.net/hostmon.eng/mfra ... #actScript
If you want to execute script automatically, you need to assign this action to the scheduler or some test item.
E.g. you may create File Integrity test method to check if HMScript file was modified and execute script if modifications detected.
Mark "Recalculate CRC when file content changes are detected" option for this test
http://www.ks-soft.net/hostmon.eng/mfra ... tm#filecrc
Regards
Alex
-
- Posts: 2832
- Joined: Tue May 16, 2006 4:41 am
- Contact:
You may pause test items remotely using one of the following ways:
1. manually, using Web Service: http://www.ks-soft.net/hostmon.eng/webservice/index.htm
2. manually, using RCC: http://www.ks-soft.net/hostmon.eng/rcc/index.htm
3. using script or manually using Telnet Service: http://www.ks-soft.net/hostmon.eng/teln ... /index.htm
4. using HTTP/URL or EMAIL test with automatically executed received/detected script using "Execute HM Script" action.
EMail test: http://www.ks-soft.net/hostmon.eng/mfra ... m#emailchk
Execute HM Script action: http://www.ks-soft.net/hostmon.eng/mfra ... #actScript
Multiline variables: http://www.ks-soft.net/hostmon.eng/mfra ... #mlinevars
1. manually, using Web Service: http://www.ks-soft.net/hostmon.eng/webservice/index.htm
2. manually, using RCC: http://www.ks-soft.net/hostmon.eng/rcc/index.htm
3. using script or manually using Telnet Service: http://www.ks-soft.net/hostmon.eng/teln ... /index.htm
4. using HTTP/URL or EMAIL test with automatically executed received/detected script using "Execute HM Script" action.
EMail test: http://www.ks-soft.net/hostmon.eng/mfra ... m#emailchk
Execute HM Script action: http://www.ks-soft.net/hostmon.eng/mfra ... #actScript
Multiline variables: http://www.ks-soft.net/hostmon.eng/mfra ... #mlinevars