[ZBX-6675] Host name in graph caption with items from several hosts Created: 2013 Jun 07  Updated: 2017 May 30  Resolved: 2014 Apr 03

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 2.0.6
Fix Version/s: 2.3.0

Type: Incident report Priority: Trivial
Reporter: Marc Assignee: Unassigned
Resolution: Fixed Votes: 2
Labels: graph, hostname, name, squashable, usability
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Linux, CentOS-6.4, PostgreSQL 9.1.9, Apache HTTPD-2.2.15, PHP-5.3.3



 Description   

A single host name in the caption of graphs may lead to confution if a graph consists of items from several hosts.
Maybe one can use a host name in the caption only if all items come from the same host.



 Comments   
Comment by Oleksii Zagorskyi [ 2013 Jun 08 ]

Note that hostname used there is from a host which was used to add very first item entry to the graph.
When editing the graph, even if you change sorting of items in the graph - host name in the caption will stay the same.

Comment by Alexei Vladishev [ 2013 Jul 22 ]

I believe we already have a ZBXNEXT issue about configurable graph caption.

Comment by Marc [ 2013 Jul 23 ]

Hmm, I can't find a similar ZBXNEXT
ZBXNEXT-535 asks for additional caption in screens
ZBXNEXT-1813 asks for "Visible graph name". But again for screens.

Comment by Marc [ 2013 Aug 15 ]

Another way could be to provide an option to define a custom label.

Comment by richlv [ 2014 Mar 12 ]

this is a very old problem, and i was sure there would be an older zbx... but i could not find one
the solution is simple - if there are items from more than one host, host name should not be included.

Comment by Marc [ 2014 Mar 12 ]

I had spent a lot time to find the mentioned duplicate too - without success.
Possibly it's the right time to think about reverting/updating the Zabbix ID accordently.

Comment by Pavels Jelisejevs (Inactive) [ 2014 Mar 28 ]

Let's fix it the way Rich suggested, just omit the name if the graph contains items from more than one host.

Comment by Oleg Egorov (Inactive) [ 2014 Mar 31 ]

FIXED IN svn://svn.zabbix.com/branches/dev/ZBX-6675 r43874

Comment by Oleg Egorov (Inactive) [ 2014 Mar 31 ]

(1) No translatable strings changed.

Eduards CLOSED

Comment by Eduards Samersovs (Inactive) [ 2014 Apr 02 ]

(2) Small improvement:

foreach ($dbGraph['hosts'] as $gItemHost) {
	if ($hostName === $gItemHost['name']) {
		$hostName = '';
		break;
	}
	else {
		$hostName = $gItemHost['name'];
	}
}

oleg.egorov FIXED IN r44031, r44040
Eduards CLOSED

Comment by Eduards Samersovs (Inactive) [ 2014 Apr 02 ]

(3) Also addition code formatting is require as discussed

oleg.egorov FIXED IN r44031, r44040
Eduards CLOSED

Comment by Eduards Samersovs (Inactive) [ 2014 Apr 03 ]

Tested

Comment by Oleg Egorov (Inactive) [ 2014 Apr 03 ]

FIXED IN 2.3.0(trunk) r44047
CLOSED

Generated at Thu Apr 18 03:22:48 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.