Hmm....

I followed your advise and instead of modifying a local copy of the device 
template a created a custom template with the check and bound it to the host.  
Unfortunately it didn't seem to do anything and zencommand insists "schedule 
has 0 commands" even with a restart.

I then tried creating the same exact custom template in a different part of the 
device tree and bound it to a different host and it worked fine!  zencommand 
picks it up and states "schedule has 1 commands" and an rrd was generated, etc.

Unfortunately when I bind that same template to the original host nothing 
happens.  zencommand says "schedule has 0 commands", etc.

I noticed the following in zenhub.log:



Code:

2008-05-19 13:54:14 ERROR zenhub: device stupiddevice.mydomain.com
Traceback (most recent call last):
  File "/opt/zenoss/Products/ZenHub/services/CommandConfig.py", line 39, in 
getDataSourceCommands
    cmdinfo = dev.getDataSourceCommands()
  File "/opt/zenoss/Products/ZenModel/Device.py", line 651, in 
getDataSourceCommands
    for o in self.getMonitoredComponents(collector="zencommand"):
  File "/opt/zenoss/Products/ZenModel/Device.py", line 530, in 
getMonitoredComponents
    collector=collector, type=type)
  File "/opt/zenoss/Products/ZenModel/Device.py", line 553, in 
getDeviceComponents
    return [c.getObject() for c in brains]
  File "/opt/zenoss/lib/python/Products/ZCatalog/CatalogBrains.py", line 77, in 
getObject
    parent = parent.unrestrictedTraverse(path[:-1])
  File "/opt/zenoss/lib/python/OFS/Traversable.py", line 221, in 
unrestrictedTraverse
    next=obj[name]
  File "/opt/zenoss/lib/python/OFS/ObjectManager.py", line 713, in __getitem__
    raise KeyError, key
KeyError: 'Controller'




This log entry is for the device I'm having problems with.  I'm suspecting 
either a Zope database corruption or more likely a bug.

Thanks for your help btw.




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

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

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



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

Reply via email to