Archived community.zenoss.org | full text search
Skip navigation
1 2 Previous Next 5649 Views 19 Replies Latest reply: Mar 31, 2012 6:06 AM by PM guy RSS
PM guy Rank: White Belt 56 posts since
Mar 22, 2012
Currently Being Moderated

Mar 22, 2012 3:23 PM

compiling and developing zenpack

Hello,

       Actually i am going to develop a zenpack. i have followed tutorial of jane curry that is creating zenoss zenpack 3. its a nice and helpful tutorial but i am not been able to see the details of how can i write and see the changes that my zenpack will depict. how can i complie a zenpack considering i have its source code. for example i create a zenpack form zenoss gui then its on my file system. now when i code how can i see and compile changes that i made everytime.

the second question is that for instance i take someone's zenpack and want to change it and i have the setup.py file that is required if you want to change or develop, where should i start with, i make changes in source code then what should i do to that so that it should start working in my desired way.

i have seen zenpack --install --link and zenpack name on many threads but i still am confused what to do and how to compile and see my changes.

 

thnaking you all

 

regards PM guy

  • dpetzel Rank: Brown Belt 1,141 posts since
    Oct 17, 2010
    Currently Being Moderated
    1. Mar 22, 2012 5:00 PM (in response to PM guy)
    Re: compiling and developing zenpack

    I think you need to understand a little bit more about how Python compiles. When a python process starts the .py files are compiled. You don't need to manually compile them ahead of time.

     

    If you make changes to the files on the filesystem, restarting the appropriate process (either the specific daemon, or all zenoss process), your changes will be compiled automatically. In general you can usually get away with restarting zopectl and zenhub, but when in doubt, do a full zenoss restart

  • jcurry ZenossMaster 1,021 posts since
    Apr 15, 2008
    Currently Being Moderated
    2. Mar 23, 2012 4:55 AM (in response to PM guy)
    Re: compiling and developing zenpack

    Have a look at this link to restore ZenPacks to development mode - docs/DOC-2359 .

     

    You could also search the forum with the keywords of zenpack development mode.

     

    Development mode (as opposed to an egg) is where you can change and modify the source code.  You should also look at the standard Zenoss Development guide - there is an explanation of this stuff in the first few chapters.

     

    Cheers,

    Jane

  • jcurry ZenossMaster 1,021 posts since
    Apr 15, 2008
    Currently Being Moderated
    5. Mar 24, 2012 3:05 PM (in response to PM guy)
    Re: compiling and developing zenpack

    If you create your device under /Network/Switch/BridgeMIB then it should automatically have the modeler plugins of BridgeInterfaceMib and BridgeDeviceMib assigned.  This is essential to discover the Bridge Interfaces. 

     

    The other essential is that your target switch must support the Bridge MIB using SNMP. 

     

    If the 2 bridge modelers are selected for your device then try running them manually from the command line - it is the BridgeInterfaceMib one that does most work and if your switch supports the bridge MIB then you should see lots of data reported this way.  If you see no data then perhaps your device does not the correct SNMP support.  As the zenoss user try:

    zenmodeler run -v 10 -d <your switch device> --collect BridgeInterfaceMib

     

    Cheers,

    Jane

  • jcurry ZenossMaster 1,021 posts since
    Apr 15, 2008
    Currently Being Moderated
    8. Mar 25, 2012 3:43 AM (in response to PM guy)
    Re: compiling and developing zenpack

    What browser are you using??  I am currently on Firefox 11 and have tested with all sorts of earlier Firefox?

     

    Another way to see whether the problem is with the CREATION of the interfaces or with their DISPLAY is to use the Zope Management Interface (ZMI).  Point your browser at http://<your zenoss>:8080/zport/dmd/manage (in fact it is a useful trick to append "manage" to any Zenoss URL).  Navigate to your BridgeMib switch device and explore all its relationships.  You ouught to see the BridgeInt relationship if the modeler plugin has worked correctly.  If it isn't there, then you have issues with the modeler plugin.  If it is there, you have issues with display.

     

    If the former, run zenmodeler again from the command line and check the output very carefully for error messages.  If you have installed the zenpack in development mode, go and look at the code under the ZenPack directory and down under modeler/plugins.  I am pretty sure I left other debug lines in the code but commented out.  If you change anything, do make sure that you restart both zenhub and zopectl.  Also make sure that you delete your test device entirely and re-add it when testing.

     

    Cheers,

    Jane

  • Syed Ali Rank: White Belt 23 posts since
    Feb 8, 2012
    Currently Being Moderated
    12. Mar 26, 2012 8:42 AM (in response to PM guy)
    Re: compiling and developing zenpack

    I am having exactly the same problem that you have been specified by you. Have you figured out the solution. Please share if you have sought it out.

  • Shane Scott ZenossMaster 1,373 posts since
    Jul 6, 2009
    Currently Being Moderated
    13. Mar 26, 2012 11:04 PM (in response to Syed Ali)
    Re: compiling and developing zenpack

    PM guy:

     

    Can you post your pack? I can take a look over it fast to find the issue.

     

    Best,

    --Shane (Hackman238)

1 2 Previous Next

More Like This

  • Retrieving data ...

Legend

  • Correct Answers - 4 points
  • Helpful Answers - 2 points