Hi.
My Agents (1.8.1) can't read free space on ZFS partitions. Is there a way to fix this?
It looks like 1.8.2 is worse than 1.6.[56]:-(
In the earlier versions, I got somewhat reasonable results for FS size, free space. But now I see all numbers in the multiple TB range:-(
Actually, it looks like the agent/agentd (1.8.2) report reasonable values:-(
[root@] # zabbix_agentd -t vfs.fs.size[/,free]
vfs.fs.size[/,free] [u|887984743424]
[root@] # zabbix_agentd -t vfs.fs.size[/,total]
vfs.fs.size[/,total] [u|891122455040]
[root@] # zabbix_agentd -t vfs.fs.size[/,pfree]
vfs.fs.size[/,pfree] [d|99.647892]
[root@] # zabbix_agentd -t vfs.fs.size[/,used]
vfs.fs.size[/,used] [u|3137711616]
But what the server has in it's `last 500 values' is completely different:-(
Some values from the DB for that host:
mysql> select itemid, type, hostid, key_, lastvalue, lastclock, prevvalue, value_type, units from items where hostid = '10111' and key_ regexp 'vfs.fs.size\\[/,';
+--------+------+--------+----------------------+-----------------+------------+-----------------+------------+-------+
| itemid | type | hostid | key_ | lastvalue | lastclock | prevvalue | value_type | units |
+--------+------+--------+----------------------+-----------------+------------+-----------------+------------+-------+
| 31976 | 0 | 10111 | vfs.fs.size[/,free] | 909253421826048 | 1270757276 | 909253276598272 | 3 | B |
| 31977 | 0 | 10111 | vfs.fs.size[/,pfree] | 99.647873 | 1270757277 | 99.647872 | 0 | % |
| 31978 | 0 | 10111 | vfs.fs.size[/,pused] | 0.352127 | 1270757278 | 0.352128 | 0 | % |
| 31979 | 0 | 10111 | vfs.fs.size[/,total] | 912465877532672 | 1270756379 | 913091497295872 | 3 | B |
| 31980 | 0 | 10111 | vfs.fs.size[/,used] | 3213045006336 | 1270757280 | 3213045006336 | 3 | B |
+--------+------+--------+----------------------+-----------------+------------+-----------------+------------+-------+
5 rows in set (0.01 sec)
and for a zone on that host, where the numbers are even more weired:-(
mysql> select itemid, type, hostid, key_, lastvalue, lastclock, prevvalue, value_type, units from items where hostid = '10165' and key_ regexp 'vfs.fs.size\\[/,';
+--------+------+--------+----------------------+----------------+------------+----------------+------------+-------+
| itemid | type | hostid | key_ | lastvalue | lastclock | prevvalue | value_type | units |
+--------+------+--------+----------------------+----------------+------------+----------------+------------+-------+
| 37218 | 0 | 10165 | vfs.fs.size[/,free] | 233660481536 | 1270757358 | 233658384384 | 3 | B |
| 37219 | 0 | 10165 | vfs.fs.size[/,pfree] | 1.296712 | 1270757360 | 1.296706 | 0 | % |
| 37220 | 0 | 10165 | vfs.fs.size[/,pused] | 98.703288 | 1270757360 | 98.703294 | 0 | % |
| 37221 | 0 | 10165 | vfs.fs.size[/,total] | 18019378003968 | 1270754422 | 18019378003968 | 3 | B |
| 37222 | 0 | 10165 | vfs.fs.size[/,used] | 17801706209280 | 1270757362 | 17785718571008 | 3 | B |
+--------+------+--------+----------------------+----------------+------------+----------------+------------+-------+
5 rows in set (0.01 sec)
not working, at least for a respectable sized zfs pool (9.8T) on a x4500. is this because its big?
# ./usr/sbin/zabbix_agentd -t vfs.fs.size[/zfs-pool0,used]
vfs.fs.size[/zfs-pool0,used] [m|ZBX_NOTSUPPORTED]
# ./usr/sbin/zabbix_agentd -t vfs.fs.size[/zfs-pool0,total]
vfs.fs.size[/zfs-pool0,total] [m|ZBX_NOTSUPPORTED]
# ./usr/sbin/zabbix_agentd -t vfs.fs.size[/zfs-pool0,free]
vfs.fs.size[/zfs-pool0,free] [m|ZBX_NOTSUPPORTED]
# ./usr/sbin/zabbix_agentd -t vfs.fs.size[/zfs-pool0,total]
vfs.fs.size[/zfs-pool0,total] [m|ZBX_NOTSUPPORTED]
# ./usr/sbin/zabbix_agentd -t vfs.fs.size[/zfs-pool0,pfree]
vfs.fs.size[/zfs-pool0,pfree] [m|ZBX_NOTSUPPORTED]
# ./usr/sbin/zabbix_agentd -t vfs.fs.size[/zfs-pool0,used]
vfs.fs.size[/zfs-pool0,used] [m|ZBX_NOTSUPPORTED]
# df -h
Filesystem size used avail capacity Mounted on
....
zfs-pool0 9.8T 803G 9.0T 8% /zfs-pool0
Odd, ZFS has *only* been around a good 5 years now and is widely used, i can't believe it's still not properly supported.
For me that means we can't use zabbix at all.