Does your Zenoss user have these in the .bash_profile?
export ZENHOME="/opt/zenoss"
export PATH="${ZENHOME}/bin:${PATH}"
export PYTHONPATH="${ZENHOME}/lib/python"
export LD_LIBRARY_PATH="${ZENHOME}/lib"
Thanks,
Matt Ray
Zenoss Community Manager
community.zenoss.com
[EMAIL PROTECTED]
On Sep 8, 2008, at 8:55 PM, AlecIs wrote:
I've got Zen 2.2.3 on SuSE Linux with Python 2.4.4 (the whole thing
installed by the stack installer).
I installed and configured the the Asterisk Zenpack. When I run the
pack by hand from a command prompt ("python asx-stats.py"), it runs
just fine and I get results from my Asterisk box.
However, when I try to run it from within Zen, I get an error as
follows:
Code:
Executing command against igimon
'import site' failed; use -v for traceback
Traceback (most recent call last):
File "/usr/local/zenoss/zenoss/ZenPacks/
ZenPacks.AndreaConsadori.Asterisk-1.2-py2.4.egg/ZenPacks/
AndreaConsadori/Asterisk/datasources/asx-stats.py", line 23, in
<module>
import sys, os, re, socket
ImportError
:
No module named os
DONE in 0 seconds
Has anyone seen this before? How can I troubleshoot it?
-------------------- m2f --------------------
Read this topic online here:
http://community.zenoss.com/forums/viewtopic.php?p=24820#24820
-------------------- m2f --------------------
_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users
_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users