NetXMS Support Forum

English Support => General Support => Topic started by: tivanni on December 03, 2014, 07:18:06 PM

Title: info about FileSystem.UsedPerc dci from netxms agent
Post by: tivanni on December 03, 2014, 07:18:06 PM
Hi guys!

I have a centos server with agent installed (1.2.13) and I use the agent to get the percentage of used space on a specific file system (using parameter FileSystem.UsedPerc()).

If I check the filesystem used space using the command "df" i got a value, while FileSystem.UsedPerc return a different value.

I know that sometimes the output of df is not up to date, but i'd like to know how the agent get the FileSystem.UsedPerc...This filesystem have a huge number of file, so i can't use the command du because it takes about an hour

Is the value returned from netxms agent more updated of the value obtained through "df"?

Thank you for the help!
Title: Re: info about FileSystem.UsedPerc dci from netxms agent
Post by: Victor Kirhenshtein on December 03, 2014, 09:48:40 PM
Hi,

how big is the difference? Also, in version 1.2.14 there was a fix in Linux agent in file system percentage calculation (before that fix percentage was always rounded down, so 3.99 would become 3.00 for example).

Best regards,
Victor
Title: Re: info about FileSystem.UsedPerc dci from netxms agent
Post by: tivanni on December 05, 2014, 11:39:09 AM
It's fixed to 6%!

Yesterday Df said that filesystem's used space is 86% while netxms agent report 80%. Today df say 73% and the agent 68%.
Title: Re: info about FileSystem.UsedPerc dci from netxms agent
Post by: Victor Kirhenshtein on December 05, 2014, 06:25:07 PM
I suppose that df may report percentage of total space - reserved space used (so you actually can see 101% use in df for example). NetXMS agent returns percentage of used total space. You can see the difference by comparing FileSystem.Free/FileSystem.FreePerc with FileSystem.Avail/FileSystem.AvailPerc.

Best regards,
Victor