Tune up Reply (bytes to TB)

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
Robert_in_MTL
Posts: 229
Joined: Tue Jun 20, 2006 1:20 pm
Location: Montreal, Quebec

Tune up Reply (bytes to TB)

Post by Robert_in_MTL »

Hi,
very sorry to bug you, but I don't know how to solve this.

I have a test on a folder and it alerts me when it grows to more then 5 TB.

If I tune up like this: ['%SuggestedReply%' div (1024*1024*1024*1024)] TB
it gives me 5 TB instead of 5.84 TB.

Is there an option to select decimal precision?
what am I doing wrong?

Thank you for your time.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

What exactly test method do you use? "Folder/File Size"? It always reports folder size using integer numbers.
If you do not use any special expressions, HostMonitor should report "5980 Gb" intead of "5.84 TB". Is this a problem?

Regards
Alex
Robert_in_MTL
Posts: 229
Joined: Tue Jun 20, 2006 1:20 pm
Location: Montreal, Quebec

Post by Robert_in_MTL »

Thank you for the quick response.

Yes I use "Folder/File Size"

It is not really a problem to read GB instead of TB but I would prefer to have the real TB numbers.

This number is meant to be mailed to a group of people and to non-technical people, 5.84 TB represents a bigger number then 5980 GB which represents a big number of they-don't-know-what, see my point?

It was just to get the smallest significant number, like when we started to calculate GB instead of MB.

but if it is impossible, it's ok, I will live with it.

Thank you Alex.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

H'm.. you may use mod operation as well but result may look like 5.84095746 TB
Also, Log Analyzer does not expect real numbers from this kind of test (I think it will work fine but I am not 100% sure) and if you are using ODBC logging and your own scripts for some reports, you may need to check database format and scripts as well...
It was just to get the smallest significant number, like when we started to calculate GB instead of MB.
There is undocumented" option: SizeUnitThreshold. It defines threshould for units (KB->MB->GB). E.g. default value for this parameter 9, it means HostMonitor changes unit to Mb when size > 9MB, changes unit to TB when size > 9TB, etc.
If you add line "SizeUnitThreshold=1" into" [Misc]" section of "hostmon.ini" file and restart HostMonitor, monitor will display '5 TB' instead of '5980 GB' however it will use integer number anyway.

Regards
Alex
Robert_in_MTL
Posts: 229
Joined: Tue Jun 20, 2006 1:20 pm
Location: Montreal, Quebec

Post by Robert_in_MTL »

Ok, I understand.

I will not use SizeUnitThreshold since it will not give me the result I want.
Can I use MOD and to get only 2 numbers?
Otherwise I will just live it like it is and live with it.

Thank you Alex.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Can I use MOD and to get only 2 numbers
Sorry, not in current version :-?
May be we can add some option in future

Regards
Alex
Last edited by KS-Soft on Wed Apr 22, 2009 7:11 am, edited 2 times in total.
Robert_in_MTL
Posts: 229
Joined: Tue Jun 20, 2006 1:20 pm
Location: Montreal, Quebec

Post by Robert_in_MTL »

Ok,
Thank you for the quick response Alex!
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

May be we can add some option in future...
E.g. add some variable like %SimplifiedReply%. Question is what exactly means "simplified" Different people may look at this from different perspective. E.g does "5.25e+9" look like simple form? or "5,657,867,878" looks better?

Regards
Alex
Post Reply