I'm trying to get the HTTPMonitor zenpack working. I've got an appliance that I
originally downloaded in the 2.1 timeframe. I upgraded it to 2.2 a week or so
ago. That was working fine, but I had an antiquated HTTPMonitor Zenpack (old
style) I noted that some of the issues I was having with it (ignoring my
timeout settings, for one) were fixed in a newer Zenpack release. So, I decided
to try using conary to install the group-zenpacks. That blew up in my face. I
rolled that back, and then made sure I had no zenpacks installed.
I then removed all datasources that referred to my old HTTPMonitor Zenpack.
My python is located here:
Code:
[EMAIL PROTECTED] ~]$ type -p python
/home/zenoss/bin/python
I've installed the easy_install script as described earlier in this thread:
Code:
[EMAIL PROTECTED] ~]$ type -p easy_install
/home/zenoss/bin/easy_install
I've run the zendmd fix advocated previously. It didn't complain one bit.
My sitecustomize.py file looks like this:
Code:
[EMAIL PROTECTED] ~]$ cat $ZENHOME/lib/python/sitecustomize.py
import sys, os, site; sys.setdefaultencoding('latin-1');
site.addsitedir(os.path.join(os.getenv('ZENHOME'), 'ZenPacks'))
zenpack --list reports:
Code:
[EMAIL PROTECTED] ~]$ zenpack --list
[EMAIL PROTECTED] ~]$
And my zendmd path thingy reports:
Code:
[EMAIL PROTECTED] ~]$ zendmd
Welcome to zenoss dmd command shell!
use zhelp() to list commands
>>> import sys
>>> sys.path
['/home/zenoss/lib/python', '/home/zenoss/Products/ZenModel',
'/home/zenoss/lib/python', '/usr/lib/zope/lib/python', '/usr/lib/python24.zip',
'/usr/lib/python2.4/site-packages', '/usr/lib/python2.4',
'/usr/lib/python2.4/plat-linux2', '/usr/lib/python2.4/lib-tk',
'/usr/lib/python2.4/lib-dynload', '/usr/lib/python2.4/site-packages/PIL',
'/home/zenoss/ZenPacks']
>>> for p in dmd.ZenPackManager.packs():
... p.path()
...
>>>
However, if I try to install the HttpMonitor egg, I get an apparent success:
Code:
[EMAIL PROTECTED] ~]$ zenpack --install
ZenPacks.zenoss.HttpMonitor-2.0.0-py2.4.egg
Installed /home/zenoss/ZenPacks/ZenPacks.zenoss.HttpMonitor-2.0.0-py2.4.egg
INFO:zen.ZPLoader:Loading
/home/zenoss/ZenPacks/ZenPacks.zenoss.HttpMonitor-2.0.0-py2.4.egg/ZenPacks/zenoss/HttpMonitor/objects/objects.xml
INFO:zen.AddToPack:End loading objects
INFO:zen.AddToPack:Processing links
INFO:zen.AddToPack:Loaded 1 objects into database
INFO:zen.HookReportLoader:loading reports
from:/home/zenoss/ZenPacks/ZenPacks.zenoss.HttpMonitor-2.0.0-py2.4.egg/ZenPacks/zenoss/HttpMonitor/reports
But the zenpacks tab on the settings page gives the familiar traceback. Trying
to add a data source to a template with the HttpMonitor zenpack installed
produces this traceback in my $ZENHOME/log/event.log:
Code:
2008-06-18T16:53:04 ERROR Zope.SiteErrorLog
http://zenoss.rbm.local:8080/zport/dmd/Devices/URL/HTTP/rrdTemplates/HTTPMonitor/dialog_addDataSource
Traceback (most recent call last):
File
"/home/marc/conary/zenoss-project/builds/zope2/_ROOT_/usr/lib/zope/lib/python/ZPublisher/Publish.py",
line 114, in publish
File
"/home/marc/conary/zenoss-project/builds/zope2/_ROOT_/usr/lib/zope/lib/python/ZPublisher/mapply.py",
line 88, in mapply
File
"/home/marc/conary/zenoss-project/builds/zope2/_ROOT_/usr/lib/zope/lib/python/ZPublisher/Publish.py",
line 40, in call_object
File
"/home/marc/conary/zenoss-project/builds/zope2/_ROOT_/usr/lib/zope/lib/python/Shared/DC/Scripts/Bindings.py",
line 311, in __call__
File
"/home/marc/conary/zenoss-project/builds/zope2/_ROOT_/usr/lib/zope/lib/python/Shared/DC/Scripts/Bindings.py",
line 348, in _bindAndExec
File "/home/zenoss/Products/CMFCore/FSPageTemplate.py", line 195, in _exec
result = self.pt_render(extra_context=bound_names)
File "/home/zenoss/Products/CMFCore/FSPageTemplate.py", line 134, in pt_render
result = FSPageTemplate.inheritedAttribute('pt_render')(
File
"/home/marc/conary/zenoss-project/builds/zope2/_ROOT_/usr/lib/zope/lib/python/Products/PageTemplates/PageTemplate.py",
line 104, in pt_render
File
"/home/marc/conary/zenoss-project/builds/zope2/_ROOT_/usr/lib/zope/lib/python/TAL/TALInterpreter.py",
line 206, in __call__
File
"/home/marc/conary/zenoss-project/builds/zope2/_ROOT_/usr/lib/zope/lib/python/TAL/TALInterpreter.py",
line 250, in interpret
File
"/home/marc/conary/zenoss-project/builds/zope2/_ROOT_/usr/lib/zope/lib/python/TAL/TALInterpreter.py",
line 651, in do_loop_tal
File
"/home/marc/conary/zenoss-project/builds/zope2/_ROOT_/usr/lib/zope/lib/python/Products/PageTemplates/TALES.py",
line 206, in setRepeat
File
"/home/marc/conary/zenoss-project/builds/zope2/_ROOT_/usr/lib/zope/lib/python/Products/PageTemplates/TALES.py",
line 221, in evaluate
File
"/home/marc/conary/zenoss-project/builds/zope2/_ROOT_/usr/lib/zope/lib/python/Products/PageTemplates/Expressions.py",
line 185, in __call__
File
"/home/marc/conary/zenoss-project/builds/zope2/_ROOT_/usr/lib/zope/lib/python/Products/PageTemplates/Expressions.py",
line 180, in _eval
File
"/home/marc/conary/zenoss-project/builds/zope2/_ROOT_/usr/lib/zope/lib/python/Products/PageTemplates/Expressions.py",
line 85, in render
File "/home/zenoss/Products/ZenModel/RRDTemplate.py", line 452, in
getDataSourceOptions
for dsClass in self.getDataSourceClasses():
File "/home/zenoss/Products/ZenModel/RRDTemplate.py", line 443, in
getDataSourceClasses
dsClasses += zp.getDataSourceClasses()
File "/home/zenoss/Products/ZenModel/ZenPack.py", line 546, in
getDataSourceClasses
return self._getClassesByPath('datasources')
File "/home/zenoss/Products/ZenModel/ZenPack.py", line 532, in
_getClassesByPath
for path, dirs, files in os.walk(self.path(name)):
File "/home/zenoss/Products/ZenModel/ZenPack.py", line 616, in path
module = self.getModule()
File "/home/zenoss/Products/ZenModel/ZenPack.py", line 729, in getModule
_, packEntry = self.getEntryPoint()
File "/home/zenoss/Products/ZenModel/ZenPack.py", line 712, in getEntryPoint
dist = self.getDistribution()
File "/home/zenoss/Products/ZenModel/ZenPack.py", line 702, in getDistribution
return pkg_resources.get_distribution(self.id)
File "/usr/lib/python2.4/site-packages/pkg_resources.py", line 229, in
get_distribution
if isinstance(dist,Requirement): dist = get_provider(dist)
File "/usr/lib/python2.4/site-packages/pkg_resources.py", line 115, in
get_provider
return working_set.find(moduleOrReq) or require(str(moduleOrReq))[0]
File "/usr/lib/python2.4/site-packages/pkg_resources.py", line 585, in require
needed = self.resolve(parse_requirements(requirements))
File "/usr/lib/python2.4/site-packages/pkg_resources.py", line 483, in resolve
raise DistributionNotFound(req) # XXX put more info here
DistributionNotFound: ZenPacks.zenoss.HttpMonitor
Help!
-------------------- m2f --------------------
Read this topic online here:
http://community.zenoss.com/forums/viewtopic.php?p=21592#21592
-------------------- m2f --------------------
_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users