Jul 13, 2012 6:03 AM
Unable to Load http://zenoss:8080/zport/dmd/mibs
-
Like (0)
On first place, just to say 'Hi' on all of you and 'sorry for my bad english' ...
I gues i have done something nat so smart when i tryed to import Mibs
firs add some subfolders here (iana, ...)
http://zenoss:8080/zport/dmd/mibs
and get 'Server exeption error' trayng to load tha web page http://zenoss:8080/zport/dmd/mibs
then i try to undo that ant delete the subfolders i added earyer from that page http://zenosz:8080/zport/dmd/Mibs/manage#mibtree:/zport/dmd/Mibs but I thing that I have delete more than that wath i have added...
At the final i have:
-----------------------------------------------------------------
|Server exeption=========================x|
-----------------------------------------------------------------
|The server reported the following error: |
| AttributeError mibs |
|The system has encountered an error. |
|Please reload the page. |
| ---------------- --------- |
| |Reload page | |Dismiss| |
| ---------------- --------- |
-----------------------------------------------------------------
So I am uondering, is it posible to restore proper structure of http://zenosz:8080/zport/dmd/Mibs/manage#mibtree:/zport/dmd/Mibs
Thank you for your patience...
snn1024a:
Via zendmd,
dmd.Mibs {Enter}
It should return a MibOrganizer object. If it does, we can continue.
m = dmd.Mibs
m.mibs {Enter}
It should return an error. If so, we can continue. If it returns an object, del m.mibs
Next
for name, schema in m._relations:
try:
m._setObject(name, schema.createRelation(name))
except:
pass
To test, m.mibs. It should return a relationship. If so then this part should be good.
Don't forget to commit()
Best,
--Shane (Hackman238)
Hi, Shane, thank you very much for your attention, unfortunately I have
never use Zenoss or zendmd before and is difficult to understand your
instructions. So I'm stuck in the line m._setObject, there is a name for
the relation and I have no idea what name to use...So i send you my code
back ... if you have a minute...
Welcome to the Zenoss dmd command shell!
'dmd' is bound to the DataRoot. 'zhelp()' to get a list of commands.
Use TAB-TAB to see a list of zendmd related commands.
Tab completion also works for objects -- hit tab after an object name and
'.'
(eg dmd. + tab-key).
>>> dmd.Mibs
**
Zenoss Community <index.jspa> Re:
Unable to Load http://zenoss:8080/zport/dmd/mibs created by Shane Scott<people/hackman238>in
zenoss-users - View the full discussion<message/67468#67468>
snn1024a:
Sorry. You'll want to paste that block of code in after performing the steps prior to it. What it'll do is fetch the schema from the organizer and build it's relationships using that data.
Best,
--Shane (Hackman238)
snn1024a:
Did that work for you?
Best,
--Shane Scott (Hackman238)
Hi sir,
Please after :
for name, schema in m._relations:
try:
m._setObject(name, schema.createRelation(name))
except:
pass
how can i do to get out of "for"
Placide,
You can use 'break' to break out of a for loop.
--Shane Scott (Hackman238)
I have had that web GUI error before, it happens when the transaction takes too long. What I do now is trigger the transaction from the web GUI, then from the terminal, I launch the top command and keep track of the python workers. There will be a few of them running full tilt during the transaction. When they go back to idle, refresh the web page and you should be good.
Manuel
Thanks for your reply!
I will try it and let you know if it works.
Hi Shane,
Finally i changed to use centOS 6 with zenoss 4.2.2.
Everythink is working perfectly.
I had some mibs (FORTINET mibs + ietf + irtf +iana+ tubs +site ).
I started to receive traps from one fortinet equipment. but zenoss don't use the mibs to translate for me.
is it automatical ? or should i do something in zenoss to translate the traps that he received.
Follow Us On Twitter »
|
Latest from the Zenoss Blog » | Community | Products | Services Resources | Customers Partners | About Us | ||
Copyright © 2005-2011 Zenoss, Inc.
|
||||||||