How to get specific partition free space rather than filesystem on Netxms

Started by alireza.stack, August 20, 2015, 11:26:36 AM

Previous topic - Next topic

alireza.stack

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:



But it gives incorrect free space. How to get /var free space?

Victor Kirhenshtein

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

alireza.stack

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!