PDA

View Full Version : OpenSolaris Agent and multiterabyte volumes


ulzeraj
21-07-2010, 17:53
Hello. I'm depoloying Zabbix in my organization and everything is going fine, but I cant monitor some zfs volumes with >=2tb of storage capacity. Tested with binary precompiled agents 1.8.2, 1.8 and 1.6.6.

rpool is the zpool where the system is installed. It has 1.33gb total space and the agent reads it just fine:


sysadmin@ferro:~/Downloads# /opt/zabbix/sbin/zabbix_agent -c /opt/zabbix/etc/zabbix_agent.conf -t vfs.fs.size[/rpool,pfree]
vfs.fs.size[/rpool,pfree] [d|99.999994]
sysadmin@ferro:~/Downloads# /opt/zabbix/sbin/zabbix_agent -c /opt/zabbix/etc/zabbix_agent.conf -t vfs.fs.size[/rpool,free]
vfs.fs.size[/rpool,free] [u|1465741476352]


storage is a 4tb test zpool:
sysadmin@ferro:~/Downloads# /opt/zabbix/sbin/zabbix_agent -c /opt/zabbix/etc/zabbix_agent.conf -t vfs.fs.size[/storage,free]
vfs.fs.size[/storage,free] [m|ZBX_NOTSUPPORTED]
sysadmin@ferro:~/Downloads# /opt/zabbix/sbin/zabbix_agent -c /opt/zabbix/etc/zabbix_agent.conf -t vfs.fs.size[/storage,pfree]
vfs.fs.size[/storage,pfree] [m|ZBX_NOTSUPPORTED]


storage/test is a 1 tb volume:
sysadmin@ferro:~/Downloads# zfs create storage/test
sysadmin@ferro:~/Downloads# zfs set quota=1tb storage/test
sysadmin@ferro:~/Downloads# zfs list storage/test
NAME USED AVAIL REFER MOUNTPOINT
storage/test 28.4K 1024G 28.4K /storage/test
sysadmin@ferro:~/Downloads# /opt/zabbix/sbin/zabbix_agent -c /opt/zabbix/etc/zabbix_agent.conf -t vfs.fs.size[/storage/test,free]
vfs.fs.size[/storage/test,free] [u|1099511598592]
sysadmin@ferro:~/Downloads# /opt/zabbix/sbin/zabbix_agent -c /opt/zabbix/etc/zabbix_agent.conf -t vfs.fs.size[/storage/test,pfree]
vfs.fs.size[/storage/test,pfree] [d|99.999997]


I have extended storage/test to 1.9tb. Still works:
sysadmin@ferro:~/Downloads# zfs set quota=1.9tb storage/test
sysadmin@ferro:~/Downloads# /opt/zabbix/sbin/zabbix_agent -c /opt/zabbix/etc/zabbix_agent.conf -t vfs.fs.size[/storage/test,free]
vfs.fs.size[/storage/test,free] [u|2089072063488]
sysadmin@ferro:~/Downloads# /opt/zabbix/sbin/zabbix_agent -c /opt/zabbix/etc/zabbix_agent.conf -t vfs.fs.size[/storage/test,pfree]
vfs.fs.size[/storage/test,pfree] [d|99.999999]


Now I extend it to 2tb. The agent say its not supported:
sysadmin@ferro:~/Downloads# zfs set quota=2tb storage/test
sysadmin@ferro:~/Downloads# /opt/zabbix/sbin/zabbix_agent -c /opt/zabbix/etc/zabbix_agent.conf -t vfs.fs.size[/storage/test,free]
vfs.fs.size[/storage/test,free] [m|ZBX_NOTSUPPORTED]
sysadmin@ferro:~/Downloads# /opt/zabbix/sbin/zabbix_agent -c /opt/zabbix/etc/zabbix_agent.conf -t vfs.fs.size[/storage/test,pfree]
vfs.fs.size[/storage/test,pfree] [m|ZBX_NOTSUPPORTED]


Is this a limitation of zabbix on opensolaris or zabbix agent cant monitor multiterabyte volumes?

Thanks in advance!

alubel
25-08-2010, 17:42
1.8.3 has the issue as well :(

really wish this worked - they fixed the ethernet statistics part, wonder why not this?

walterheck
26-08-2010, 05:14
Best way to make sure that gets fixed is to file a bug report (or find one that has already been filed and add a note that you run into the same problem).

If you do, please link to it here for future searchers...