[ZBX-7730] Add/Delete items on LLD after changing the Regular Expressions Created: 2014 Jan 30  Updated: 2017 May 30  Resolved: 2014 Feb 14

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Server (S), Templates (T)
Affects Version/s: 2.2.1
Fix Version/s: None

Type: Incident report Priority: Major
Reporter: yuusou Assignee: Unassigned
Resolution: Won't fix Votes: 0
Labels: lld, regexps
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

CentOS 6.5 x64; Percona XtraDB Cluster 5.6; 32G RAM; 450GB HDD.



 Description   

When editing regular expressions associated to a Low Level Discovery item, items are not create nor deleted with that change.
I believe this should be part of the process of discovery.

Steps to reproduce.:

  • Create an LLD item for SNMP ifAliases which has the {#SNMPVALUE}

    with the filter @Network interfaces for discovery.

  • Associate this template to a host and let it be discovered.
  • You edit the @Network interfaces for discovery and add in 3 » Bearer Channel [Character string not included].
  • Items, triggers and graphs aren't removed based on that filter.
  • Unlink and Clear the template from a host, save, then re-add, Zabbix fetches only the correct items, but loses all history and trends.
  • Remove 3 » Bearer Channel [Character string not included] but Zabbix won't re-discover the items.
  • Unlink and Clear the template from a host, save, then re-add, Zabbix fetches all the items, but loses all history and trends once again.

I done this test with SNMP, but I believe it's the same with the Agent.



 Comments   
Comment by Aleksandrs Saveljevs [ 2014 Jan 30 ]

In discovery rule configuration, what value do have "Keep lost resources period (in days)" set to? It is 30 days by default. If you wish to remove discovered items that do not match the filter anymore immediately, you should set the field to 0 days.

Comment by yuusou [ 2014 Jan 30 ]

I changed "Keep lost resources" to 0 and it made no difference. Wouldn't Zabbix then mark the items as "Not Supported"? That didn't happen and they're being updated, so I believe they're being kept in.

I just done the test with a 7 » Null [Character string not included] regex to remove "Null" interfaces (and consequently "VoIP-Null") but the items remained. I also changed the Update Interval to 60 to speed up this test.

Comment by Alexander Vladishev [ 2014 Feb 14 ]

Items, triggers and graphs will recreated only after receiving a new discovery data by Zabbix server. Frontend never make any changes in discovered entities.

New named regular expression will work only after refreshing the server configuration cache.

I'm closing the issue.

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