Discussion:
zendmd vs Phantom RRD Template
jscott
2013-05-15 12:23:12 UTC
Permalink
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]
jscott
2013-06-05 11:58:29 UTC
Permalink
jscott [http://community.zenoss.org/people/jscott] created the discussion

"Re: zendmd vs Phantom RRD Template"

To view the discussion, visit: http://community.zenoss.org/message/73492#73492

--------------------------------------------------------------
I've "resolved" this, but I am not sure what I did was The Right Way.

I looked in to the path referenced /zport/dmd/Devices/Network/Switch/Cisco/rrdTemplates/copy_of_CiscoTemperatureSensor this was the only place the errors indicated the phantom.  I moved all the devices out of the organizer /Devices/Network/Switch/Cisco.  Then I deleted the organizer. I recreated the organizer /Devices/Network/Switch/Cisco and restored all the Configuration Properties.  After, I moved all the devices back into the new/old organizer. 

The phantom template is no longer shown in the Monitor Templates section, neither under Group By "Template" or "Device Class".  I also no longer recieve the error messages.  I still am not sure what caused this problem, nor am I sure what would have been the correct way to fix it.

I am left wondering if there are more corrupt/broken item in this install that I just don't currently see.  I will most likely abandon this Zenoss installation and rebuild from scratch once an official Debian release becomes available.
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/73492#73492]

Start a new discussion in zenoss-users at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Loading...