Pausing alerts remotely

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
agepox
Posts: 1
Joined: Tue Aug 19, 2014 8:50 am

Pausing alerts remotely

Post by agepox »

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!
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

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
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Post by KS-Soft Europe »

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
Post Reply