[ZBX-19502] Disk space triggers are not always triggered Created: 2021 Jun 02  Updated: 2024 May 08  Resolved: 2024 May 08

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Templates (T)
Affects Version/s: 5.0.12
Fix Version/s: 6.0.30rc1, 6.4.15rc1, 7.0.0rc1

Type: Incident report Priority: Minor
Reporter: Evren Yurtesen Assignee: Andrey Tocko (Inactive)
Resolution: Fixed Votes: 8
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Linux


Issue Links:
Sub-task
part of ZBXNEXT-6698 Improve and fix filesystem free space... Closed
Team: Team INT

 Description   

The Linux filesystem module monitors "Used Space" and "Total Space" and "Percent Used"

In"Total Space", the reserved space is included. However it is NOT included in "Used Space". For large filesystems, there can be larger than 5GB reserved space. So the trigger never works.

The critical disk space warning note says:

 Second condition should be one of the following:
 - The disk free space is less than 5G.
 - The disk will be full in less than 24 hours.

The trigger expression:

{Template Module Linux filesystems by Zabbix agent:vfs.fs.size[{#FSNAME},pused].last()}>{$VFS.FS.PUSED.MAX.CRIT:"{#FSNAME}"} and
(({Template Module Linux filesystems by Zabbix agent:vfs.fs.size[{#FSNAME},total].last()}-{Template Module Linux filesystems by Zabbix agent:vfs.fs.size[{#FSNAME},used].last()})<5G or {Template Module Linux filesystems by Zabbix agent:vfs.fs.size[{#FSNAME},pused].timeleft(1h,,100)}<1d)

The description says "disk free space is less than". However, the trigger expression uses "total - used" which is not same as  "free space". Because it does NOT take reserved space into consideration.

This is a serious bug as we had several cases where the trigger was never triggered. Suggestion is to monitor the Free Space and use Free Space < 5G in the trigger directly instead of calculating free space from other values.

 

Thanks,



 Comments   
Comment by Andrey Tocko (Inactive) [ 2024 May 08 ]

Fixed as part of ZBXNEXT-6698

Generated at Sun May 25 08:37:55 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.