disable tests by script

General chat about HostMonitor
Post Reply
Baptiste
Posts: 15
Joined: Thu Mar 13, 2008 7:44 am
Location: Le Havre, France

disable tests by script

Post by Baptiste »

Dear KS-Soft,

Now I have several tests (check service) on backuped servers. Daily we had to start backup and during this task these services are disable by the backup job. Thus HostMonitor send report that tests are in bad status while it’s normal.
I need to have the test scheduled 24h/24h. So I would like to know how automatically disable these test during backups (backup time shifting every day), maybe with a script…


Regards
Baptiste
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Post by KS-Soft Europe »

You may use "HMS Script": http://www.ks-soft.net/hostmon.eng/mfra ... #actScript
"DisableTest" command allows you to disable test or group of tests. "EnableTest" command enblables disabled tests.

You may start "HMS script" automaticaly as other actions or on regular basis using built-in "Scheduler" ("Options" -> "Scheduler"). It is also possible to start "HMS script" manually using menu "File" -> "Execute Script.."

On the other hand, you may adjust test or action schedule: http://www.ks-soft.net/hostmon.eng/mfra ... #Schedules

Regards,
Max
Baptiste
Posts: 15
Joined: Thu Mar 13, 2008 7:44 am
Location: Le Havre, France

Post by Baptiste »

Thanks I will try this monday :)
Baptiste
Posts: 15
Joined: Thu Mar 13, 2008 7:44 am
Location: Le Havre, France

Post by Baptiste »

hello,
Previous solution works well, but I launch my backup scheduled task by an external script to Hostmonitor.
I shall want to know if it is possible to make the same operation* by an external script to Hostmonitor


*disable test or enable test
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Post by KS-Soft Europe »

Baptiste wrote:I shall want to know if it is possible to make the same operation* by an external script to Hostmonitor
I am afraid, that's impossible to enable/disable test by external program automatically.

I think, you may use "Master/Dependent" relations between tests to figure it out. For instance, you may setup some test, that checks if backup script is running on the remote server, and make this as Master for other service tests. Please, read the following article for details: http://www.ks-soft.net/hostmon.eng/mfra ... htm#Master

Regards,
Max
Baptiste
Posts: 15
Joined: Thu Mar 13, 2008 7:44 am
Location: Le Havre, France

Post by Baptiste »

Ok, that's what I thought. Thank you for your fast answer.

Regards,
Baptiste
Post Reply