[ZBX-5235] server doesn't use "lifetime" of discovery rule from template when links it to hosts Created: 2012 Jun 25  Updated: 2017 May 30  Resolved: 2012 Aug 29

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Server (S)
Affects Version/s: 2.0.1rc2, 2.1.0
Fix Version/s: 2.0.3rc1, 2.1.0

Type: Incident report Priority: Major
Reporter: Oleksii Zagorskyi Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: lld
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

a network discovery -> an action with linking a template with LLD to a host -> in the the host, the "lifetime" of the discovery rule is 30 (default of DB schema) instead a value from template (not 30).

Debuglog:
20122:20120625:023054.617 query [txnlev:1] [insert into items (itemid,name,key_,hostid,type,value_type,data_type,delay,delay_flex,history,trends,status,trapper_hosts,units,multiplier,delta,formula,logtimefmt,valuemapid,params,ipmi_sensor,snmp_community,snmp_oid,snmpv3_securityname,snmpv3_securitylevel,snmpv3_authpassphrase,snmpv3_privpassphrase,authtype,username,password,publickey,privatekey,templateid,flags,filter,description,inventory_link,interfaceid) values (26742,'Mounted filesystem discovery','vfs.fs.discovery',10205,0,4,0,60,'',90,365,0,'','',0,0,'1','',null,'','','','','',0,'','',0,'','','','',26479,1,'

{#FSTYPE}

:@File systems for discovery','Discovery of file systems of different types as defined in global regular expression "File systems for discovery".',0,30364),(26743,'Free disk space on $1 (percentage)','vfs.fs.size[

{#FSNAME}

,pfree]',10205,0,0,0,600,'',7,365,0,'','%',0,0,'1','',null,'','','','','',0,'','',0,'','','','',26481,2,'','',0,30364);



 Comments   
Comment by Alexander Vladishev [ 2012 Aug 22 ]

Fixed in the development branch svn://svn.zabbix.com/branches/dev/ZBX-5235

Comment by dimir [ 2012 Aug 27 ]

(1) [S] Same should be done for LLD.

<zalex> interesting, what that "LLD" means

<dimir> Right, sorry, I haven't explained. I mean that items created by LLD do not get the "lifetime" from LLD rule.

<zalex> hmm, it looks as another thing. Do items created by the LLD rule use "lifetime" ?
As I know created items use "item_discovery.ts_delete" field to control when they should be deleted.
Could you please clarify ?

<Sasha> items, created from item prototypes does not use own lifetime field. CLOSED

Comment by dimir [ 2012 Aug 29 ]

Successfully tested. Please check the small change in r29928.

<Sasha> Great! CLOSED

Comment by Alexander Vladishev [ 2012 Aug 29 ]

Fixed in pre-2.0.3 r29935 and pre-2.1.0 (trunk) r29936.

Generated at Sat Apr 27 00:03:40 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.