[ZBX-17029] Problems that are raised by triggers that use function 'change()' are not displayed on graphs Created: 2019 Dec 03  Updated: 2019 Dec 05  Resolved: 2019 Dec 04

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 4.0.16rc1, 4.4.4rc1, 5.0.0alpha1
Fix Version/s: None

Type: Problem report Priority: Trivial
Reporter: Sergejs Olonkins Assignee: Sergejs Olonkins
Resolution: Won't fix Votes: 0
Labels: graph, problem, trigger
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: GIF File no_change_triggers_on_graph.gif    

 Description   

Problem description:
If a trigger uses function 'change', the problem raised by this trigger will not be shown on the classic graph that displays the item this trigger is based on. But if the function used by the trigger is changed, even while the trigger is in status problem, the trigger will be shown on the graph.

Steps to reproduce:

  1. Create a host
  2. Create a numeric(unsigned) item with units = 'uptime', update interval = '1s' and key = 'system.uptime'
  3. Create a trigger with the following expression: {Test:system.uptime.change(0)}

    >10m

  4. Create a graph. Set the 'Show triggers' option and select the previously created item in 'items' field.
  5. Restart zabbix server
  6. Open Monitoring => Problems view and make sure that the trigger has raised a problem
  7. Open the previously created graph anywhere in frontend
    Result 1: the problem is not displayed at the bottom of the graph
  8. Go to configuration of the trigger and change its expression to: {Test:system.uptime.last()}

    >10s

  9. And again, # Open the previously created graph anywhere in frontend.
    Result 2: Now the trigger is displayed at the bottom of the graph.

Expected: Problems that are raised by triggers that use function 'change()' should be displayed on graphs if the 'Show triggers' option is set.

Example:



 Comments   
Comment by richlv [ 2019 Dec 03 ]

Isn't that working as designed, where only last(), min(), avg() and max() functions using triggers are shown on graphs?
How would change() be shown in a graph?

Also see https://github.com/zabbix/zabbix/blob/master/frontends/php/include/classes/graphdraw/CLineGraphDraw.php#L448 .

Comment by Sergejs Olonkins [ 2019 Dec 04 ]

Yes, You are correct, looks like it was designed this way. Thank You for Your input.

Generated at Wed Apr 02 11:37:45 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.