Nov 13, 2006 5:02 AM
zenmib.py issue
-
Like (0)
I've been trying to register mibs.
I worked around my unresolved path problem by
qualifying smidump's name in zenmib.py;
exec os.popen('smidump -fpython %s 2>/dev/null' % mibname) in result
to
exec os.popen('/usr/local/zenoss/bin/smidump -fpython %s 2>/dev/null'
% mibname) in result
I then came accross a name error.
the method load() defines mibs;
mibs = self.dmd.Mibs
and the method load1() refers to mibs;
mod = mibs.createMibModule(modname, self.options.path)
but it is not in the scope of load1()
I replaced the line in load1() with
mod = self.dmd.Mibs.createMibModule(modname, self.options.path)
I was then able to register mibs.
Thanks,
Kent
_______________________________________________
zenoss-users mailing list
zenoss-users@zenoss.org
http://lists.zenoss.org/mailman/listinfo/zenoss-users
On 7/18/06, Eric Newton <ecn@swcomplete.com> wrote:
Right... I had the same issue and I commited the fix to SVN.
Is this the correct URL for the file?
http://dev.zenoss.org/svn/trunk/Products/ZenModel/zenmib.py
I don't see the fix, is there a delay?
ZENHOME/bin should be put in your path by the zenmib script.
I don't see that in the zenmib script, however after removing
SUDO=sudo
the script works fine.
Thanks,
Kent_______________________________________________
-Eric
Kent Tenney wrote:
I've been trying to register mibs.
I worked around my unresolved path problem by
qualifying smidump's name in zenmib.py;
exec os.popen('smidump -fpython %s 2>/dev/null' % mibname) in result
to
exec os.popen('/usr/local/zenoss/bin/smidump -fpython %s 2>/dev/null'
% mibname) in result
I then came accross a name error.
the method load() defines mibs;
mibs = self.dmd.Mibs
and the method load1() refers to mibs;
mod = mibs.createMibModule(modname, self.options.path)
but it is not in the scope of load1()
I replaced the line in load1() with
mod = self.dmd.Mibs.createMibModule(modname, self.options.path)
I was then able to register mibs.
Thanks,
Kent
_______________________________________________
zenoss-users mailing list
zenoss-users@zenoss.org
http://lists.zenoss.org/mailman/listinfo/zenoss-users
_______________________________________________
zenoss-users mailing list
zenoss-users@zenoss.org
http://lists.zenoss.org/mailman/listinfo/zenoss-users
zenoss-users mailing list
zenoss-users@zenoss.org
http://lists.zenoss.org/mailman/listinfo/zenoss-users
On 7/18/06, Eric Newton <ecn@swcomplete.com> wrote:
It's in there. Here's the patch:
http://dev.zenoss.org/trac/changeset/1910
Right, I didn't notice the additional param to load1()
What is the correct way to update zenoss?
It seems that running ../zenossinst/install.sh will do it.
Is that correct?
Thanks,
Kent
I didn't set the path, since that's _supposed_ to be set by the zenmib
wrapper.
-Eric
Kent Tenney wrote:result
On 7/18/06, Eric Newton <ecn@swcomplete.com> wrote:
Right... I had the same issue and I commited the fix to SVN.
Is this the correct URL for the file?
http://dev.zenoss.org/svn/trunk/Products/ZenModel/zenmib.py
I don't see the fix, is there a delay?
ZENHOME/bin should be put in your path by the zenmib script.
I don't see that in the zenmib script, however after removing
SUDO=sudo
the script works fine.
Thanks,
Kent
-Eric
Kent Tenney wrote:
I've been trying to register mibs.
I worked around my unresolved path problem by
qualifying smidump's name in zenmib.py;
exec os.popen('smidump -fpython %s 2>/dev/null' % mibname) in2>/dev/null'
to
exec os.popen('/usr/local/zenoss/bin/smidump -fpython %s
% mibname) in result
I then came accross a name error.
the method load() defines mibs;
mibs = self.dmd.Mibs
and the method load1() refers to mibs;
mod = mibs.createMibModule(modname, self.options.path)
but it is not in the scope of load1()
I replaced the line in load1() with
mod = self.dmd.Mibs.createMibModule(modname, self.options.path)
I was then able to register mibs.
Thanks,
Kent
It's in there. Here's the patch:
http://dev.zenoss.org/trac/changeset/1910
I didn't set the path, since that's _supposed_ to be set by the zenmib
wrapper.
-Eric
Kent Tenney wrote:
On 7/18/06, Eric Newton <ecn@swcomplete.com> wrote:
Right... I had the same issue and I commited the fix to SVN.
Is this the correct URL for the file?
http://dev.zenoss.org/svn/trunk/Products/ZenModel/zenmib.py
I don't see the fix, is there a delay?
ZENHOME/bin should be put in your path by the zenmib script.
I don't see that in the zenmib script, however after removing
SUDO=sudo
the script works fine.
Thanks,
Kent_______________________________________________
-Eric
Kent Tenney wrote:
I've been trying to register mibs.
I worked around my unresolved path problem by
qualifying smidump's name in zenmib.py;
exec os.popen('smidump -fpython %s 2>/dev/null' % mibname) in result
to
exec os.popen('/usr/local/zenoss/bin/smidump -fpython %s 2>/dev/null'
% mibname) in result
I then came accross a name error.
the method load() defines mibs;
mibs = self.dmd.Mibs
and the method load1() refers to mibs;
mod = mibs.createMibModule(modname, self.options.path)
but it is not in the scope of load1()
I replaced the line in load1() with
mod = self.dmd.Mibs.createMibModule(modname, self.options.path)
I was then able to register mibs.
Thanks,
Kent
_______________________________________________
zenoss-users mailing list
zenoss-users@zenoss.org
http://lists.zenoss.org/mailman/listinfo/zenoss-users
_______________________________________________
zenoss-users mailing list
zenoss-users@zenoss.org
http://lists.zenoss.org/mailman/listinfo/zenoss-users
zenoss-users mailing list
zenoss-users@zenoss.org
http://lists.zenoss.org/mailman/listinfo/zenoss-users
_______________________________________________
zenoss-users mailing list
zenoss-users@zenoss.org
http://lists.zenoss.org/mailman/listinfo/zenoss-users
Right... I had the same issue and I commited the fix to SVN.
ZENHOME/bin should be put in your path by the zenmib script.
-Eric
Kent Tenney wrote:
I've been trying to register mibs.
I worked around my unresolved path problem by
qualifying smidump's name in zenmib.py;
exec os.popen('smidump -fpython %s 2>/dev/null' % mibname) in result
to
exec os.popen('/usr/local/zenoss/bin/smidump -fpython %s 2>/dev/null'
% mibname) in result
I then came accross a name error.
the method load() defines mibs;
mibs = self.dmd.Mibs
and the method load1() refers to mibs;
mod = mibs.createMibModule(modname, self.options.path)
but it is not in the scope of load1()
I replaced the line in load1() with
mod = self.dmd.Mibs.createMibModule(modname, self.options.path)
I was then able to register mibs.
Thanks,
Kent
_______________________________________________
zenoss-users mailing list
zenoss-users@zenoss.org
http://lists.zenoss.org/mailman/listinfo/zenoss-users
_______________________________________________
zenoss-users mailing list
zenoss-users@zenoss.org
http://lists.zenoss.org/mailman/listinfo/zenoss-users
Follow Us On Twitter »
|
Latest from the Zenoss Blog » | Community | Products | Services Resources | Customers Partners | About Us | ||
Copyright © 2005-2011 Zenoss, Inc.
|
||||||||