[ZBX-3426] unable to delete application that's linked to a host from a template Created: 2011 Jan 14  Updated: 2017 May 30  Resolved: 2011 Jul 13

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

Type: Incident report Priority: Major
Reporter: Dmitrij Gavrilenko Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Zabbix 1.8.4
PHP 5.3.2
Mysql Server 5.1.48
FreeBSD 8.1-RELEASE x64


Attachments: JPEG File 2011.06.10 Host_Config.jpg     JPEG File 2011.06.10 List_Template.jpg     JPEG File 2011.06.10 Remove_Application_Error.jpg     JPEG File 2011.06.10 Remove_Template.jpg    
Issue Links:
Duplicate
duplicates ZBX-3860 unlink template from template leaves ... Closed

 Description   

When you connect the template to the host, also connected to the host application described in the template.
After removing the template from the host application connected with the template remain. After that the remaining applications are not removed, as Bud something to the template is still connected to the host.

Approximate error: Templated application cannot be deleted.

--------------- ORIGINAL ---------------

??? ??????????? ??????? ? ?????, ? ????? ????? ???????????? ?????????? ????????? ? ???????.
????? ???????? ??????? ?? ???, ??????????, ???????????? ?????? ? ???????? ????????. ????? ????? ?????????? ?????????? ?? ?????????, ??? ???- ?? ?????? ?? ???????? ????????? ? ?????.

??????????????? ??????: Templated application cannot be deleted.



 Comments   
Comment by Dmitrij Gavrilenko [ 2011 Jan 14 ]

В версиях 1.8.2 и 1.8.3 такой проблемы не было.

Comment by Alexander Vladishev [ 2011 Apr 22 ]

Не получается повторить эту проблему.
Вы не могли бы пошагово описать все действия и приложить скриншоты.

В версии 1.8.5 такая проблема осталась?

Comment by Dmitrij Gavrilenko [ 2011 Apr 26 ]

Looks like I gave an incorrect description of the problem. Now try to repeat the situation at home. Basically, when you delete a template, applications that were connected, removed correctly in both versions, and 1.8.4 and 1.8.5.
The problem looks different in both versions ...
1. Create a template (1_CreateTemplate)
2. Create an element with an application (2_CreateItem)
3. Create the host and connect to the template (3_CreateHost)
4. We see that are connected to the host application from a template (4_Host_ShowApp) and the actual item (5_Host_ItemConf)
5. Removed from the pattern element (6_Template_ItemDelete)
6. See that in the host configuration element is no longer, but the application that was linked to an element, is connected as before.
7. Open the configuration of the host application (8_Host_ShowApp)
8. Remove the application (9_Host_DeleteApp)
9. Get an error (10_Host_DeleteApp_Error)

Basically, everything works correctly, because deystvitenlno, the pattern to the host still connected. After removal of the application in the template, the application also removed and the host.
TT mistakenly opened.

--------------- ORIGINAL ---------------

Похоже я дал некорректное описание по проблеме. Сейчас попытался повторить ситуацию у себя. В принципе, при удалении шаблона, приложения, которые были подключены, удаляются корректно в обоих версиях, и 1.8.4 и 1.8.5.
Проблема выглядит иначе, в обоих версиях...
1. Создаем шаблон (1_CreateTemplate)
2. Создаем элемент с приложением (2_CreateItem)
3. Создаем хост и подключаем к нему шаблон (3_CreateHost)
4. Видим, что к хосту подключены приложение из шаблона (4_Host_ShowApp) и собственно элемент (5_Host_ItemConf)
5. Удаляем из шаблона элемент (6_Template_ItemDelete)
6. Видим, что в конфигурации хоста элемента уже нет, а вот приложение, которое было привязано к элементу, подключено по прежнему.
7. Открываем конфигурацию приложений хоста (8_Host_ShowApp)
8. Удаляем приложение (9_Host_DeleteApp)
9. Получаем ошибку (10_Host_DeleteApp_Error)

В принципе, все отрабатывается корректно, т.к. действитенльно, шаблон к хосту еще подключен. После удаления приложения в шаблоне, приложение также удаляется и в хосте.
ТТ открыт ошибочно.

Comment by Dmitrij Gavrilenko [ 2011 Apr 26 ]

ТТ открыт ошибочно.

Comment by Alexander Vladishev [ 2011 Apr 26 ]

Спасибо! Проблема закрыта.

Comment by Dmitrij Gavrilenko [ 2011 Jun 10 ]

Good afternoon.
I think I could repeat this problem.

So ....

Create templates: 1_GDG_Template to "application" App-1, 2_GDG_Template with the "application" App-2 and 3_GDG_Template with the "application" App-3. Elements can not sozdvat.
Create Host: GDG_test.

1) If the host link the only one! template, then its off "application" is removed from the host configuration is normal!
2) If the host to connect two or more patterns (see file: 2011.06.10 Host_Config.jpg), which is the "application", then there comes a moment:

  • If, when disconnecting from a host of templates to begin to remove them from the top of the list of templates (see file: 2011.06.10 List_Template.jpg), in my case, the first disconnect - 1_GDG_Template, vtoroym - 2_GDG_Template, and the third 3_GDG_Template (IMPORTANT! list in This window always start from the top!), then all elements (application, item, triggers) from the host will be removed properly and counters on these elements will be equal to - 0.
  • If at first try to remove the second or third template from the list (not the first: 1_GDG_Template), then this pattern from the host to disconnect, but the number of "applications" in the host configuration will be three and not two (see file: 2011.06.10 Remove_Template. jpg)! In this case, if you try to remove the "application" of the host configuration manually, then get an error (see file: 2011.06.10 Remove_Application_Error.jpg). I want to draw attention to the fact that the name "application" in the configuration of the host is left with a name already disabled Template: «2_GDG_Template: App-2".

The only way to remove the "application" (App-2) from the host, which I found it to reconnect template 2_GDG_Template and will remove all the templates from top to bottom before you want to delete.

The problem manifests itself precisely in versions 1.8.4 and 1.8.5

Another question, is not the problem, but also connected with "applications". If you have created two templates, such as one for handling TRAPs, the second for polling interfaces for SNMP, but in both patterns is the "application": "E1 Interface," Interface E2 ", etc. .. As a result, the menu "Monitoring -> LastValue" conveniently infformatsiyu all on one interface to look down on the spot! But two such template can not be connected to a single host. When adding the second error will appear that the application has already been created. As a result, have to remove "application" in one of the templates and then assign all the elements of "application" by hand. Which is very inconvenient! Tell me this is a bug or Fitch? And how can we fix it (whether to open an additional request)?

Thank you.

--------------- ORIGINAL ---------------

Добрый день.
Кажется, мне удалось повторить проблему.

Итак....

Создаем шаблоны: 1_GDG_Template с "приложением" App-1, 2_GDG_Template с "приложением" App-2 и 3_GDG_Template с "приложением" App-3. Элементы можно не создвать.
Создаем хост: GDG_test.

1) Если к хосту прилинковать только ОДИН! шаблон, то при его отключении "приложение" удаляется из конфигурации хоста нормально!
2) Если к хосту подключить два и более шаблонов (см. файл: 2011.06.10 Host_Config.jpg), в которых есть "приложения", то возникают момент:

  • Если, при отсоединении шаблонов от хоста начинать их удалять с верхнего в списке шаблонов (см. файл: 2011.06.10 List_Template.jpg), в моем случае первым отсоединить - 1_GDG_Template, второым - 2_GDG_Template, а третьим 3_GDG_Template (ВАЖНО! По списку в данном окне всегда начинать с верхнего!), то все элементы(application, item, triggers) из хоста будут удалены корректно и счетчики по этим элементам будут равны - 0.
  • Если, попытаться вначале удалить второй или третий шаблон из списка (не первый: 1_GDG_Template), то шаблон данный от хоста отсоединиться, но количество "приложений" в конфигурации хоста останется ТРИ, а не ДВА (см. файл: 2011.06.10 Remove_Template.jpg)! При этом, если попытаться удалить "приложение" из конфигурации хоста вручную, то получим ошибку (см. файл: 2011.06.10 Remove_Application_Error.jpg). Хочу обратить внимание на то, что имя "приложения", в конфигурации хоста, осталось вместе с именем уже отключенного шаблона: «2_GDG_Template:App-2».

Единственным способом удалить "приложение" (App-2) из хоста, который я нашел, это подключить повторно шаблон 2_GDG_Template и выполнить удаление всех шаблонов сверху вниз до того, который необходимо удалить.

Проблема проявляется точно в версиях 1.8.4 и 1.8.5

Еще вопрос, не по проблеме, но тоже связан с "приложениями". Если созданы два шаблона, например, один для обработки TRAPs, второй для опроса интерфейсов по SNMP, но в обоих шаблонах есть "приложения": "Интерфейс Е1", "Интерфейс Е2" и т.д... В результате, в меню "Monitoring -> LastValue" удобно всю инфформацию по одному интерфейсу смотреть в о дном месте! Но два таких шаблона нельзя подключить к одному хосту. При добавлении второго появится ошибка о том, что приложение уже создано. В результате приходиться удалять "приложения" в одном из шаблонов и потом всем элементам назначать "приложение" вручную. Что крайне не удобно! Скажите, это баг или фитча? И можно ли это исправить(нужно ли открывать дополнительный запрос)?

Спасибо.

Comment by richlv [ 2011 Jun 13 ]

i'll dump google translate results for relevant parts here...

Comment by Alexey Fukalov [ 2011 Jul 12 ]

Problem with same applications on templates is known: ZBX-2847

Comment by Eduards Samersovs (Inactive) [ 2011 Jul 13 ]

dev branch: ZBX-3426

Comment by Eduards Samersovs (Inactive) [ 2011 Jul 13 ]

branche/1.8 revision 20540

Generated at Thu Apr 25 06:55:41 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.