Hi everyone,
I'm running into an issue with a trigger using the trendsum function in Zabbix 6.4.2.
I want to monitor the total number of bytes received on a specific port using iptables. If the number of bytes received is less than 1MB over the last 45 days, I want the trigger to fire.
Here’s the trigger expression I’m using:
trendsum(/Monitor de aplicacao Linux/porta.bytes.[{#PORTA}],45d:now/d)<1M
However, the problem is that I only have trend data available for the last 8 days, and the trigger is already firing — even though 45 days haven’t passed yet.
It seems that trendsum() just sums up the available data, even if it’s less than the full 45-day period, and evaluates the trigger based on that partial data. This leads to false positives because it doesn't wait until the full 45-day window is populated.
❓ What I need help with:
- Is this the expected behavior of trendsum()?
- Is there a way to delay or condition the trigger so that it only evaluates after 45 full days of trend data are available?
- Has anyone solved this with a workaround (e.g., tracking the monitoring start time)?
- Any native way in Zabbix to check how much historical/trend data is available for an item?
Thanks in advance for any suggestions or ideas!
Comment