Reply-Value always in bytes by method "Drive Free Space

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
Mike23
Posts: 2
Joined: Thu Jan 03, 2008 3:05 pm

Reply-Value always in bytes by method "Drive Free Space

Post by Mike23 »

Hi,

how can I tell HM to get the Reply-Value always in bytes (Test-method "Drive Free Space")?

I want to recalculate the reply-value with the new "Tune up Reply"-option in HM 7.06 beta, but i get the err-msg in the Reply-Field:
"Error in expression [19 Gb div 1024 div 1024]: Unknown operator: "Gb"

I use the expression
[%SuggestedReply% div 1024 div 1024] Mb
from http://www.ks-soft.net/hostmon.eng/news.htm

So, he can't recalculate the Value, because it is a string "19 Gb" and not a real-number... How can I fix that?

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

Post by KS-Soft »

Simply add quotation marks
['%SuggestedReply%' div 1024 div 1024] Mb

Regards
Alex
Mike23
Posts: 2
Joined: Thu Jan 03, 2008 3:05 pm

Post by Mike23 »

Hi,

ok, works fine :)

But now the next problem:
['%SuggestedReply%' - '%AverageReply%'] Bytes
Result:
Only the SuggestedReply-Value will the displayed, without calculation with the AverageReply-Value.

And ['%AverageReply%'] alone shows '0'

Regards
Mike
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Post by KS-Soft Europe »

To make it work, you may use the following expression:

Code: Select all

['%SuggestedReply%' - %::TestName::AverageReply%] Bytes
where instead of TestName you should specify this particular test name.

Regards,
Max
Post Reply