Archived community.zenoss.org | full text search
Skip navigation
6048 Views 0 Replies Latest reply: Jun 16, 2010 11:42 AM by jcurry RSS
jcurry ZenossMaster 1,021 posts since
Apr 15, 2008
Currently Being Moderated

Jun 16, 2010 11:42 AM

Updated Availabilty per Group Report ZenPack

I have had a go at updating this ZenPack so you can specify group, system, location or deviceclass as filters for the report.  You can find it at docs/DOC-5899 .

 

I have found an issue today whereby the standard performance availability has stopped working:

 

Update to this.  I am finding that the standard Reports -> Performance Reports -> Availability Report sometinmes doesn't work.  It's OK until you have run the new report; then the standard report produces an error:

Type: TypeError
Value: __init__() got an unexpected keyword argument 'systems'

 

Traceback (innermost last):

 

    * Module ZPublisher.Publish, line 119, in publish
    * Module ZPublisher.mapply, line 88, in mapply
    * Module ZPublisher.Publish, line 42, in call_object
    * Module Products.ZenModel.Report, line 93, in __call__
    * Module Products.PageTemplates.ZopePageTemplate, line 427, in pt_render
    * Module Products.PageTemplates.PageTemplate, line 98, in pt_render
    * Module zope.pagetemplate.pagetemplate, line 115, in pt_render
    * Module zope.tal.talinterpreter, line 271, in __call__
    * Module zope.tal.talinterpreter, line 346, in interpret
    * Module zope.tal.talinterpreter, line 586, in do_setLocal_tal
    * Module zope.tales.tales, line 696, in evaluate
      URL: /zport/dmd/Reports/Performance Reports/Availability Report/Availability Report
      Line 1, Column 0
      Expression: <PythonExpr zem.getAvailability(tableState)>
      Names:

 

      {'container': <Report at /zport/dmd/Reports/Performance Reports/Availability Report>,
       'context': <Report at /zport/dmd/Reports/Performance Reports/Availability Report>,
       'default': <object object at 0xb7bad538>,
       'here': <Report at /zport/dmd/Reports/Performance Reports/Availability Report>,
       'loop': {},
       'nothing': None,
       'options': {'args': ()},
       'repeat': <Products.PageTemplates.Expressions.SafeMapping object at 0xa15736c>,
       'request': <HTTPRequest, URL=http://zenoss:8080/zport/dmd/Reports/Performance%20Reports/Availability%20Report>,
       'root': <Application at >,
       'template': <ZopePageTemplate at /zport/dmd/Reports/Performance Reports/Availability Report/Availability Report>}

 

    * Module Products.PageTemplates.ZRPythonExpr, line 49, in __call__
      __traceback_info__: zem.getAvailability(tableState)
    * Module PythonExpr, line 1, in <expression>
    * Module Products.ZenEvents.EventManagerBase, line 1054, in getAvailability
    * Module Products.ZenEvents.Availability, line 294, in query

 

TypeError: __init__() got an unexpected keyword argument 'systems'

 

 

Neither the standard Products/ZenEvents/Availabilty.py nor the standard Products/ZenReports/Performance_Reports/Availability_Report.rpt has changed.

 

I believe it us to do with cacheing.  If you wait a while or bounce zopectl, then the standard report runs again.

 

Any ideas?

Cheers,

Jane

More Like This

  • Retrieving data ...

Legend

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