TECHZEN Zenoss User Community ARCHIVE  

zenqdump command won't work

Subject: zenqdump command won't work
Author: Sam Urai
Posted: 2020-04-03 19:57

Hi,

Recently I faced with a problem where the "zenoss.queues.zep.rawevents" started growing up exponentially. I wanted to dump the events to see what they are but the zenqdump failed with below error.  the "urllib3" exists  under /home/zenoss/urllib3.

zenqdump zenoss.queues.zep.rawevents
Traceback (most recent call last):
  File "/opt/zenoss/bin/zenqdump", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/opt/zenoss/lib/python/pkg_resources.py", line 2603, in <module>
    working_set.require(__requires__)
  File "/opt/zenoss/lib/python/pkg_resources.py", line 666, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/opt/zenoss/lib/python/pkg_resources.py", line 565, in resolve
    raise DistributionNotFound(req)  # XXX put more info here
pkg_resources.DistributionNotFound: urllib3>=1.3
​

Any idea what's wrong and how to fix it?

Thanks

------------------------------
Sam
------------------------------


Subject: RE: zenqdump command won't work
Author: Jane Curry
Posted: 2020-04-10 04:27

zenqdump needs authentication.  Look in /opt/zenoss/etc/global.conf for the amqpuser and amqppasswod and supply those values:

 zenqdump -u <user> -p <password> zenoss .queues.zep.rawevents

You should be doing this as the zenoss user.

Cheers,
Jane

------------------------------
Jane Curry
Skills 1st United Kingdom
jane.curry@skills-1st.co.uk
------------------------------


Subject: RE: zenqdump command won't work
Author: Sam Urai
Posted: 2020-04-10 12:05

Just tried the command but no avail


zm:/home/zenoss$ zendump -u xxxxx -p xxxxxx zenoss.queues.zep.rawevents
Usage: ExportRM.py [options]

ExportRM.py: error: no such option: -u​


------------------------------
Sam
------------------------------


Subject: RE: zenqdump command won't work
Author: Jane Curry
Posted: 2020-04-10 12:57

I hope that was 
zenqdump -u xxxxx -p xxxxxx zenoss.queues.zep.rawevents,    not
zendump -u xxxxx -p xxxxxx zenoss.queues.zep.rawevents   ???

the other trick for a dockerised Zenoss is you need to be attached to the RabbitMQ container as the zenoss user, so:
serviced service attach RabbitMQ su zenoss -l

After that, it works for me on a 6.2.1 - no such problems with a Zenoss 4.

Cheers,
Jane

------------------------------
Jane Curry
Skills 1st United Kingdom
jane.curry@skills-1st.co.uk
------------------------------


Subject: RE: zenqdump command won't work
Author: Sam Urai
Posted: 2020-04-10 15:48

Sorry that was my bad.  Zenoss is 4.2.5 

zm:/home/zenoss$ zenqdump -u xxxxx -p xxxxx zenoss.queues.zep.rawevents
Traceback (most recent call last):
  File "/opt/zenoss/bin/zenqdump", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/opt/zenoss/lib/python/pkg_resources.py", line 2603, in <module>
    working_set.require(__requires__)
  File "/opt/zenoss/lib/python/pkg_resources.py", line 666, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/opt/zenoss/lib/python/pkg_resources.py", line 565, in resolve
    raise DistributionNotFound(req)  # XXX put more info here
pkg_resources.DistributionNotFound: urllib3>=1.3​


------------------------------
Sam
------------------------------


< Previous
Download zenpack .egg files
  Next
Monitoring Templates "NotFound"
>