TECHZEN Zenoss User Community ARCHIVE  

Inherit Modeler Plugins from Parent Class?

Subject: Inherit Modeler Plugins from Parent Class?
Author: [Not Specified]
Posted: 2016-03-07 16:19

I want to create a device class under /Server/Linux. This device class will have some special modeler plugins and monitoring templates that I create. I am defining these plugins and templates in the zenpack.yaml file.But I also want it to inherit all the plugins and templates at the /Server/Linux level. Aside from copying/pasting all the plugins and templates at /Server/Linux into my zenpack.yaml file, is there any way to get the device subclassto inherit these objects



Subject: Yes, with code
Author: [Not Specified]
Posted: 2016-06-15 13:43

I just ran across this example code from Chet that I believe does exactly what you want.
https://github.com/zenoss/zenpacklib/issues/151#issuecomment-224984328


< Previous
Add functions to ZenPack to be used in thresholds
  Next
Would Love to See Some More Tutorials on Zenpacklib
>