Linux – Zabbix not getting data for one filesystem

centos6filesystemslinuxmonitoringzabbix

I have Zabbix monitoring disk space for several volumes on several servers. It works fine on all of them except for one of the volumes on one of the servers which always reports as 0. However, when I run

./zabbix_get -s localhost -p 10050 -k 'vfs.fs.size[/home, free]'

locally on the machine in question, it gives me the correct, non-zero size which matches the output of df.

How can I go about troubleshooting and correcting this problem?

Best Answer

It turns out that I had set the data type for /home to float, but for other volumes I had set it to unsigned decimal. On the servers that were reporting 0, the free space was larger than other servers and the value overflowed the field.

Setting the field type to unsigned decimal to match the others corrected the problem.