My configuration depends heavily on setting this zProperty (zDeviceTemplates) 
at many levels; I don't use the Device template at all for most device classes, 
but have broken it up into many smaller templates to better capture data 
without OID errors.

This system thinks that it *does* have local overrides for this property:

>>> dmd.Devices.isLocal("zDeviceTemplates")
True
>>> dmd.Devices.Server.isLocal("zDeviceTemplates")
True
>>> dmd.Devices.Server.Linux.isLocal("zDeviceTemplates")
True

And it does show up in the dictionary:

>>> dmd.Devices.Server.Linux.__dict__
{'zIpServiceMapMaxPort': 8090, 'SuSe': <DeviceClass at SuSe>, 'zSnmpVer': 
'v2c', 'rrdT  emplates': <ToManyContRelationship at rrdTemplates>, 'BlueCat': 
<DeviceClass at BlueCa  t>, 'Remote': <DeviceClass at Remote>, 'id': 'Linux', 
'laterRedHat': <DeviceClass at l  aterRedHat>, 'description': '', 
'maintenanceWindows': <ToManyContRelationship at maint enanceWindows>, 
'zDeviceTemplates': ['xUCDlaLoadInt5', 'xUCDssCpuBasic', 'xUCDmemoryBasic', 
'xSysUpTime', 'xNPcheck_ntp'], 


Thanks for looking at this....



jplouis wrote:
> The zProperties are all set the / or /Devices level of the device class 
> hierarchy.  All the sub device classes "inherit" the zProperties from their 
> parent.  You can override zProperty values at different levels in the 
> hierarchy but by default the sub device classes don't have any locally set 
> zProperties.
> 
> It is a little odd because the Server and Linux classes are returning 
> different templates than /Devices
> 
> Try running:
> 
> >>> dmd.Devices.isLocal("zDeviceTemplates")
> True
> >>> dmd.Devices.Server.isLocal("zDeviceTemplates")
> False
> >>> 
> 
> Also try the following to see the internals of the objects,
> dmd.Devices.__dict__
> and
> dmd.Devices.Server.__dict__





-------------------- m2f --------------------

Read this topic online here:
http://forums.zenoss.com/viewtopic.php?p=32638#32638

-------------------- m2f --------------------



_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users

Reply via email to