[ZBX-9730] remove or make use of "Host status" value mapping Created: 2015 Jul 27  Updated: 2024 Apr 10  Resolved: 2017 Feb 14

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Installation (I)
Affects Version/s: 2.4.5
Fix Version/s: 3.0.0beta2

Type: Incident report Priority: Minor
Reporter: Aleksandrs Saveljevs Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: database, valuemapping
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File host-status.png    
Team: Team A
Team: Team A
Sprint: Sprint 1

 Description   

We had an item "status" in the past, which was removed some time ago. However, "Host status" value mapping is still there in data.tmpl:

This value mapping does not seem to be used in the default install.

It is proposed to either remove this value mapping or (as suggested by richlv) make it usable by zabbix[host,<type>,available] item.



 Comments   
Comment by Viktors Tjarve [ 2015 Dec 22 ]

Updated "Host status" value mapping to "Host availability" and made it usable to zabbix[host,<type>,available].

Fixed in development branch svn://svn.zabbix.com/branches/dev/ZBX-9730 r57335.

Comment by Sandis Neilands (Inactive) [ 2016 Jan 07 ]

(1) Since this is the first time when we remove a value map from the default installation I would like to ask sasha if the following is acceptable.

When importing/exporting templates Zabbix refers to the value maps by name. If template contains non-existant value map then Zabbix will not import it and will return error. Users that relied upon "Host status" mapping will have to create it by hand or fix the templates if they import their older templates in clean-installed Zabbix 3.0.

Users upgrading from older version of Zabbix will have to add "Host availability" mapping by hand if they wish to use it. Currently http://zabbix.org/wiki/Zabbix_Templates/SQLs_for_Official_Templates doesn't contain SQL script or exported value map to apply after upgrade to 3.0.

viktors.tjarve If a user is using Host status value map he will not be able to import it from older version of Zabbix into Zabbix 3.0. If this user will want to keep using Host status value map he will have to add it manually.

When upgrading to Zabbix 3.0 a SQL script will be provided to add all the additional features and changes of the new Zabbix version. Official Zabbix tamplate website http://zabbix.org/wiki/Zabbix_Templates/Official_Templates will contain all the additions and changes to value maps as well.

Comment by Sandis Neilands (Inactive) [ 2016 Jan 07 ]

(2) Shouldn't the first letter be capitalized? Our guidelines leave room for interpretation for this case.

viktors.tjarve RESOLVED. Discussed with sasha and decided to use lowercase letters only.

sandis.neilands CLOSED.

Comment by Viktors Tjarve [ 2016 Jan 21 ]

Released in:

  • pre-3.0.0beta2 r57901
Comment by richlv [ 2016 Jan 21 ]

in (1), it says that sql script will be provided. value map api is available since 3.0, maybe an api query would be a better choice ?

Comment by Vladimir Silin (Inactive) [ 2017 Feb 07 ]

Documented in:

sasha Thanks! CLOSED

Generated at Fri Apr 19 16:09:09 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.