Tune up reply

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
jfreude
Posts: 27
Joined: Tue Oct 19, 2004 7:14 am

Tune up reply

Post by jfreude »

Hi,

is it possible or planned to implement the division of two real numbers and get a real number as result? i read the manual that the result of a division is always a integer. We're monitoring some temperature sensors, their result must be divided and the result should be a real, e.g. 196 DIV 10 should be 19.6 . With [%SuggestedReply% div 10] the result is 19.

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

Post by KS-Soft »

Most of test methods return integer values so we implemented integer division. I think there is workaroung - you may use expression like
[%SuggestedReply% div 10].[%SuggestedReply% mod 10]

Regards
Alex
Dubolomov
Posts: 214
Joined: Thu Jun 01, 2006 10:27 am
Location: Russia

Post by Dubolomov »

And one question more.
I add any string using TuneRaply such as "%SuggestedReply% Mb". Does compare must works in this solution if i try to compare %Reply% and %LastReply%?
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

How exactly are you going to compare %Reply% and %LastReply%? Using expression for "advanced mode" actions? Then it should work. Quote from the manual
Advanced mode allows you to use logical expression as a condition that triggers the alert action. An alert action is performed when a logical expression of a condition is true. In these expressions you can use:
- numbers and strings (in quotes). Strings that contain a number plus one of the following unit specificators [ms, Kb, Mb, Gb, %] are compared as numbers, so that '900 Kb' is less than '9 Mb'
- macro variables related to the current test or to any other test;
- global macro variables;
- logical operators [and, or, xor, not, <, >, >=, <=, ==, <>];
...
Regards
Alex
Dubolomov
Posts: 214
Joined: Thu Jun 01, 2006 10:27 am
Location: Russia

Post by Dubolomov »

KS-Soft wrote:Strings that contain a number plus one of the following unit specificators [ms, Kb, Mb, Gb, %] are compared as numbers, so that '900 Kb' is less than '9 Mb'
Regards
Alex
I missed it.
Thank you.
Post Reply