Easiest way to do it is to call the JSON API. You can find example code and documentation here:
http://community.zenoss.org/community/documentation/official_documentation/api
Reply to this message by replying to this email -or- go to the message on Zenoss Community
Start a new discussion in zenoss-users by email or at Zenoss Community
Gmane