On Dec 17, 2008, at 7:07 PM, david_sloboda wrote:
> I have created a few custom reports in the past.
> For this report, I would like to list  all IpServices monitored for  
> eight devices.
>
> What method should I use in the Column to display IpServices?
>
> I have the eight devices grouped under a class defined in /Systems
> In the report, my Query
>
> Code:
> here.getSystemNamesString().startswith("/SW")
>
>
> shows me the eight devices I want.  So far, so good.
>
> I understand that the  admin guide
> http://www.zenoss.com/community/docs/zenoss-guide/2.3.0/ch22s08.html
> where it says
> "The ability to create individual reports is largely dependent on  
> your ability to create python strings to get and display the  
> information"
> references the zenoss API.   I've looked at
> http://www.zenoss.com/community/docs/zenoss-api-docs/2.2/ZenModel.Device.Device-class.html
> and I know that I should be looking at methods that return a string.
>
> I don't know how to go from device.os.detail to get the IpServices
> I know that
> getDeviceComponentEventSummary
> is not what I want, but that's the only thing I have found to list  
> IpService in the output... just the heading, not the values.

No method currently exists that will get you this data. What you need  
is a method that gets the list of IP services for the device for which  
monitoring is enabled for. This list also needs to be formatted as a  
comma delimited string to work in a custom device report. Fortunately  
there exists an easy way to create your own methods to get at data  
that isn't already accessible. Take a look at the following article I  
just put up that explains how to do this.

Creating Methods for Custom Reports
http://www.zenoss.com/Members/cluther/creating-methods-for-custom-reports
_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users

Reply via email to