Discussion:
Custom Device Report Query
David Welsh
2011-11-02 21:13:20 UTC
Permalink
David Welsh [http://community.zenoss.org/people/Welsh] created the discussion

"Custom Device Report Query"

To view the discussion, visit: http://community.zenoss.org/message/62365#62365

--------------------------------------------------------------
Hey,

I'm trying to make a Custom Device Report that will only show the devices that are in a certain group, I was digging around google and found this Query:

here.getDeviceGroupNamesAsString().find("/Group Name")

However, it doesn't work. I've tried playing around with variations of the above but have been unable to find some documentation to allow me to get what I need.

Any help would be appreciated,

Thanks
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/62365#62365]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
cgriebel
2011-11-03 18:21:31 UTC
Permalink
cgriebel [http://community.zenoss.org/people/cgriebel] created the discussion

"Re: Custom Device Report Query"

To view the discussion, visit: http://community.zenoss.org/message/62390#62390

--------------------------------------------------------------
Try
'/Group Name' in here.getDeviceGroupNames()
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/62390#62390]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Joe Lance
2011-12-29 00:03:40 UTC
Permalink
Joe Lance [http://community.zenoss.org/people/jlance] created the discussion

"Re: Custom Device Report Query"

To view the discussion, visit: http://community.zenoss.org/message/63466#63466

--------------------------------------------------------------
'/Group Name' in here.getDeviceGroupNames() doesn't work


'/Group Name' in here.getDeviceGroupNamesAsString() works

You do need to create the method  getDeviceGroupNamesAsString() if you haven't already as shown here

http://community.zenoss.org/docs/DOC-2493 http://community.zenoss.org/docs/DOC-2493
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/63466#63466]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Loading...