Hello there,

I'm new to zenoss. I do know some programming, but for me the custom reporting 
ability of zenoss is giving me headaches as well. 

What I want is a list of devices with extra columns for manage IP, serial 
number and possible other fields that are available through SNMP, with a 
selection of only the devices in a certain class (custom class "Netscreen"). 

I've tried the /main_manage view of the All Devices report. I was wondering if 
and how it is possible to add fields to a report. As I understand from the 
documentation that is available so far, this is where the 'meat of the report' 
goes: 


Code:
<tal:block metal:fill-slot="contentPane">
                <form method="POST" tal:attributes="action request/URL;"
                                        tal:define="tabletitle string:All 
Devices;
                                        showfilterbox python:True;
                                                                tblcolspan 
string:6">
                <tal:block metal:use-macro="here/zenuimacros/macros/zentable">
                <tal:block metal:fill-slot="zentablecontents">
                
            <span 
metal:use-macro="here/deviceListMacro/macros/devListReportBody" 
                    tal:omit-tag="" />  

                </tal:block>
                </tal:block>
                </form>
        
        </tal:block>



If I'm correct, the ZenTableManager.py is responsible for the available data 
fields in this 'devListReportBody'. (Please correct me if I'm wrong here 
though). 

Now my question is: 
1: is it possible to add a column with another OID (e.g. serial number) to a 
report by adding a function to this ZenTableManager? If so, how? Or is there an 
easier way?
2: is it possible to add a filter for a certain class to a report by adding 
this filter to the ZenTableManager? (I know the filter could be made by typing 
the class name in the report front-end, but I think it would be more elegant to 
have a 'pre-fab' filter in the back-end for this report. )

Thanks for your time and effort. 

Regards,

Sabrina

------------------------
Sabrina Filemon




-------------------- m2f --------------------

Read this topic online here:
http://community.zenoss.com/forums/viewtopic.php?p=8077#8077

-------------------- m2f --------------------



_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users

Reply via email to