OneSourceConsult / ZabbixCeilometer-Proxy

Integration between OpenStack's Ceilometer resources and a Zabbix monitoring system
Apache License 2.0
8 stars 24 forks source link

Piki to rabbitmq problem #5

Open wojtekeo opened 9 years ago

wojtekeo commented 9 years ago

Hi, I have a problem whit accessing to rabbitmq

Exception in thread Thread-1: Traceback (most recent call last): File "/usr/lib64/python2.7/threading.py", line 811, in bootstrap_inner self.run() File "/usr/lib64/python2.7/threading.py", line 764, in run self.__target(_self.args, _self.__kwargs) File "/root/zcp/ZabbixCeilometer-Proxy-master/project_handler.py", line 43, in keystone_amq channel.queue_bind(exchange='openstack', queue=queue_name, routing_key='notifications.#') File "/usr/lib/python2.7/site-packages/pika/adapters/blocking_connection.py", line 877, in queue_bind None, replies) File "/usr/lib/python2.7/site-packages/pika/adapters/blocking_connection.py", line 1141, in _rpc self._wait_on_response(method_frame)) File "/usr/lib/python2.7/site-packages/pika/adapters/blocking_connection.py", line 1162, in _send_method self.connection.process_data_events() File "/usr/lib/python2.7/site-packages/pika/adapters/blocking_connection.py", line 240, in process_data_events if self._handle_read(): File "/usr/lib/python2.7/site-packages/pika/adapters/blocking_connection.py", line 348, in _handle_read super(BlockingConnection, self)._handle_read() File "/usr/lib/python2.7/site-packages/pika/adapters/base_connection.py", line 351, in _handle_read self._on_data_available(data) File "/usr/lib/python2.7/site-packages/pika/connection.py", line 1285, in _on_data_available self._process_frame(frame_value) File "/usr/lib/python2.7/site-packages/pika/connection.py", line 1352, in _process_frame if self._process_callbacks(frame_value): File "/usr/lib/python2.7/site-packages/pika/connection.py", line 1322, in _process_callbacks frame_value) # Args File "/usr/lib/python2.7/site-packages/pika/callback.py", line 61, in wrapper return function(_tuple(args), _kwargs) File "/usr/lib/python2.7/site-packages/pika/callback.py", line 92, in wrapper return function(_args, _kwargs) File "/usr/lib/python2.7/site-packages/pika/callback.py", line 232, in process callback(_args, _keywords) File "/usr/lib/python2.7/site-packages/pika/adapters/blocking_connection.py", line 1059, in _on_close method_frame.method.reply_text) ChannelClosed: (404, "NOT_FOUND - no exchange 'openstack' in vhost '/'")

grep notification_driver /etc/keystone/keystone.conf

notification_driver=keystone.openstack.common.notifier.rpc_notifier

in zabbix proxy is available, but it's not collecting data.

ducnc commented 8 years ago

In Kilo, It has some changes about types of message in RabbitMQ. So the program can't work well.

I created a pull request to fix this problem, so you can try it: https://github.com/OneSourceConsult/ZabbixCeilometer-Proxy/pull/6