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?
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.
(Just wanted to add my contribute if someone else pops by)
Thanks to this question I discovered
zabbix_get
, that I installed withyum install zabbix-get
through Zabbix Repositories.If you get no data from
zabbix_get -s 127.0.0.1 -k agent.version
(this is a simple key to check this utility), check theServer=
option in/etc/zabbix/zabbix_agentd.conf
and be sure it contains localhost:In my case it was because unusual filesystem
simfs
. I added its name to regular expression@File systems for discovery
in Administration->General->Drop down "Regular expressions" and now it works.