TECHZEN Zenoss User Community ARCHIVE  

Check the zenpack list through command line

Subject: Check the zenpack list through command line
Author: Wonder
Posted: 2017-06-30 06:12

I was trying to check the installed zenpacks list using the command line with the command - "serviced service run zope zenpack list"

I am getting the following message : 

time="2017-06-30T10:02:45Z" level=info msg="Loaded delegate keys from file" keyfile="/etc/serviced/delegate.keys" location="localkeys.go:320" logger=auth
E0630 10:02:46.249979 00001 controller.go:150] Error getting service dxfr82taw2zy129lguhca3i6z error: dial tcp4 172.17.0.1:4979: getsockopt: no route to host
E0630 10:02:46.252033 00001 controller.go:309] dial tcp4 172.17.0.1:4979: getsockopt: no route to host
E0630 10:02:46.252061 00001 controller.go:310] Invalid service from serviceID:dxfr82taw2zy129lguhca3i6z
container: invalid serviced

I tried giving "serviced healthcheck" and all the services are up and running.

What is the issue there??

Thanks.

------------------------------
Sujata Patnaik
------------------------------


Subject: RE: Check the zenpack list through command line
Author: Arthur
Posted: 2017-07-04 15:59

Try to access zope and run zenpack --list

# serviced service attach zope
[root@2e6a4b887af1 /]# su - zenoss
Last login: Tue Jul 4 19:55:34 UTC 2017

(zenoss) [zenoss@2e6a4b887af1 ~]$ zenpack --list
ZenPacks.zenoss.ApacheMonitor (/opt/zenoss/ZenPacks/ZenPacks.zenoss.ApacheMonitor-2.1.4-py2.7.egg)
ZenPacks.zenoss.Dashboard (/opt/zenoss/ZenPacks/ZenPacks.zenoss.Dashboard-1.2.5-py2.7.egg)
ZenPacks.zenoss.DeviceSearch (/opt/zenoss/ZenPacks/ZenPacks.zenoss.DeviceSearch-1.2.2-py2.7.egg)
ZenPacks.zenoss.HttpMonitor (/opt/zenoss/ZenPacks/ZenPacks.zenoss.HttpMonitor-2.1.0-py2.7.egg)
ZenPacks.zenoss.LinuxMonitor (/opt/zenoss/ZenPacks/ZenPacks.zenoss.LinuxMonitor-2.2.0-py2.7.egg)
ZenPacks.zenoss.Microsoft.Windows (/opt/zenoss/ZenPacks/ZenPacks.zenoss.Microsoft.Windows-2.7.0-py2.7.egg)
ZenPacks.zenoss.MySqlMonitor (/opt/zenoss/ZenPacks/ZenPacks.zenoss.MySqlMonitor-3.0.7-py2.7.egg)
ZenPacks.zenoss.NtpMonitor (/opt/zenoss/ZenPacks/ZenPacks.zenoss.NtpMonitor-2.2.2-py2.7.egg)
ZenPacks.zenoss.PythonCollector (/opt/zenoss/ZenPacks/ZenPacks.zenoss.PythonCollector-1.9.0-py2.7.egg)
ZenPacks.zenoss.ZenMail (/opt/zenoss/ZenPacks/ZenPacks.zenoss.ZenMail-5.1.0-py2.7.egg)
ZenPacks.zenoss.ZenPackLib (/opt/zenoss/ZenPacks/ZenPacks.zenoss.ZenPackLib-2.0.5-py2.7.egg)

Cheers

------------------------------
Arthur
------------------------------


Subject: RE: Check the zenpack list through command line
Author: Wonder
Posted: 2017-07-05 00:37

Do i need to create a zenoss user??

------------------------------
Sujata Patnaik
------------------------------


Subject: RE: Check the zenpack list through command line
Author: Arthur
Posted: 2017-07-05 14:24

No, should  already be set up in the zope container.

------------------------------
Arthur
------------------------------


Subject: RE: Check the zenpack list through command line
Author: Wonder
Posted: 2017-07-06 04:17

How can I get the container details of zope??

------------------------------
SuChi
------------------------------


Subject: RE: Check the zenpack list through command line
Author: Wonder
Posted: 2017-07-06 04:21

I can go into the zope container - "serviced service attach zope"

Thanks.

------------------------------
SuChi
------------------------------


< Previous
Zenoss containers are getting deleted
  Next
Zenoss.core services missing healthcheck
>