zabbix-glusterfs
zabbix-glusterfs copied to clipboard
Gluster Storage Total Size is wrong
Hello,
The value usable_capacity
returned by gstatus(1) is not the total space available but the free space remaining. Example on my cluster with my patched version of gstatus_discovery.py[1]:
# gstatus_discovery.py -k used_capacity
81097048064
# gstatus_discovery.py -k usable_capacity
37565235200
The sum of these numbers roughly equals raw_capacity.
The current item “Gluster Storage Total Size” should be renamed “Gluster Storage Free Size” and a new item of the Calculated type named “Gluster Storage Total Size” should be created with the following formula:
gluster_storage_info["used_capacity"] + gluster_storage_info["usable_capacity"]
Of course “Gluster Storage % Free Space” should adapted too.
[1]: A pull-request should come in the following days or weeks.
Hello @Aversiste ! Thank you for issue report! I am waiting your PR!
Best regards!