Compare 2 tests

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
Nadir
Posts: 264
Joined: Mon Aug 29, 2005 2:01 am

Compare 2 tests

Post by Nadir »

Hello all,

Any way to start alert when a value reply test is > or < than an other test?

Thanks for help
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Post by KS-Soft Europe »

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
Nadir
Posts: 264
Joined: Mon Aug 29, 2005 2:01 am

Post by Nadir »

Ok thanks
Nadir
Posts: 264
Joined: Mon Aug 29, 2005 2:01 am

Post by Nadir »

I Have two test, Test1 and Test2, and in alert profile on Test1 I configured
in advanced mode:
%Reply_Number% >= %::Test2::Reply_Number% but must I put this expression in dead status or alive status?

it is necessary that that one of these test failed first before HM use expression?
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Post by KS-Soft Europe »

Nadir wrote:it is necessary that that one of these test failed first before HM use expression?
It is depend on you. You may setup alert as "Good status" action or as "Bad" status action.
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
Nadir
Posts: 264
Joined: Mon Aug 29, 2005 2:01 am

Post by Nadir »

I need to triggered action without reference to tests, but with this expression it dosen't work, no action is triggered:

%Reply_Number% >= %::Test2::Reply_Number%

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

Post by KS-Soft »

Probably reply value of the current test is less than reply value of "Test2" test item?

Regards
Alex
Nadir
Posts: 264
Joined: Mon Aug 29, 2005 2:01 am

Post by Nadir »

Probably reply value of the current test is less than reply value of "Test2" test item?
No, the 2 tests are often the same value
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Post by KS-Soft Europe »

In such case, I think, you should try to use Reply_Integer variable. Could you try it?

Regards,
Max
Nadir
Posts: 264
Joined: Mon Aug 29, 2005 2:01 am

Post by Nadir »

Doesn't work
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Post by KS-Soft Europe »

As I understand, you have assigned action profile, that contains foregoing Advanced action, to Test1, right? So, when you refresh Test1, action should be triggered. Please, copy&paste following condition, it works in our system: %Reply_Integer%>=%::Test2::Reply_Integer%

Regards,
Max
Nadir
Posts: 264
Joined: Mon Aug 29, 2005 2:01 am

Post by Nadir »

it work thanks
Post Reply