Developed by: Jane Curry
Description:
Provides example code for developing new menus with Zenoss 3.x.
Screenshots:
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.
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
- ExampleComponent which has details for:
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: