TECHZEN Zenoss User Community ARCHIVE  

"device_events" won't show up

Subject: "device_events" won't show up
Author: Sam Urai
Posted: 2018-10-03 20:55

Hi,

We are using Zenoss 4.2.5. For some reason, "/devicedetail#deviceDetailNav:device_events" won't show the events for any device.

Any idea?

Thanks


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


Subject: RE: "device_events" won't show up
Author: Sam Urai
Posted: 2018-10-03 21:04

From the Chrome Inspect I see this error

ext-all.js?v=1336168855.0:21 Uncaught h {msg: "PageMap asked for range which it does not have", sourceMethod: "getRange", sourceClass: "Ext.Base", message: "PageMap asked for range which it does not have"}message: "PageMap asked for range which it does not have"msg: "PageMap asked for range which it does not have"sourceClass: "Ext.Base"sourceMethod: "getRange"__proto__: Error$className: "Ext.Base"callOverridden: ƒ (e)callParent: ƒ (e)config: e {}configClass: ƒ ()configMap: a {}constructor: ƒ (a)destroy: ƒ ()getConfig: ƒ (e)getInitialConfig: ƒ (e)hasConfig: ƒ (d)initConfig: ƒ (g)initConfigList: []initConfigMap: {}isInstance: truename: "Ext.Error"onConfigUpdate: ƒ (k,m,n)override: ƒ (n)self: ƒ ()setConfig: ƒ (h,l)statics: ƒ ()superclass: {isInstance: true, $className: "Ext.Base", configClass: ƒ, initConfigList: Array(0), configMap: {…}, …}toString: ƒ ()__proto__: Object​


------------------------------
Sam Urai
------------------------------

Subject: RE: "device_events" won't show up
Author: Jane Curry
Posted: 2018-10-04 05:15

So I guess a few questions:

Can you bring up the standard Events Console and does it show all events?
Are all the zenoss daemons running (Run "zenoss status")?
Do you have messages in log files - especially zenhub.log and zeneventserver.log?
Trivial - but I have been caught so many times with this :( - have you run out of diskspace?
What ZUP level are you at with your 4.2.5?

Cheers,
Jane

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


Subject: RE: "device_events" won't show up
Author: Sam Urai
Posted: 2018-10-04 12:23

Yes it does show the events in the "Event Console".
Yes, all daemons appears to be running.   FYI - This zenoss instance is setup for zentrap with 3 collectors working with it. I restarted the zenoss but it didn't help. But I see this error in the zenhub.log


2018-10-03 17:16:51,923 ERROR zen.ZenHub: Failed to get service 'EventService'
Traceback (most recent call last):
  File "/opt/zenoss/Products/ZenHub/zenhub.py", line 182, in perspective_getService
    service = self.hub.getService(serviceName, instance)
  File "/opt/zenoss/Products/ZenHub/zenhub.py", line 635, in getService
    self.options.monitor + " is not in the current list" )
TypeError: __init__() takes exactly 3 arguments (2 given)
2018-10-03 17:16:51,923 ERROR zen.ZenHub: Failed to get service 'ModelerService'
Traceback (most recent call last):
  File "/opt/zenoss/Products/ZenHub/zenhub.py", line 182, in perspective_getService
    service = self.hub.getService(serviceName, instance)
  File "/opt/zenoss/Products/ZenHub/zenhub.py", line 635, in getService
    self.options.monitor + " is not in the current list" )
TypeError: __init__() takes exactly 3 arguments (2 given)
2018-10-03 17:16:54,680 INFO zen.ZenHub: Worker (4940) reports 2018-10-03 17:16:54,680 INFO zen.HubService.RenderConfig: Starting graph retrieval listener on port 8090
2018-10-03 17:16:57,466 ERROR zen.ZenHub: Failed to get service 'EventService'
Traceback (most recent call last):
  File "/opt/zenoss/Products/ZenHub/zenhub.py", line 182, in perspective_getService
    service = self.hub.getService(serviceName, instance)
  File "/opt/zenoss/Products/ZenHub/zenhub.py", line 635, in getService
    self.options.monitor + " is not in the current list" )
TypeError: __init__() takes exactly 3 arguments (2 given)
2018-10-03 17:16:57,467 ERROR zen.ZenHub: Failed to get service 'Products.ZenHub.services.SnmpPerformanceConfig'
Traceback (most recent call last):
  File "/opt/zenoss/Products/ZenHub/zenhub.py", line 182, in perspective_getService
    service = self.hub.getService(serviceName, instance)
  File "/opt/zenoss/Products/ZenHub/zenhub.py", line 635, in getService
    self.options.monitor + " is not in the current list" )
TypeError: __init__() takes exactly 3 arguments (2 given)
2018-10-03 17:17:03,277 ERROR zen.ZenHub: Failed to get service 'EventService'
Traceback (most recent call last):
  File "/opt/zenoss/Products/ZenHub/zenhub.py", line 182, in perspective_getService
    service = self.hub.getService(serviceName, instance)
  File "/opt/zenoss/Products/ZenHub/zenhub.py", line 635, in getService
    self.options.monitor + " is not in the current list" )
TypeError: __init__() takes exactly 3 arguments (2 given)
2018-10-03 17:17:03,278 ERROR zen.ZenHub: Failed to get service 'Products.ZenHub.services.ProcessConfig'
Traceback (most recent call last):
  File "/opt/zenoss/Products/ZenHub/zenhub.py", line 182, in perspective_getService
    service = self.hub.getService(serviceName, instance)
  File "/opt/zenoss/Products/ZenHub/zenhub.py", line 635, in getService
    self.options.monitor + " is not in the current list" )
TypeError: __init__() takes exactly 3 arguments (2 given)
2018-10-03 17:17:06,212 ERROR zen.ZenHub: Failed to get service 'EventService'
Traceback (most recent call last):
  File "/opt/zenoss/Products/ZenHub/zenhub.py", line 182, in perspective_getService
    service = self.hub.getService(serviceName, instance)
  File "/opt/zenoss/Products/ZenHub/zenhub.py", line 635, in getService
    self.options.monitor + " is not in the current list" )
TypeError: __init__() takes exactly 3 arguments (2 given)
2018-10-03 17:17:06,212 ERROR zen.ZenHub: Failed to get service 'ZenPacks.zenoss.PythonCollector.services.PythonConfig'
Traceback (most recent call last):
  File "/opt/zenoss/Products/ZenHub/zenhub.py", line 182, in perspective_getService
    service = self.hub.getService(serviceName, instance)
  File "/opt/zenoss/Products/ZenHub/zenhub.py", line 635, in getService
    self.options.monitor + " is not in the current list" )
TypeError: __init__() takes exactly 3 arguments (2 given)
2018-10-03 17:17:09,216 ERROR zen.ZenHub: Failed to get service 'EventService'
Traceback (most recent call last):
  File "/opt/zenoss/Products/ZenHub/zenhub.py", line 182, in perspective_getService
    service = self.hub.getService(serviceName, instance)
  File "/opt/zenoss/Products/ZenHub/zenhub.py", line 635, in getService
    self.options.monitor + " is not in the current list" )
TypeError: __init__() takes exactly 3 arguments (2 given)
2018-10-03 17:17:09,216 ERROR zen.ZenHub: Failed to get service 'ZenPacks.zenoss.ZenJMX.services.ZenJMXConfigService'
Traceback (most recent call last):
  File "/opt/zenoss/Products/ZenHub/zenhub.py", line 182, in perspective_getService
    service = self.hub.getService(serviceName, instance)
  File "/opt/zenoss/Products/ZenHub/zenhub.py", line 635, in getService
    self.options.monitor + " is not in the current list" )
TypeError: __init__() takes exactly 3 arguments (2 given)
​

The zeneventserver.log shows this after restart 

2018-10-04T00:15:00.644 [qtp1715374531-20 - http://localhost:8084/zeneventserver/api/1.0/events/] ERROR org.jboss.resteasy.core.SynchronousDispatcher - Failed executing POST /1
.0/events/
org.jboss.resteasy.spi.WriterException: org.eclipse.jetty.io.EofException

No space issue here.
I don't know how to find out the ZUP level.  There is no "zenup" command available on this node.

Please advise. 

Thanks

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


Subject: RE: "device_events" won't show up
Author: Sam Urai
Posted: 2018-10-04 12:26

BTW - I do see the events listed in the "rainbow" colors.  When I click on them, I don't see the event details.

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


Subject: RE: "device_events" won't show up
Author: Jane Curry
Posted: 2018-10-05 05:38

Hmm - that suggests that your events subsystem isn't really happy.  Have you restarted everything - including the mysql?

You might have a look at this post -  Move o Delte all event in Zenoss 4.2.5 .  The zeneventserver-create-db command referenced shoud ONLY be used in extremis as it will re-create your events database, losing all existing events (you may also find that you need an extra parameter of "--dbtype=mysql" ).

The second command is much safer and rebuilds the indexes into the events database - it has never bitten me yet but I would still ensure that I have a backup position before doing this.  Event indexes do occasionally get in a mess and have various symptoms, some of which might match what you are seeing.

If you cannot run zenup as the zenoss user then I guess you have no SUP patches installed ("zenup status" should give the SUP you are at).  This does mean you are now on very old code.

Cheers,
Jane

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


Subject: RE: "device_events" won't show up
Author: Sam Urai
Posted: 2018-10-05 13:16

Thanks much!

I had to restart the mysql which fixed the problem.

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


< Previous
zencommand suddenly using high amounts of memory
  Next
Filebeat only saving 14 days of indices
>