jasonmcintosh / rabbitmq-zabbix

Zabbix RabbitMQ Configuration
Apache License 2.0
251 stars 168 forks source link

No data is seen on Zabbix #80

Closed asksubbu closed 6 years ago

asksubbu commented 7 years ago

Not able to see any data on Zabbix, only following error is shown, however when i execute the scripts locally on the rabbit mq server, it does work, what could be the reason?

Changed log level to debug and do not see any error.

Traceback (most recent call last): File "./api.py", line 285, in main() File "./api.py", line 280, in main print api.check_server(options.metric, options.node) File "./api.py", line 214, in check_server return self.call_api('overview').get('rabbitmq_version', 'None') File "./api.py", line 37, in call_api return json.loads(urllib2.build_opener(handler).open(url).read()) File "/usr/lib64/python2.7/urllib2.py", line 431, in open response = self._open(req, data) File "/usr/lib64/python2.7/urllib2.py", line 449, in _open '_open', req) File "/usr/lib64/python2.7/urllib2.py", line 409, in _call_chain result = func(*args) File "/usr/lib64/python2.7/urllib2.py", line 1244, in http_open return self.do_open(httplib.HTTPConnection, req) File "/usr/lib64/python2.7/urllib2.py", line 1214, in do_open raise URLError(err) urllib2.URLError: <urlopen error [Errno 13] Permission denied>

jasonmcintosh commented 7 years ago

"urlopen error [Errno 13] Permission denied" - this means likely your user doesn't have permissions on the rabbitmq server you're connecting to.

jasonmcintosh commented 7 years ago

Second piece of this - it's likely your ZABBIX user which doesn't have permissions or can't read a config file or similar. I usually su - to that user and run in that way. OH and if you're using the guest user it can ONLY access via localhost. Read the readme where it talks about a monitoring user.