Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chart is no data received #10

Open
samuelhsin opened this issue Sep 29, 2012 · 8 comments
Open

chart is no data received #10

samuelhsin opened this issue Sep 29, 2012 · 8 comments
Assignees

Comments

@samuelhsin
Copy link

Hi, I use CloudStack API version 2.2.14, then zenoss 4.2 and CloudStack ZenPacks 1.0.5 on CentOS 6.0 64bit, but I got some troubles that some pictures do not draw data.:

  1. Cloud's memory allocation and usage
  2. Cloud's primary storage allocation and usage
  3. Cloud's secondary storage and usage
    Do you know what problems to this ZenPacks (v1.0.5) for Zenoss 4.2 and CloudStack 2.2.14. I use the ZenPacks (v1.0.5) in Zenoss 3.2.1 and CloudStack 2.2.14 does not have above problems.
    So I guess the ZenPacks (v1.0.5) is not fully compatible for Zenoss 4.2. If I configure wrong something, what can I to figure out?
@ghost ghost assigned cluther Oct 1, 2012
@cluther
Copy link
Member

cluther commented Oct 1, 2012

I just ran across an issue that would cause this behavior for clouds that had a total of zero public IPs, private IPs or secondary storage. I just published version 1.0.6 of the ZenPack with a fix for the issue.

@cluther cluther closed this as completed Oct 1, 2012
@caramels
Copy link

caramels commented Oct 6, 2012

many thanks !

@caramels
Copy link

caramels commented Oct 8, 2012

I had tested this zenpack but it was not work. The charts also didn't draw data out. I can send screen picture to you.

@cluther
Copy link
Member

cluther commented Oct 8, 2012

Please send whatever information you can. Most useful would be the details of any related events.

@samuelhsin
Copy link
Author

Hi Chet Luther, I catch show error picture from zenoss 4.2

  1. I found new zenpack 1.0.6 will generate two times charts in 'Host',
    'Cluster', 'Pod', 'Zone'.
  2. show data parsing error in zeneventd.log
  3. many charts also do not draw data out.

Please help me, many thanks.

Samuel Hsin

2012/10/8 Chet Luther [email protected]

Please send whatever information you can. Most useful would be the details
of any related events.


Reply to this email directly or view it on GitHubhttps://github.com//issues/10#issuecomment-9224753.

@samuelhsin
Copy link
Author

I already send error log to [email protected].

@samuelhsin
Copy link
Author

2012-10-09 10:35:36,169 INFO zen.eventd: Failed to process event, forward original raw event: {'status': 3, 'uuid': u'0183e9fa-11ba-11e2-a910-066e7c00003c', 'tags': [{'type': u'zenoss.device.device_class', 'uuid': [u'8af2804b-a429-453a-ba79-1706f3c96c25']}, {'type': u'zenoss.event.event_class', 'uuid': [u'5068c032-9f9d-4e07-9f6f-d347a971b9e5', u'437de5b8-7bf9-4465-927f-d6440b42fcce', u'c9283a04-f65a-476e-a96e-943d8cae560f']}], 'event_key': u'', 'actor': {'element_identifier': u'172.16.234.50', 'element_uuid': u'47f82ec8-d65d-470b-8568-c3c4dd5a9347', 'element_title': u'management', 'element_type_id': 1}, 'summary': u'\u6210\u529f\u6267\u884c \u5e94\u7528\u9759\u6001nat\u89c4\u5219. \u89c4\u5219 Id: 66', 'event_class_mapping_uuid': u'c9283a04-f65a-476e-a96e-943d8cae560f', 'monitor': u'localhost', 'agent': u'zencommand', 'created_time': 1349750082000L, 'details': [{'name': u'cloudstack_type', 'value': [u'NET.RULEADD']}, {'name': u'cloudstack_domain', 'value': [u'TCloudPublic']}, {'name': u'cloudstack_state', 'value': [u'Completed']}, {'name': u'manager', 'value': [u'localhost.localdomain']}, {'name': u'cloudstack_account', 'value': [u'hetao_li']}, {'name': u'cloudstack_username', 'value': [u'hetao_li']}, {'name': u'zenoss.device.ip_address', 'value': [u'172.16.234.50']}, {'name': u'zenoss.device.production_state', 'value': [u'1000']}, {'name': u'zenoss.device.priority', 'value': [u'3']}, {'name': u'zenoss.device.device_class', 'value': [u'/CloudStack']}, {'name': u'eventClassMapping', 'value': [u'/App/CloudStack/cloudstack_event']}], 'event_class_key': u'cloudstack_event', 'message': u'\u6210\u529f\u6267\u884c \u5e94\u7528\u9759\u6001nat\u89c4\u5219. \u89c4\u5219 Id: 66', 'event_class': u'/App/CloudStack', 'severity': 2}
2012-10-09 10:35:36,169 ERROR zen.eventd: '172.16.234.50||/App/CloudStack|2|\xe6\x88\x90\xe5\x8a\x9f\xe6\x89\xa7\xe8\xa1\x8c \xe5\xba\x94\xe7\x94\xa8\xe9\x9d\x99\xe6\x80\x81nat\xe8\xa7\x84\xe5\x88\x99. \xe8\xa7\x84\xe5\x88\x99 Id: 66' has type str, but isn't in 7-bit ASCII encoding. Non-ASCII strings must be converted to unicode objects before being added.
Traceback (most recent call last):
File "/opt/zenoss/Products/ZenEvents/zeneventd.py", line 107, in processMessage
eventContext = pipe(eventContext)
File "/opt/zenoss/Products/ZenEvents/events2/processing.py", line 673, in call
eventContext.eventProxy.dedupid = '|'.join(dedupIdList)
File "/opt/zenoss/Products/ZenEvents/events2/proxy.py", line 476, in setattr
object.setattr(self, name, value)
File "/opt/zenoss/Products/ZenEvents/events2/proxy.py", line 351, in dedupid
self._event.set(EventField.FINGERPRINT, val)
File "/opt/zenoss/Products/ZenEvents/events2/proxy.py", line 212, in set
setattr(self.dict['_pb'], key, value)
File "/opt/zenoss/lib/python/google/protobuf/internal/cpp_message.py", line 83, in Setter
self._cmsg.SetScalar(cdescriptor, value)
ValueError: '172.16.234.50||/App/CloudStack|2|\xe6\x88\x90\xe5\x8a\x9f\xe6\x89\xa7\xe8\xa1\x8c \xe5\xba\x94\xe7\x94\xa8\xe9\x9d\x99\xe6\x80\x81nat\xe8\xa7\x84\xe5\x88\x99. \xe8\xa7\x84\xe5\x88\x99 Id: 66' has type str, but isn't in 7-bit ASCII encoding. Non-ASCII strings must be converted to unicode objects before being added.
2012-10-09 10:35:36,179 INFO zen.eventd: Failed to process event, forward original raw event: {'status': 3, 'uuid': u'01848978-11ba-11e2-a910-066e7c00003c', 'tags': [{'type': u'zenoss.device.device_class', 'uuid': [u'8af2804b-a429-453a-ba79-1706f3c96c25']}, {'type': u'zenoss.event.event_class', 'uuid': [u'5068c032-9f9d-4e07-9f6f-d347a971b9e5', u'437de5b8-7bf9-4465-927f-d6440b42fcce', u'c9283a04-f65a-476e-a96e-943d8cae560f']}], 'event_key': u'', 'actor': {'element_identifier': u'172.16.234.50', 'element_uuid': u'47f82ec8-d65d-470b-8568-c3c4dd5a9347', 'element_title': u'management', 'element_type_id': 1}, 'summary': u'\u542f\u52a8\u4efb\u52a1 \u5e94\u7528\u9759\u6001nat\u89c4\u5219. \u89c4\u5219 Id: 66', 'event_class_mapping_uuid': u'c9283a04-f65a-476e-a96e-943d8cae560f', 'monitor': u'localhost', 'agent': u'zencommand', 'created_time': 1349750081000L, 'details': [{'name': u'cloudstack_type', 'value': [u'NET.RULEADD']}, {'name': u'cloudstack_domain', 'value': [u'TCloudPublic']}, {'name': u'cloudstack_state', 'value': [u'Started']}, {'name': u'manager', 'value': [u'localhost.localdomain']}, {'name': u'cloudstack_account', 'value': [u'hetao_li']}, {'name': u'cloudstack_username', 'value': [u'hetao_li']}, {'name': u'zenoss.device.ip_address', 'value': [u'172.16.234.50']}, {'name': u'zenoss.device.production_state', 'value': [u'1000']}, {'name': u'zenoss.device.priority', 'value': [u'3']}, {'name': u'zenoss.device.device_class', 'value': [u'/CloudStack']}, {'name': u'eventClassMapping', 'value': [u'/App/CloudStack/cloudstack_event']}], 'event_class_key': u'cloudstack_event', 'message': u'\u542f\u52a8\u4efb\u52a1 \u5e94\u7528\u9759\u6001nat\u89c4\u5219. \u89c4\u5219 Id: 66', 'event_class': u'/App/CloudStack', 'severity': 2}
2012-10-09 10:35:36,180 ERROR zen.eventd: '172.16.234.50||/App/CloudStack|2|\xe5\x90\xaf\xe5\x8a\xa8\xe4\xbb\xbb\xe5\x8a\xa1 \xe5\xba\x94\xe7\x94\xa8\xe9\x9d\x99\xe6\x80\x81nat\xe8\xa7\x84\xe5\x88\x99. \xe8\xa7\x84\xe5\x88\x99 Id: 66' has type str, but isn't in 7-bit ASCII encoding. Non-ASCII strings must be converted to unicode objects before being added.
Traceback (most recent call last):
File "/opt/zenoss/Products/ZenEvents/zeneventd.py", line 107, in processMessage
eventContext = pipe(eventContext)
File "/opt/zenoss/Products/ZenEvents/events2/processing.py", line 673, in call
eventContext.eventProxy.dedupid = '|'.join(dedupIdList)
File "/opt/zenoss/Products/ZenEvents/events2/proxy.py", line 476, in setattr
object.setattr(self, name, value)
File "/opt/zenoss/Products/ZenEvents/events2/proxy.py", line 351, in dedupid
self._event.set(EventField.FINGERPRINT, val)
File "/opt/zenoss/Products/ZenEvents/events2/proxy.py", line 212, in set
setattr(self.dict['_pb'], key, value)
File "/opt/zenoss/lib/python/google/protobuf/internal/cpp_message.py", line 83, in Setter
self._cmsg.SetScalar(cdescriptor, value)
ValueError: '172.16.234.50||/App/CloudStack|2|\xe5\x90\xaf\xe5\x8a\xa8\xe4\xbb\xbb\xe5\x8a\xa1 \xe5\xba\x94\xe7\x94\xa8\xe9\x9d\x99\xe6\x80\x81nat\xe8\xa7\x84\xe5\x88\x99. \xe8\xa7\x84\xe5\x88\x99 Id: 66' has type str, but isn't in 7-bit ASCII encoding. Non-ASCII strings must be converted to unicode objects before being added.

2012-10-09 10:36:41,405 INFO zen.maintenance: Performing periodic maintenance

@cluther
Copy link
Member

cluther commented Oct 12, 2012

I'm reopening this issue because my original comment was wrong. This looks like a problem with not properly handling unicode event messages.

@cluther cluther reopened this Oct 12, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants