[ZBXNEXT-1490] Unable to use same SNMP trap item key with multiple interfaces Created: 2012 Oct 23  Updated: 2020 Jul 23

Status: Open
Project: ZABBIX FEATURE REQUESTS
Component/s: Frontend (F), Server (S)
Affects Version/s: None
Fix Version/s: None

Type: Change Request Priority: Major
Reporter: Alexey Pustovalov Assignee: Unassigned
Resolution: Unresolved Votes: 44
Labels: interface, items, snmptraps
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Causes
Duplicate
is duplicated by ZBXNEXT-1630 CLONE - Wishlist: add a third optiona... Closed
is duplicated by ZBXNEXT-4664 Allow duplicate discovery keys Closed
is duplicated by ZBXNEXT-1757 Require key uniqueness per interface ... Closed
is duplicated by ZBXNEXT-4382 Multiple icmp* items for one host Closed
is duplicated by ZBX-5380 Can't add Item with jmx agent with th... Closed
is duplicated by ZBX-5952 Support for multiple JMX keys on the ... Closed
is duplicated by ZBX-9514 Templates with the same discovery rule. Closed
is duplicated by ZBX-16298 JMX, Solution for problem with same K... Closed

 Description   

Zabbix does not allow use an SNMP trap item on hosts with multiple interfaces.
Zabbix does not support multiple identical keys on a one host.

I suggest allow create SNMP trap item without link to a interface by default.



 Comments   
Comment by richlv [ 2013 May 23 ]

ZBXNEXT-1757 might be about the same original issue

Comment by Oleksii Zagorskyi [ 2014 Jan 17 ]

check also ZBX-7569

Comment by Sorin Sbarnea [ 2014 Apr 04 ]

Considering that I have 7 JMX instances that are running on a single host, this limitation is huge.

Comment by Sorin Sbarnea [ 2014 Apr 04 ]

The problem applies for an huge number of cases: monitoring multiple HTTP ports on the same machine, multiple JMX instances, ....

Comment by Phil Smith [ 2014 Jun 26 ]

This limitation kills the JMX use case for hadoop clusters, which typically have many jvms per node.

Comment by Phil Smith [ 2014 Jun 26 ]

While we're thinking about JMX on multiple interfaces, it is typical for one set of keys to be common to all JVMs (heap size, etc), while others are application-specific counters that exist only in some interfaces.

Hopefully a solution will include an answer for how to either select which interfaces to query, or a way to gracefully ignore when the keys are absent.

Finally, the killer feature for the hadoop use case would be the ability to define such an item within a template. I have dozens of mapreduce nodes that all run jvms..

Comment by Marc [ 2014 Jun 26 ]

phs, the assigning could be easily done with ZBXNEXT-735#comment-83047.
In case item key uniqueness criteria is additionally made up of host interface (resp. alias on template level), then one might possibly do something like this:

Templates
A common JVM template is linked into application specific templates:
Template 'Common JVM' is linked into template 'Java App Foo'
Template 'Common JVM' is linked into template 'Java App Bar'

Items in template 'Common JVM' have no host interface alias/hint/label set.
All items (incl. linked/templated) in template 'Java App Foo' have a host interface alias 'FooApp' set.
All items (incl. linked/templated) in template 'Java App Bar' have a host interface alias 'BarApp' set.

Host
A host jboss.example.com has two JVM host interfaces:
JMX host interface 1 has an interface alias/hint/label 'FooApp' set.
JMX host interface 2 has an interface alias/hint/label 'BarApp' set.

Since uniqueness criteria takes host interface or host interface alias into account, one may link both application specific templates into the same host.
Proper host interfaces for items are selected based on interface aliases/labels/hints.

Comment by richlv [ 2016 Apr 25 ]

ZBXNEXT-1049 is remotely similar

Comment by richlv [ 2017 Sep 30 ]

general item-interface linkage covered in ZBXNEXT-735 , this issue seems to be specifically about snmp traps - suggested to update the summary

Comment by Glebs Ivanovskis (Inactive) [ 2018 Feb 14 ]

ZBXNEXT-3872 may help a bit here.

Comment by Sistemes [ 2019 Jun 26 ]

Hi, I guess the problem is because the "KEY of the element" is a "primary key" in the zabbix database.
My question is ... Why is the "primary key" in the database a "KEY in an element", and not a simple and unique identifier? For example, an autoincremental.

I'm sorry if my question is stupid or something else.

Comment by Sergio [ 2020 Apr 20 ]

Hi everyone.

I think that's an excellent question...

I also need to monitor more than one IP per host...

Generated at Thu Apr 25 20:24:07 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.