Compare 2 tests
Compare 2 tests
Hello all,
Any way to start alert when a value reply test is > or < than an other test?
Thanks for help
Any way to start alert when a value reply test is > or < than an other test?
Thanks for help
-
- Posts: 2832
- Joined: Tue May 16, 2006 4:41 am
- Contact:
Sure. You may use "Advanced mode" action.
http://www.ks-soft.net/hostmon.eng/mfra ... ncedaction
Quote from manual:
=================
((%Reply%>200) and (%Reply%<800)) or ('%::Main Router::SimpleStatus%'=='DOWN') - action will be executed when "Reply" value of the test is between 200 and 800 or status of the "Main Router" test is "No answer" or "Bad".
=================
So, you may use syntax like this: %Relpy% > %::OtherTestName::Reply%
Also you may use %Reply_Integer% and %Reply_Number% variables.
Regards,
Max
http://www.ks-soft.net/hostmon.eng/mfra ... ncedaction
Quote from manual:
=================
((%Reply%>200) and (%Reply%<800)) or ('%::Main Router::SimpleStatus%'=='DOWN') - action will be executed when "Reply" value of the test is between 200 and 800 or status of the "Main Router" test is "No answer" or "Bad".
=================
So, you may use syntax like this: %Relpy% > %::OtherTestName::Reply%
Also you may use %Reply_Integer% and %Reply_Number% variables.
Regards,
Max
-
- Posts: 2832
- Joined: Tue May 16, 2006 4:41 am
- Contact:
It is depend on you. You may setup alert as "Good status" action or as "Bad" status action.Nadir wrote:it is necessary that that one of these test failed first before HM use expression?
If you need to trigger alert only if Test1 and Test2 are Ok, you may use expression like this:
('%SimpleStatus%'=='UP') and ('%::Test2::SimpleStatus%'=='UP') and (%Reply_Number% >= %::Test2::Reply_Number%)
In other case you should specify another expression.
Regards,
Max
-
- Posts: 2832
- Joined: Tue May 16, 2006 4:41 am
- Contact:
-
- Posts: 2832
- Joined: Tue May 16, 2006 4:41 am
- Contact: