[ZBX-14444] unable to remove unnecessary interface Created: 2018 Jun 06  Updated: 2019 Dec 17  Resolved: 2018 Jun 11

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

Type: Incident report Priority: Trivial
Reporter: Jan Ostrochovsky Assignee: Unassigned
Resolution: Won't fix Votes: 0
Labels: configuration, host, interface, remove
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: Text File image-2018-06-06-21-33-34-671.png     File remove-button-inactive.mp4    

 Description   

Steps to reproduce:

  1. Assign template combining SNMPv2 and Simple items, e.g. Template Module Generic SNMPv2 (with linked Template Module ICMP Ping), to some host, but let the host have Agent and SNMP interface (e.g. by mistake). Save the host.
  2. Reopen the host.

Result:
"Remove" link is grey, unable to use it. Simple items from ICMP template are occupying Agent interface, SNMPv2 items SNMP interface.

I am able to move interfaces between types (Agent, SNMP, JMX, IPMI) and save with those changes, but not to remove any of them two.
Expected:
Remove one of redundant interfaces from the host and reassign its items to remaining interface (maybe with warning, maybe with confirmation from the user).

Workaround:

Unlink the template (with item clearing), remove unneeded interface, reassign the template. I think, this is not optimal, and it has taken me some time to realize, what is the cause of this behaviour. (I don't know, why the hosts had unneeded agent interfaces, probably configuration mistake or maybe experimentation...)



 Comments   
Comment by Aigars Kadikis [ 2018 Jun 08 ]

Hi, all.

I can confirm in version 3.4.10, that it is unable to remove accidentally attached "Agent interface" while the "Template Module Generic SNMPv2" and its historical data has not completely cleared from the host. remove-button-inactive.mp4

Regards,

Comment by Alexander Vladishev [ 2018 Jun 11 ]

This works as expected. SNMP items always link to the SNMP interface. Simple elements can be linked to any type of interface. When linking the template, these items will be linked to the interface in the following order of priority:

  1. Agent interface
  2. SNMP interface
  3. JMX interface
  4. IPMI interface

You can use item mass update functionality to change item interface for all Simple items within host.

Comment by Kevin Elmore [ 2019 Dec 17 ]

It would be nice to mass update this across multiple hosts. It works with a single host's multiple items, but it doesn't work if you have have multiple items from multiple hosts, and you want to change them all.

 

Could "Host Interface" be added to the list of available things to change when working with a set of items that spans multiple hosts? It just need to be shown between "Type" and "JMX Interface" in the Mass Update page.

Generated at Mon Jun 16 09:05:37 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.