Good Morning,
we're currently placing links to Zabbix-Graphs within another system in order to be able to quickly view graphs. Prior Zabbix 6 this was possible by directly filtering on graph-ids like this:
https://<zabbix-base-url>/zabbix.php?view_as=showgraph&action=charts.view&fi lter_search_type=0&filter_set=1&filter_graphids[]=20538
Unfortunately the option to filter per graphid has been removed wit Zabbix 6.0, therefore we're trying to filter based on host-ids an tags now like this:
https://<zabbix-base-url>/zabbix.php?action=charts.view&filter_set=1&subfilt er_set=1&filter_hostids%5B%5D=12350&filter_hostids %5B%5D=12605&subfilter_tags%5Binterface%5D%5B%5D=s fp-sfpplus1(Uplink%20(SN))
However in order to enable filtering using the parameter filter_set and subfilter_set within one single get-request we needed to do a minor change in zabbix source-code and replacing two "elseif" statements by "if" statements within
If possible I suggest to enable directly accessing & filtering graphs as shown above in further releases by integrating the suggested modification or allowing filtering by graph_id again.
Thank you & Best Regards
we're currently placing links to Zabbix-Graphs within another system in order to be able to quickly view graphs. Prior Zabbix 6 this was possible by directly filtering on graph-ids like this:
https://<zabbix-base-url>/zabbix.php?view_as=showgraph&action=charts.view&fi lter_search_type=0&filter_set=1&filter_graphids[]=20538
Unfortunately the option to filter per graphid has been removed wit Zabbix 6.0, therefore we're trying to filter based on host-ids an tags now like this:
https://<zabbix-base-url>/zabbix.php?action=charts.view&filter_set=1&subfilt er_set=1&filter_hostids%5B%5D=12350&filter_hostids %5B%5D=12605&subfilter_tags%5Binterface%5D%5B%5D=s fp-sfpplus1(Uplink%20(SN))
However in order to enable filtering using the parameter filter_set and subfilter_set within one single get-request we needed to do a minor change in zabbix source-code and replacing two "elseif" statements by "if" statements within
/usr/share/zabbix/app/controllers/CControllerChartsView.php
zz0.3hhdrwgjmshzz in order to make this function accepting filter_set and subfilter_set parameters within one request.If possible I suggest to enable directly accessing & filtering graphs as shown above in further releases by integrating the suggested modification or allowing filtering by graph_id again.
Thank you & Best Regards