I am currently trying to modify the interface report and create it to search
for explicit device names(testing with local), and specific os outputs(testing
with eth). The error in zenoss comes up with this response:
Type: NameError
Value: global name 'interface' is not defined
Traceback (innermost last):
* Module ZPublisher.Publish, line 114, in publish
* Module ZPublisher.mapply, line 88, in mapply
* Module ZPublisher.Publish, line 40, in call_object
* Module Products.ZenModel.Report, line 93, in __call__
* Module Products.PageTemplates.PageTemplate, line 104, in pt_render
<ZopePageTemplate at /zport/dmd/Reports/Performance Reports/VOD Interface
Utilization/VOD Interface Utilization>
* Module TAL.TALInterpreter, line 206, in __call__
* Module TAL.TALInterpreter, line 250, in interpret
* Module TAL.TALInterpreter, line 477, in do_setLocal_tal
* Module Products.PageTemplates.TALES, line 221, in evaluate
URL: /zport/dmd/Reports/Performance Reports/VOD Interface Utilization/VOD
Interface Utilization
Line 1, Column 0
Expression: <PythonExpr
here.ReportServer.plugin('interfaceusage',here.REQUEST)>
Names:
{'container': <Report at /zport/dmd/Reports/Performance Reports/VOD
Interface Utilization>,
'context': <Report at /zport/dmd/Reports/Performance Reports/VOD
Interface Utilization>,
'default': <Products.PageTemplates.TALES.Default instance at
0x2b018175bcf8>,
'here': <Report at /zport/dmd/Reports/Performance Reports/VOD Interface
Utilization>,
'loop': <Products.PageTemplates.TALES.SafeMapping object at 0x1aeccc68>,
'modules': <Products.PageTemplates.ZRPythonExpr._SecureModuleImporter
instance at 0x2b0181763128>,
'nothing': None,
'options': {'args': ()},
'repeat': <Products.PageTemplates.TALES.SafeMapping object at
0x1aeccc68>,
'request': <HTTPRequest,
URL=http://172.29.97.10:8080/zport/dmd/Reports/Performance%20Reports/VOD%20Interface%20Utilization>,
'root': <Application at >,
'template': <ZopePageTemplate at /zport/dmd/Reports/Performance
Reports/VOD Interface Utilization/VOD Interface Utilization>}
* Module Products.PageTemplates.ZRPythonExpr, line 47, in __call__
__traceback_info__:
here.ReportServer.plugin('interfaceusage',here.REQUEST)
* Module Python expression
"here.ReportServer.plugin('interfaceusage',here.REQUEST)", line 1, in
<expression>
* Module Products.ZenReports.ReportServer, line 58, in plugin
* Module interfaceusage, line 14, in run
NameError: global name 'interface' is not defined
I will post the files for the python code and the utility code if needed but i
am wondering what I am doing wrong on this code, I have used tab instead of
spacebar and tested the .py code to make sure the error isnt in that. I think
its something within my .rpt file. if anyone could assist I would appreciate
it. thank you.
-------------------- m2f --------------------
Read this topic online here:
http://forums.zenoss.com/viewtopic.php?p=37953#37953
-------------------- m2f --------------------
_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users