TECHZEN Zenoss User Community ARCHIVE  

Zenoss Toolbox - Scan to fix error ?!

Subject: Zenoss Toolbox - Scan to fix error ?!
Author: [Not Specified]
Posted: 2015-09-14 02:59

Hi all,

After a electricity problem in my DataCenter, Centoss have corrupted, i could fix centos VM, but zenoss application is broken.

On my node i cann't see graph. For the moment i don't see another error but when i try to fix this problem with the differents command's zenoss toolbox, i get thoses messages console.

[zenoss@vsrv-vp-zenoss ~]$ zodbscan --debug
Traceback (most recent call last):
File "/usr/bin/zodbscan", line 9, in
load_entry_point('zenoss.toolbox==0.8.0', 'console_scripts', 'zodbscan')()
File "/opt/zenoss/lib/python/pkg_resources.py", line 318, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/opt/zenoss/lib/python/pkg_resources.py", line 2221, in load_entry_point
return ep.load()
File "/opt/zenoss/lib/python/pkg_resources.py", line 1954, in load
entry = __import__(self.module_name, globals(),globals(), ['__name__'])
File "/usr/lib/python2.6/site-packages/zenoss.toolbox-0.8.0-py2.6.egg/zenoss/toolbox/zodbscan.py", line 15, in
import argparse
ImportError: No module named argparse

///***///

[zenoss@vsrv-vp-zenoss ~]$ zencatalogscan
Traceback (most recent call last):
File "/usr/bin/zencatalogscan", line 9, in
load_entry_point('zenoss.toolbox==0.8.0', 'console_scripts', 'zencatalogscan')()
File "/opt/zenoss/lib/python/pkg_resources.py", line 318, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/opt/zenoss/lib/python/pkg_resources.py", line 2221, in load_entry_point
return ep.load()
File "/opt/zenoss/lib/python/pkg_resources.py", line 1954, in load
entry = __import__(self.module_name, globals(),globals(), ['__name__'])
File "/usr/lib/python2.6/site-packages/zenoss.toolbox-0.8.0-py2.6.egg/zenoss/toolbox/zencatalogscan.py", line 14, in
import argparse
ImportError: No module named argparse

///***///



Subject: [zenoss@vsrv-vp-zenoss ~]$
Author: [Not Specified]
Posted: 2015-09-14 02:59

[zenoss@vsrv-vp-zenoss ~]$ zenrelationscan
Traceback (most recent call last):
File "/usr/bin/zenrelationscan", line 9, in
load_entry_point('zenoss.toolbox==0.8.0', 'console_scripts', 'zenrelationscan')()
File "/opt/zenoss/lib/python/pkg_resources.py", line 318, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/opt/zenoss/lib/python/pkg_resources.py", line 2221, in load_entry_point
return ep.load()
File "/opt/zenoss/lib/python/pkg_resources.py", line 1954, in load
entry = __import__(self.module_name, globals(),globals(), ['__name__'])
File "/usr/lib/python2.6/site-packages/zenoss.toolbox-0.8.0-py2.6.egg/zenoss/toolbox/zenrelationscan.py", line 14, in
import argparse
ImportError: No module named argparse

[...]



Subject: Ok in fact i just need to use
Author: [Not Specified]
Posted: 2015-09-14 05:03

Ok in fact i just need to use zenoss for thoses commands, sorry, but i don't find errors :(



Subject: It's possible your errors are
Author: Andrew Kirch
Posted: 2015-09-16 10:39

It's possible your errors are elsewhere. What precisely are you seeing Can you provide screenshots of the error Do you have backups

Andrew Kirch

akirch@gvit.com

Need Zenoss support, consulting or custom development Look no further. Email or PM me!

Ready for Distributed Topology (collectors) for Zenoss 5 Coming May 1st from GoVanguard



Subject: Did some googling on this,
Author: [Not Specified]
Posted: 2015-09-16 11:27

Did some googling on this, the python docs suggest argparse was added in python-2.7 but your error suggests you are using 2.6

"argparse Command line option and argument parsing. Available In: 2.7 and later"

"/usr/lib/python2.6/site-packages/zenoss.toolbox-0.8.0-py2.6.egg"

My Zenoss 4.2.5 system has python-2.7.2 installed in /opt/zenoss/bin/python.



Subject: Reinstall
Author: [Not Specified]
Posted: 2015-09-16 13:10

Thanks for your posts.

I've totally reinstalled zenoss, it was most simple !

i will test your suggestion ;)



< Previous
Email Notification - change Event Detail
  Next
how to send e-mail notification only 1 time
>