Hi,
I've done a python script to add templates to my servers based on running
processes, and I could not get the zDeviceTemplates property for some devices,
but using the web interface I can see them having a value.
This is running local to the zenoss server. Am I doing something wrong ?:
#!/usr/bin/env python
import Globals
from Products.ZenUtils.ZenScriptBase import ZenScriptBase
dmd = ZenScriptBase(connect=True).dmd
devClass = '/Devices'
org = dmd.Devices.getOrganizer(devClass)
for node in org.getSubDevicesGen():
template = node.getProperty('zDeviceTemplates')
if template is None:
print ' server: %s class: %s *** No template **' % (node.getId(),
node.getDeviceClassPath())
Regards.
Nelson
-------------------- m2f --------------------
Read this topic online here:
http://forums.zenoss.com/viewtopic.php?p=34952#34952
-------------------- m2f --------------------
_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users