PDA

View Full Version : PATCH: recursive add/update/delete on templated items


philipp
31-01-2006, 01:40
Hi,

please find a patch attached, which adds recursive add/update/delete on templated items.

This allows one to have ie.

Template.basicHost
Template.Unix
Template.FreeBSD
Hosts.myhost

where myhost is linked to FreeBsd, which is linked to Unix, which is linked to basicHost

and have changes in basicHost replicated all the way down to myhost.

AWARE: the patch does not have any functionality for detection of endless recursion (ie. if FreeBSD would be linked to Unix and myhost, the script would go into an endless loop - i think :))

Alexei, can this functionality be included into the main source?
Also, can you think of anything else, which I have forgotten

YuriV
13-02-2006, 20:35
Do you happen to have one for Beta1.6 I tried manually patching but alas, it does not work. If i was a programmer i could probably figure it out..

Thanks in advance.

Alexei
13-02-2006, 22:14
Philipp,Thanks for your patch. Unfortunately I cannot include it into ZABBIX base code because currently we work on a better implementation for templating. Items has already been implemented (CVS), triggers and graph are coming very soon.