jscott
2013-05-15 12:23:12 UTC
jscott [http://community.zenoss.org/people/jscott] created the discussion
"zendmd vs Phantom RRD Template"
To view the discussion, visit: http://community.zenoss.org/message/73215#73215
--------------------------------------------------------------
I appear to have accidentally created a copy of an RRD Template (copy_of_CiscoTemperatureSensor) which I am unable to remove/delete from within the Zenoss or Zope interfaces. Zenoss is version 4.2.3
In Zenoss, under Advanced > Monitoring Templates, when I select the template, I get the following error: "AttributeError: deviceClass"
Loading Image... Loading Image...
In Zope, at /zport/dmd/Devices/Network/Switch/Cisco/rrdTemplates, I see the template. However selecting is and clicking Delete produces the following error:
Type: <class 'zExceptions.BadRequest'>
Value: copy_of_CiscoTemperatureSensor does not exist
Traceback (most recent call last): File "/opt/zenoss/lib/python/ZPublisher/Publish.py", line 126, in publish request, bind=1) File "/opt/zenoss/lib/python/ZPublisher/mapply.py", line 77, in mapply if debug is not None: return debug(object,args,context) File "/opt/zenoss/lib/python/ZPublisher/Publish.py", line 46, in call_object result=apply(object,args) # Type s<cr> to step into published object. File "/opt/zenoss/lib/python/OFS/ObjectManager.py", line 533, in manage_delObjects raise BadRequest, '%s does not exist' % escape(ids[-1]) BadRequest: copy_of_CiscoTemperatureSensor does not exist
Loading Image... Loading Image...
Some googling suggests trying such things as restarting Zope, restarting Zenoss, enter in zendmd and reindex()'ing -- all to no avail. Interesingly, I am able to "See" the RRD Template in zendmd, but I am not sure how I can delete it from within the CLI.
   d = dmd.Devices.Network.Switch.Cisco
    d.rrdTemplates()
   [<RRDTemplate at /zport/dmd/Devices/Network/Switch/Cisco/rrdTemplates/copy_of_CiscoTemperatureSensor>]
My questions are:
1. +Can+ I delete this phantom template from within zendmd? If so, how?
2. Is there any documentation of the zendmd environment? It seems very useful, but incredibly vast.
--------------------------------------------------------------
Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/73215#73215]
Start a new discussion in zenoss-users at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
"zendmd vs Phantom RRD Template"
To view the discussion, visit: http://community.zenoss.org/message/73215#73215
--------------------------------------------------------------
I appear to have accidentally created a copy of an RRD Template (copy_of_CiscoTemperatureSensor) which I am unable to remove/delete from within the Zenoss or Zope interfaces. Zenoss is version 4.2.3
In Zenoss, under Advanced > Monitoring Templates, when I select the template, I get the following error: "AttributeError: deviceClass"
Loading Image... Loading Image...
In Zope, at /zport/dmd/Devices/Network/Switch/Cisco/rrdTemplates, I see the template. However selecting is and clicking Delete produces the following error:
Type: <class 'zExceptions.BadRequest'>
Value: copy_of_CiscoTemperatureSensor does not exist
Traceback (most recent call last): File "/opt/zenoss/lib/python/ZPublisher/Publish.py", line 126, in publish request, bind=1) File "/opt/zenoss/lib/python/ZPublisher/mapply.py", line 77, in mapply if debug is not None: return debug(object,args,context) File "/opt/zenoss/lib/python/ZPublisher/Publish.py", line 46, in call_object result=apply(object,args) # Type s<cr> to step into published object. File "/opt/zenoss/lib/python/OFS/ObjectManager.py", line 533, in manage_delObjects raise BadRequest, '%s does not exist' % escape(ids[-1]) BadRequest: copy_of_CiscoTemperatureSensor does not exist
Loading Image... Loading Image...
Some googling suggests trying such things as restarting Zope, restarting Zenoss, enter in zendmd and reindex()'ing -- all to no avail. Interesingly, I am able to "See" the RRD Template in zendmd, but I am not sure how I can delete it from within the CLI.
   d = dmd.Devices.Network.Switch.Cisco
    d.rrdTemplates()
   [<RRDTemplate at /zport/dmd/Devices/Network/Switch/Cisco/rrdTemplates/copy_of_CiscoTemperatureSensor>]
My questions are:
1. +Can+ I delete this phantom template from within zendmd? If so, how?
2. Is there any documentation of the zendmd environment? It seems very useful, but incredibly vast.
--------------------------------------------------------------
Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/73215#73215]
Start a new discussion in zenoss-users at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]