NetXMS Support Forum

English Support => General Support => Topic started by: lindeamon on August 28, 2011, 12:53:48 PM

Title: free space value
Post by: lindeamon on August 28, 2011, 12:53:48 PM
hi,

i want to make a dci which will check free space and in the value output i will see
xx GB

i have created such dci and in the transformation tab i have taken the output and divided it 3 times by 1024 to get the value in GB but i have not managed to display it along with the text GB in

help please
10x,
lindeamon
Title: Re: free space value
Post by: Victor Kirhenshtein on August 30, 2011, 09:43:44 AM
Hi!

So you wish to get something like "4.05 GB" instead of "4348654387"? Then your transformation script should looks like following:


($1 / 1024 / 1024 / 1024) . " GB"


And don't forget to change DCI type to "string"!

Best regards,
Victor
Title: Re: free space value
Post by: lindeamon on August 30, 2011, 03:10:44 PM
10x victor,

works like a charm.