Skip navigation
Currently Being Moderated

Menu Examples ZenPack

VERSION 3  Click to view document history
Created on: Nov 17, 2011 6:17 AM by jcurry - Last Modified:  Jan 13, 2012 7:25 AM by jcurry

Developed by: Jane Curry                       ZCA_Logo__Three_O_80x64.png           


Provides example code for developing new menus with Zenoss 3.x.



New device class added with extension to to Add Device menu.  Also, completely new footer menu.




New option on device list Action menu - runs a predefined command.



Component menus for Example Component (new component) and Hard Disks (existing component).

New left-hand menus, one of which is restricted to specific device object class.

Override existing Modifications menu.



Extend the Display dropdown menu for a component using Zenoss 2.x and Zenoss 3.x methods.



New left-hand menu displays table of SNMP attributes, standard Graphs and table with Group membership.

Bottom table also has dropdown menu, created in objects.xml, that provide an information popup (My Drop Down

Menu 2) and a prompt box to change device attribute (My Drop Down Menu 1).




New footer bar menu with existing "Model Device" option, option to run predefined command and option to prompt

user for updates to comment and rackSlot attributes of a device.




Extending the device Action menu.






The ZenPack has the following new Device Class

  • /Devices/Example/TestClass
  • Components are:
    • ExampleComponent which has details for:
      • Device description, Status and Errors for device components gathered using the Host Resources MIB

Modeler plugins are deliberately kept simple:

  • community.snmp.ExampleHostResourcesSNMP
    • Gathers component device information from the Host resources MIB for device Description, Status and Errors
  • community.cmd.ExampleCMD
    • Gathers hard disk information using a df command

Device component template ExampleComponent collects devErrors values from Host Resources MIB and graphs it


Lots of example menu code in:

  • configure.zcml
  • browser/configure.zcml
  • browser/resources/js  for serveral javascript examples
  • browser/templates for various new-style skins files


README.markdown used to display large readme in github.



zenhub and zopectl must be recycled after installing the ZenPack.


  • Zenoss Versions Supported: 3.0
  • External Dependencies:
  • ZenPack Dependencies:
  • Installation Notes: zopectl restart after installing this ZenPack.
  • Configuration:


Change History:

  • 1.0.3 initial release

Tested: This ZenPack was tested with Zenoss 3.1 and Zenoss 3.2.1


Known issues:

Note: binary attachments ending in .zip will need to be unzipped before use.
Comments (1)