Master/Dep v. Script Enable

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
Nick Danger
Posts: 23
Joined: Sun Oct 26, 2003 6:58 pm

Master/Dep v. Script Enable

Post by Nick Danger »

As a newbie to the more advanced HM functions, it would be great if there were more examples of script files and complex Actions, etc.

Here's my question: I have a server and a router in a remote office. I would like to test for four conditions in sequence. First, I would like to test that the server is alive. If it isn't, I would like to then test for high latency to the server (in case it is not really dead, but just not responding to a reasonable TTL Ping test). If that fails, I would then like to test the remote router. And lastly I would like to test for high latency to the remote router.

I think I mapped out how to do this using Master/Dependent tests. But then I looked a little closer at the HM scripting and the En/Disable Test function and was wondering if that was a better way to step through the four tests. Which way would you suggest and why.

Also, from having read some of these posts, I'm less sure of how Synchronize Counters and Alerts work or how they could be used.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

You are right there several different methods to implement these tests. Its hard to say which one the best but I would not create 4 tests (its not good if you need accurate statistics).
In this situation I will create 2 tests: Test_S to check server and Test_R to check router. Also I will create 1 action profile with 1 "bad" and 1"good” ”change test interval” action that will reduce test interval when test fails and will restore original test interval when test restores good status; assign this action profile to both tests. Make Test_R dependant on Test_S with “Perform test when Master test has dead status” condition.

If you want to start router test when server test fails several times in a row, you may use “This test depends on expression” mode and expression like (’%Test_S::SimpleStatus%’==’DOWN’) and (%Test_S::Recurrences%’>3)
Also, from having read some of these posts, I'm less sure of how Synchronize Counters and Alerts work or how they could be used.
In you case I will use “Synchronize Counters” option (because if server responds, it means router works as well) and will not use “Synchonize status & alerts” option.

Regards
Alex
Nick Danger
Posts: 23
Joined: Sun Oct 26, 2003 6:58 pm

Post by Nick Danger »

Thanks for the ideas...
This is the first time I have heard of this:
“This test depends on expression” mode and expression like (’%Test_S::SimpleStatus%’==’DOWN’) and (%Test_S::Recurrences%’>3)
I have not seen any place to enter this kind of command, have not seen anything like this is the ReadMe/Manual, and would love to know the available commands and the syntax.

As usual, your responsiveness is outstanding! Thanks for the thoughts.

Nick
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Probably you use HostMonitor version 3. New option was implemented in version 4.0, located in the Test Properties dialog.
http://www.ks-soft.net/hostmon.eng/mfra ... expression

Regards
Alex
Post Reply