[ZBX-737] Incorrect result from Zabbix Agent about free space for large disks Created: 2009 Feb 24  Updated: 2017 May 30  Resolved: 2009 Mar 02

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Agent (G)
Affects Version/s: 1.4.5
Fix Version/s: 1.6

Type: Incident report Priority: Minor
Reporter: Igor Danoshaites (Inactive) Assignee: Unassigned
Resolution: Fixed Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Red Hat Enterprise Linux ES release 4 (Nahant Update 4)



 Description   

Hello, I have incorrect result from Zabbix Agent about free space with large disks.
Look at the example below – /data1 and /data2 is Ok, but /backup and /backup2 is Wrong.

Where is the problem, and is there a workaround solution ?

Example:

[zabbix@linux1 bin]$ df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/cciss/c0d0p1 139050576 108923548 23063652 83% /
none 1037476 0 1037476 0% /dev/shm
/dev/cciss/c0d1p1 69210320 51292348 14402240 79% /data1
/dev/cciss/c0d1p2 69210336 41428232 24266368 64% /data2
/dev/cciss/c0d1p3 2694624 36868 2520872 2% /tmp
nas-gw-man:NASora 701830112 306601920 395228192 44% /backup
nas-gw-man:NASora2 721265824 672881568 48384256 94% /backup2
[zabbix@linux1 bin]$
[zabbix@linux1 bin]$ ./zabbix_agentd -c /etc/zabbix/zabbix_agentd.conf -t vfs.fs.size[/data1,free]
vfs.fs.size[/data1,free] [u|14402240]
[zabbix@linux1 bin]$ ./zabbix_agentd -c /etc/zabbix/zabbix_agentd.conf -t vfs.fs.size[/data2,free]
vfs.fs.size[/data2,free] [u|24266368]
[zabbix@linux1 bin]$ ./zabbix_agentd -c /etc/zabbix/zabbix_agentd.conf -t vfs.fs.size[/backup,free]
vfs.fs.size[/backup,free] [u|49403524]
[zabbix@linux1 bin]$ ./zabbix_agentd -c /etc/zabbix/zabbix_agentd.conf -t vfs.fs.size[/backup2,free]
vfs.fs.size[/backup2,free] [u|6048032]
[zabbix@linux1 bin]$
[zabbix@linux1 bin]$ ./zabbix_agentd -c /etc/zabbix/zabbix_agentd.conf -t agent.version
agent.version [s|1.4.5]
[zabbix@linux1 bin]$ uname -r 2.6.9-34.ELsmp
[zabbix@linux1 bin]$
[zabbix@linux1 bin]$ cat /etc/issue
Red Hat Enterprise Linux ES release 4 (Nahant Update 4)
Kernel \r on an \m
[zabbix@bo1-new bin]$



 Comments   
Comment by Dmitry Borovikov [ 2009 Mar 02 ]

The reported issue lies not in the work of the agent, but in the bug in the system call "statvfs()" of Linux. To get more details about this bug, follow the link: https://bugzilla.redhat.com/show_bug.cgi?id=189238. This system call returns wrong values for fragments' sizes of NFS partitions. The agent's key "vfs.fs.size" was improved to escape such bugs. Fragments' sizes are not used; besides, fragments are not implemented in Linux at the moment.

Thanks for the report,
Dmitry

Comment by Igor Danoshaites (Inactive) [ 2009 Mar 02 ]

I close this issue. Original reporter of this issue has been notified by mail.

Generated at Thu Apr 18 22:44:26 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.