Mar 22, 2012 3:23 PM
compiling and developing zenpack
-
Like (0)
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
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
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
Hi,
i have installed you Zenpack verison 1.0.3 of bridge MIB and have also searched through the forums but couldnot get a good info on this error.
"Interfaces found. Double check you have the correct collector plugin and you have remodeled."
Please guide me what to do i have searched for it alot.
i have also tried to put in network/switch class instead of network/switch/bridgemib..but to no avail.
kindly guide me.
NO was missing in the error i posted...
it is complete
No Interfaces found. Double check you have the correct collector plugin and you have remodeled
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
Hi,
Thanks for you reply. the fact is that i have tried all the suggestions that you gave.
1. i have run that command as a zenoss user and in return a lot of result popped out on my terminal
2. as you said that i have already selected them i mean both of the modelers.
3. when i click on model device in zenoss it runs and returns back the result.
all the results are shown and seem to be supported but the fact is that i donot see it in gui. when i click bridge interface the error pops out.
my switch supports the mib that is 1493
and there is no error when i model device and when i run the command as mentioned by you as a zenoss user. What may be the issue i am unable to figure it out. all runs fine but doesnot show in gui.
thanks for your time.
i also used the version 1.0.5 of your zenpack bridge mib but gives the same error. its not displaying. i tried all the given suggestions and ran all coomands it is bringing data form switch cut not showing it in gui. please help.
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
Hi,
Please can u tell what is the differnce between the bridge mib version 1.0.3 and 1.0.5. Now let me explain this in detail sorry for bothering you.
one thing i would like to mention here is that i changed the oids because our switch doesnot supported the oids you mentioned inyour zenpack
when i installed 1.0.3 it gave bridgeint relationship. it showed bridge interface on side panel of zenoss.but when i clicked it gave that error i told you previously about. but in components section of zenoss it shows nothing. there is no .js file in this version.
when i installed 1.0.5 it neither gave bridgeint relationship nor anything on side panel of zenoss. in short it doesnot show anything. although there is .js file int it.
now i wrote my own zenpack by following your zenpack. in which i wrote two modelers, two object files one .js file info.py and interfaces.py. i checked it. it is alos bringing data for the oids i have given but not displaying.
i havenot worte a .pt file yet. But i dont think so its necessary.
kindly help Your help is highly appreciated.
And i have tried it on firefox version 10.0.2 and version 11 but to no avail!!!
ping Ma'm J.Curry....
pls see these posts and suggest any possibel solution...
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.
PM guy:
Can you post your pack? I can take a look over it fast to find the issue.
Best,
--Shane (Hackman238)
Hi Shane Scott,
i will PM you my zenpack you can have a look and help out. your help is much appreciated. Thanks
Follow Us On Twitter »
|
Latest from the Zenoss Blog » | Community | Products | Services Resources | Customers Partners | About Us | ||
Copyright © 2005-2011 Zenoss, Inc.
|
||||||||