info about FileSystem.UsedPerc dci from netxms agent

Started by tivanni, December 03, 2014, 07:18:06 PM

Previous topic - Next topic

tivanni

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!

Victor Kirhenshtein

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

tivanni

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%.

Victor Kirhenshtein

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