[ZBX-8659] Incorrect display of legend in customized graphs when used in screens Created: 2014 Aug 25  Updated: 2017 May 30  Resolved: 2014 Sep 08

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 2.2.5
Fix Version/s: 2.2.7rc1, 2.4.1rc1, 2.5.0

Type: Incident report Priority: Minor
Reporter: Ingus Vilnis Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: graphs, screens
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File zbx_no_legend.png     PNG File zbx_with_legend.png    
Issue Links:
Duplicate

 Description   

How to reproduce:

  1. clone a graph from a default template, e.g. CPU load
  2. rename and uncheck the Show legend option (that is the only difference)
  3. add this cloned graph to a screen using any host from that template
  4. make sure the Dynamic item option is checked
  5. view the particular screen in Monitoring -> Screens
  6. graph should appear with no labels as expected
  7. change the host in top right dropdown
  8. notice that the legend is shown again even if the graph was templated and if the same hot was selected


 Comments   
Comment by richlv [ 2014 Aug 25 ]

1. did you mean "show legend" instead of "show labels" ?
2. is this the same as ZBXNEXT-1509 ?

Comment by Krists Krigers (Inactive) [ 2014 Aug 29 ]

Fixed in commits r48582 and 48583, branch svn://svn.zabbix.com/branches/dev/ZBX-8659.

Comment by Ivo Kurzemnieks [ 2014 Sep 01 ]

(1) String changes?

kristsk No string changes. RESOLVED.

iivs CLOSED.

Comment by Ivo Kurzemnieks [ 2014 Sep 01 ]

(2) Creating a screen from these error reproducing steps I get

Undefined index: real_resourceid [screenedit.php:294 → CView->render() → include() → CScreenBuilder->show() → CScreenGraph->get() in C:\Development\ZBX-8659-test\frontends\php\include\classes\screens\CScreenGraph.php:31]

and I have a bad request to

http://localhost/ZBX-8659-test/frontends/php/&width=500&height=100&legend=0&updateProfile=0&profileIdx=&profileIdx2=&period=3600&stime=20140901155244?sid=fd4c0cfbc29253d6&width=500"

Same error in Monitoring page

Undefined index: real_resourceid [screens.php:177 → CView->render() → include() → CScreenBuilder->show() → CScreenGraph->get() in C:\Development\ZBX-8659-test\frontends\php\include\classes\screens\CScreenGraph.php:31]

kristsk RESOLVED in r48689.

iivs CLOSED.

Comment by Ivo Kurzemnieks [ 2014 Sep 04 ]

(3) There will be a same problem with graph prototypes in 2.4, so let's add another dev branch to provide fix for 2.4 version

kristsk WONTFIX as discussed with iivs.

<richlv> given that majority of readers did not eavesdrop, could you please summarise the discussion ?

iivs Discussion in short: the graph prototypes will work with provided fix, so no need to create a dev branch. Thanks, kristsk for looking in to this.
CLOSED.

Comment by Ivo Kurzemnieks [ 2014 Sep 15 ]

TESTED

Comment by Krists Krigers (Inactive) [ 2014 Sep 16 ]

Fixed and merged to:

  • 2.2.7rc1 in r49022,
  • 2.4.1rc1 in r49024,
  • 2.5.0 (trunk) in r49025.
Generated at Sat Apr 20 08:28:15 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.