Rajasekar M
2013-10-31 12:09:58 UTC
Rajasekar M [http://community.zenoss.org/people/ulce] created the discussion
"Error while selecting availability report under performance reports"
To view the discussion, visit: http://community.zenoss.org/message/75136#75136
--------------------------------------------------------------
Hi Folks,
I want to take availability report but unfortunately the report page is giving me the below error .
*Type: <type 'exceptions.KeyError'>*
*Value: u'ec2-54-208-77-122.compute-1.amazonaws.com'*
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/Products/ZenModel/Report.py", line 106, in __call__ return template.pt_render(extra_context={'options': kwargs}) File "/opt/zenoss/lib/python/Products/PageTemplates/ZopePageTemplate.py", line 431, in pt_render result = PageTemplate.pt_render(self, source, extra_context) File "/opt/zenoss/lib/python/Products/PageTemplates/PageTemplate.py", line 79, in pt_render showtal=showtal) File "/opt/zenoss/lib/python/zope/pagetemplate/pagetemplate.py", line 113, in pt_render strictinsert=0, sourceAnnotations=sourceAnnotations)() File "/opt/zenoss/lib/python/zope/tal/talinterpreter.py", line 271, in __call__ self.interpret(self.program) File "/opt/zenoss/lib/python/zope/tal/talinterpreter.py", line 343, in interpret handlers[opcode](self, args) File "/opt/zenoss/lib/python/zope/tal/talinterpreter.py", line 583, in do_setLocal_tal self.engine.setLocal(name, self.engine.evaluateValue(expr)) File "/opt/zenoss/lib/python/zope/tales/tales.py", line 696, in evaluate return expression(self) File "/opt/zenoss/lib/python/Products/PageTemplates/ZRPythonExpr.py", line 48, in __call__ return eval(self._code, vars, {}) File "PythonExpr", line 1, in <expression> File "/opt/zenoss/Products/ZenEvents/EventManagerBase.py", line 247, in getAvailability return Availability.query(self.dmd, **kw) File "/opt/zenoss/Products/ZenEvents/Availability.py", line 322, in query result = r.run(dmd) File "/opt/zenoss/Products/ZenEvents/Availability.py", line 305, in run accumulator[device] += (last - first) KeyError: u'ec2-54-208-77-122.compute-1.amazonaws.com'
Can you please let me know what will be issue and what needs to be done for this kind of errors.
Regards
Raj
--------------------------------------------------------------
Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/75136#75136]
Start a new discussion in zenoss-users at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
"Error while selecting availability report under performance reports"
To view the discussion, visit: http://community.zenoss.org/message/75136#75136
--------------------------------------------------------------
Hi Folks,
I want to take availability report but unfortunately the report page is giving me the below error .
*Type: <type 'exceptions.KeyError'>*
*Value: u'ec2-54-208-77-122.compute-1.amazonaws.com'*
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/Products/ZenModel/Report.py", line 106, in __call__ return template.pt_render(extra_context={'options': kwargs}) File "/opt/zenoss/lib/python/Products/PageTemplates/ZopePageTemplate.py", line 431, in pt_render result = PageTemplate.pt_render(self, source, extra_context) File "/opt/zenoss/lib/python/Products/PageTemplates/PageTemplate.py", line 79, in pt_render showtal=showtal) File "/opt/zenoss/lib/python/zope/pagetemplate/pagetemplate.py", line 113, in pt_render strictinsert=0, sourceAnnotations=sourceAnnotations)() File "/opt/zenoss/lib/python/zope/tal/talinterpreter.py", line 271, in __call__ self.interpret(self.program) File "/opt/zenoss/lib/python/zope/tal/talinterpreter.py", line 343, in interpret handlers[opcode](self, args) File "/opt/zenoss/lib/python/zope/tal/talinterpreter.py", line 583, in do_setLocal_tal self.engine.setLocal(name, self.engine.evaluateValue(expr)) File "/opt/zenoss/lib/python/zope/tales/tales.py", line 696, in evaluate return expression(self) File "/opt/zenoss/lib/python/Products/PageTemplates/ZRPythonExpr.py", line 48, in __call__ return eval(self._code, vars, {}) File "PythonExpr", line 1, in <expression> File "/opt/zenoss/Products/ZenEvents/EventManagerBase.py", line 247, in getAvailability return Availability.query(self.dmd, **kw) File "/opt/zenoss/Products/ZenEvents/Availability.py", line 322, in query result = r.run(dmd) File "/opt/zenoss/Products/ZenEvents/Availability.py", line 305, in run accumulator[device] += (last - first) KeyError: u'ec2-54-208-77-122.compute-1.amazonaws.com'
Can you please let me know what will be issue and what needs to be done for this kind of errors.
Regards
Raj
--------------------------------------------------------------
Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/75136#75136]
Start a new discussion in zenoss-users at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]