Archived community.zenoss.org | full text search
Skip navigation
47821 Views 5 Replies Latest reply: Jan 19, 2010 9:03 PM by edahl RSS
ivayserfirov Rank: White Belt 4 posts since
May 13, 2008
Currently Being Moderated

Jan 13, 2010 1:50 PM

creating new device with zendmd

sorry for asking such a basic question but here we go:

trying to create new devices in bulk using zendmd. This is mostly copy/paste from the developer guide:

 

>>> for line in file('linux.txt'):

...         d = dmd.Devices.Server.createInstance(line.strip())

...         commit()

...         d.collectDevice()

...

Traceback (most recent call last):

  File "<console>", line 4, in ?

  File "/opt/zenoss/zenoss/Products/ZenModel/Device.py", line 1674, in collectDevice

    perfConf.collectDevice(self, setlog, REQUEST)

AttributeError: 'NoneType' object has no attribute 'collectDevice'

it appears that device is not being created properly. it does appear in the list of devices but running modeler on it through the GUI or zendmd fails with above error message. any ideas?
thank you
-iv

More Like This

  • Retrieving data ...

Legend

  • Correct Answers - 4 points
  • Helpful Answers - 2 points