[ZBX-3286] Ability to automatically/manually delete discovered resources (low level discovery). Created: 2010 Dec 13 Updated: 2017 May 30 Resolved: 2011 Dec 21 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Frontend (F), Server (S) |
Affects Version/s: | 1.9.1 (alpha) |
Fix Version/s: | 1.9.9 (beta) |
Type: | Incident report | Priority: | Blocker |
Reporter: | Oleksii Zagorskyi | Assignee: | Unassigned |
Resolution: | Fixed | Votes: | 13 |
Labels: | discovery, lld | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified | ||
Environment: |
latest trunk |
Attachments: |
![]() |
||||||||
Issue Links: |
|
Description |
Now the auto-added resources (items, triggers) can not be deleted. Only graph can be manually deleted - i think tis is bug. Need to come up with a mechanism for automatic/manual removal of obsolete resources. I do not have a clear vision of how it should look, but I think that should be able to manually remove these obsolete resources, for example they should be made available for manual deletion (not obsolete resources should stay unavailable for deletion). This is the case if automatic deletion is not enabled. as discussed with Aleksandrs Saveljevs i mark this issue as "blocker" |
Comments |
Comment by Paxos [ 2011 Apr 27 ] | ||||
Having the same issue with 1.9.3. I think the current logic of keeping auto-generated resources around after they disappear from discovery is the way to go. However, these items must be able to be removed manually and not auto-removed. | ||||
Comment by Marcin GapiĆski [ 2011 Oct 14 ] | ||||
It would be great if there was an option to choose what to do when discovered item is no longer present. I can think of two possible scenarios: delete that item automatically or disable it and allow for manual removal. That would certainly decrease resources usage on rapidly changing monitoring environment. | ||||
Comment by Yoav Steinberg [ 2011 Nov 08 ] | ||||
I'd really like to see an option to auto remove discovered items. For things like file system or net interfaces this might not be critical, and we might want to continue seeing these items after we remove them. But other use cases like for monitoring instances of a process on a system that spawn new processes based on some external input (rapidly changing system) there should be an option to automatically delete the discovered items after they disappear. | ||||
Comment by Alexei Vladishev [ 2011 Nov 16 ] | ||||
A new global (Administration->General->???) configuration parameter will define life time of lost items. If an item exceeds the period, it will be removed and a new record for housekeeper will be added as well. | ||||
Comment by Alexey Pustovalov [ 2011 Nov 21 ] | ||||
maybe do better not global? host level or discovery? | ||||
Comment by richlv [ 2011 Nov 21 ] | ||||
lld rule level would seem to be most appropriate. for example, we might have a host which has network interfaces quite rapidly changed, thus we know that interface going down would allow us to mostly safely remove it after 3 days. on the other hand, disk volumes going away would be less frequent, and data would be more important in the long term, thus we would like to have those items only removed after 2 weeks have passed | ||||
Comment by Alexei Vladishev [ 2011 Nov 23 ] | ||||
Sure, it's better to keep it on lld level with support of user macros (template, host, global). | ||||
Comment by Alexey Fukalov [ 2011 Dec 05 ] | ||||
New field "lifetime varchar(64)" is added to "items" table. Allows usermacro or number in days. | ||||
Comment by Pavels Jelisejevs (Inactive) [ 2011 Dec 06 ] | ||||
(1) GUI Same for validatePortNumber() <Vedmak> RESOLVED <pavels> CLOSED. | ||||
Comment by Pavels Jelisejevs (Inactive) [ 2011 Dec 06 ] | ||||
(2) GUI <Vedmak> RESOLVED <pavels> CLOSED. | ||||
Comment by Pavels Jelisejevs (Inactive) [ 2011 Dec 06 ] | ||||
(3) GUI <Vedmak> CLOSED | ||||
Comment by Pavels Jelisejevs (Inactive) [ 2011 Dec 06 ] | ||||
(4) DOC <Vedmak> I'll update db and api docs, and put separate paper on the board for it. <pavels> Db and API docs are ok. CLOSED. | ||||
Comment by Alexander Vladishev [ 2011 Dec 06 ] | ||||
(5) [DB] DB patches <Vedmak> RESOLVED | ||||
Comment by Pavels Jelisejevs (Inactive) [ 2011 Dec 06 ] | ||||
(6) GUI <Vedmak> RESOLVED <pavels> CLOSED. | ||||
Comment by Alexander Vladishev [ 2011 Dec 06 ] | ||||
(7) [GUI] when creating/updating a discovery rule with 'Keep lost resources period (in days)' = 0 an error occurs: <Vedmak> RESOLVED <pavels> CLOSED. | ||||
Comment by richlv [ 2011 Dec 06 ] | ||||
(8) api docs (to avoid overloading (4)) b) also should be listed at http://www.zabbix.com/documentation/2.0/manual/appendix/api/changes_1.8_-_2.0 <Vedmak> RESOLVED <richlv> do we have a rule on class naming ? because now we have "TemplateScreen" and "Discoveryrule" - would be nice to settle on either camelcase or something. <zalex> last question moved to | ||||
Comment by Pavels Jelisejevs (Inactive) [ 2011 Dec 07 ] | ||||
GUI is TESTED. | ||||
Comment by Alexander Vladishev [ 2011 Dec 07 ] | ||||
A server side is ready to test! <dimir> Great! Please review my changes that allow it to work without graph prototypes in r23965 . | ||||
Comment by Oleksii Zagorskyi [ 2011 Dec 08 ] | ||||
I could not to not test the dev branch ASAP >>> 15557:20111208:010525.923 poller #1 spent 2.178640 seconds while updating 1 values
real 0m1.965s | ||||
Comment by Oleksii Zagorskyi [ 2011 Dec 08 ] | ||||
(9) An item, has been not passed through the filter but doesn't deleted yet, still continue to be monitored: mysql> select i.lastclock, d.lastcheck from items i, item_discovery d where i.itemid=25905 and i.itemid=d.itemid;
-----------
----------- Is it ok by design? added: How is else the user can understand that some resources are not discovered anymore? <zalex> some part moved to the | ||||
Comment by Oleksii Zagorskyi [ 2011 Dec 08 ] | ||||
(11) I would suggest to change default value 0 days for "Keep lost resources period (in days)" to for instance 1 day when an user creates new discovery rule. It's danger behavior. The user has to set 0 day only when he is understanding what he doing. <zalex> moved to | ||||
Comment by Ghozlane TOUMI [ 2011 Dec 09 ] | ||||
Hi.
That way the user can choose between automatic and manual creation / deletion, That could allow some nw use cases like : | ||||
Comment by dimir [ 2011 Dec 14 ] | ||||
Note, until svn diff svn://svn.zabbix.com/branches/dev/ZBX-4425 -c r23945 in order to test it. | ||||
Comment by Alexey Fukalov [ 2011 Dec 21 ] | ||||
merged: svn://svn.zabbix.com/trunk 24129 | ||||
Comment by Alexey Fukalov [ 2011 Dec 21 ] | ||||
Additional improvements will be implemented in | ||||
Comment by Oleksii Zagorskyi [ 2011 Dec 21 ] | ||||
Reopened to close (move) some comments; | ||||
Comment by Oleksii Zagorskyi [ 2011 Dec 21 ] | ||||
Closed again. | ||||
Comment by Nelson Rotunno [ 2014 Jul 29 ] | ||||
I've been looking around on the forums and whatnot and it seems like there is still no way to manually delete discovered resources, it would be great to see that added. At least in my case, many (nearly 30) unnecessary network interfaces are added via the discovery rule and even though it is possible to disable the new items as a whole, I find this rather "polluting" to my setting. I see no reason to leave those items there and I can't just recreate the host since I want to keep its historical data. Besides, those items won't get scheduled for auto cleanup because they're still discovered, I simply don't want them around anymore. |