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.
Master/Dep v. Script Enable
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)
Regards
Alex
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)
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.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.
Regards
Alex
-
- Posts: 23
- Joined: Sun Oct 26, 2003 6:58 pm
Thanks for the ideas...
This is the first time I have heard of this:
As usual, your responsiveness is outstanding! Thanks for the thoughts.
Nick
This is the first time I have heard of this:
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.“This test depends on expression” mode and expression like (’%Test_S::SimpleStatus%’==’DOWN’) and (%Test_S::Recurrences%’>3)
As usual, your responsiveness is outstanding! Thanks for the thoughts.
Nick
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
http://www.ks-soft.net/hostmon.eng/mfra ... expression
Regards
Alex