TECHZEN Zenoss User Community ARCHIVE  

Customizing overview page with zProperty

Subject: Customizing overview page with zProperty
Author: [Not Specified]
Posted: 2016-11-22 01:42

An example how to modify overview page on github https://github.com/cluther/ZenPacks.example.CustomOverview/blob/master/ZenPacks/example/CustomOverview/resources/custom-overview-device.js show how add device property on overview page. Is there any way to add there zProperty of device



Subject: Grab a copy of the
Author: Jane Curry
Posted: 2016-11-30 12:52

Grab a copy of the ZenPackDevelopers' Guide at https://github.com/ZenossDevGuide/DevGuide .

Chapter 9.11 "Extending the ZenPack to modify the device Overview" expands on the CustomOverview ZenPack that you mention above.

Cheers,

Jane

Email: jane.curry@skills-1st.co.uk    Web: https://www.skills-1st.co.uk



Subject: I have built a small ZenPack
Author: Jane Curry
Posted: 2016-12-01 14:12

I have built a small ZenPack and included it on the DevGuide github repository -https://github.com/ZenossDevGuide/ZenPacks.community.DeviceOverviewMods It includes an example that uses __init__.py to create a new property method to get a zProperty. I used zCommandUsername but it should be fairly clear how to modify that.

The browser/resources/js directory has 3 little JavaScript files that modify 3 different panels of a Device Overview. DeviceOverviewZProps.js is the one that incorporates the zCommandUsername zProperty into the snmpsummary panel.

The browser/configure.zcml demonstrates that you can apply different GUI customisation to devices that belong to different object classes (in the "for" statement). Note that these are different object classes, not different classes in the Zenoss device class hierarchy.

Cheers,

Jane

Email: jane.curry@skills-1st.co.uk    Web: https://www.skills-1st.co.uk



Subject: Hi Jane! Thank you for great
Author: [Not Specified]
Posted: 2016-12-05 03:18

Hi Jane! Thank you for great examples! Works perfect.



< Previous
Windows Services WinRM
  Next
OpenStack (Tenant View) ZenPack Issue (Please help urgent!!)
>