NetXMS Support Forum

English Support => General Support => Topic started by: alireza.stack on August 20, 2015, 11:26:36 AM

Title: How to get specific partition free space rather than filesystem on Netxms
Post by: alireza.stack on August 20, 2015, 11:26:36 AM
In Netxms dashboard I used the below parameter to get / free space:

FileSystem.Free(/)
Now I want to get a specific partition's free space as below:

(http://i.stack.imgur.com/tR9IE.png)

But it gives incorrect free space. How to get /var free space?
Title: Re: How to get specific partition free space rather than filesystem on Netxms
Post by: Victor Kirhenshtein on August 22, 2015, 05:07:36 PM
Hi,

FileSystem.Free(/var) will collect free space for /var partition if it's really a separate partition mounted on /var. If it is just a directory on root partition, it will return free space on roou partition. Check with mount command what are actual mount points on your system.

Best regards,
Victor
Title: Re: How to get specific partition free space rather than filesystem on Netxms
Post by: alireza.stack on August 23, 2015, 07:33:04 AM
Actually it is not a directory. I used df -h to see all available partitions. /var is one of them. I've got some new information! There are some NFS on /var partition! I think netxms cannot get correct available space due to NFS in /var....

I used instance discovery with FileSystem.MountPoints and I could see that there are some nfs inside of /var.
What should I do now?

Instance discovery list all partitions, but with error. The below picture shows just a portion of partitions. /var is part of them.

Filesystem                                                  Size        Used       Avail        Use%           Mounted on
172.16.131.2:/var/storage/files/inbox           45G        18G        25G          42%            /var/storage/files/inbox

FileSystem.Free(/var/storage/files/inbox) shows 29G!
FileSystem.Avail(/var/storage/files/inbox) shows 26G!