Archived community.zenoss.org | full text search
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           


Description:

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

Screenshots:

menus1.jpg

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

 

menus2.jpg

 

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

 

menus3.jpg

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.

 

menus6.jpg

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

 

menus7.jpg

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).

 

menus4.jpg

 

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.

 

menus5.jpg

 

Extending the device Action menu.

 

 

 

Components:

 

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
  • interfaces.py
  • info.py
  • routers.py
  • facades.py
  • command.py
  • 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.

 

Installation:

zenhub and zopectl must be recycled after installing the ZenPack.


Requirements:

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

History:

Change History:

  • 1.0.3 initial release

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

Source: https://github.com/jcurry/ZenPacks.skills1st.MenuExamples



Known issues:



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