[ZBX-14916] Parameter stime in chart2.php not processed Created: 2018 Sep 27  Updated: 2018 Sep 28  Resolved: 2018 Sep 28

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 3.4.13, 3.4.14
Fix Version/s: None

Type: Incident report Priority: Major
Reporter: Julien Gormotte Assignee: Unassigned
Resolution: Won't fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

CentOS 7


Attachments: PNG File 2-zabbix_ko.png     PNG File 2-zabbix_ok_with_isnow.png     PNG File zabbix_error.png     PNG File zabbix_ok.png    
Issue Links:
Causes
caused by ZBX-12572 Timeline on dashboard loses 'now' Closed

 Description   

Steps to reproduce:

  1. Try to generate a PNG of a graph with graph2.php with a stime parameter

Result:

 

Graph ** is not generated with correct start time, as seen in zabbix_error.png (Zabbix 3.4.14)

Expected:

Graph should start at given time, as seen in zabbix_ok.png (Zabbix 2.0.18)



 Comments   
Comment by Julien Gormotte [ 2018 Sep 27 ]

Seems I was missing isNow=0 parameter.

So, it works now, but why this parameter ? Seems strange to have this parameter mandatory when you use stime, the use of stime should automatically assume the time is not now...

Comment by Aigars Kadikis [ 2018 Sep 28 ]

Hello Julien,

Please elaborate where did you attach "isNow=0" because inside the URL I can only see:

chart2.php ? graphid=872 & period=600 & stime=20180927000000

And I tested this URL and it retrieves normal graph in a requested time period.

Kind regards,
Aigars

Comment by Julien Gormotte [ 2018 Sep 28 ]

Hello,

 

I added it in the end.

See the files 2-*.png, isNow seems mandatory.

Comment by Alexander Vladishev [ 2018 Sep 28 ]

From version 3.4.2, isNow=0 parameter is needed to show graph for selected start time. isNow=1 (default) is needed to show graph for current time.

Generated at Sun Apr 06 00:11:23 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.