We get errors as follows when we try to manually run the .sh scripts as a test:
./list_rabbit_nodes.sh
Traceback (most recent call last):
File "./api.py", line 285, in
main()
File "./api.py", line 266, in main
print json.dumps({'data': api.list_nodes()})
File "./api.py", line 91, in list_nodes
for node in self.call_api('nodes'):
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 111] Connection refused>
We have also tried adding hsotname as localhost, hostname.xxx.com, hostname itself and all get the same issue. Can you help us with our configuration?
We have configured the plugin on a server running rabbitmq. We have added a user to rabbit and our .rab.auth file looks as follows:
USERNAME=zabbix PASSWORD=XXXX LOGFILE=/var/log/zabbix/rabbitmq_zabbix.log LOGLEVEL=INFO PORT=15672
We get errors as follows when we try to manually run the .sh scripts as a test:
./list_rabbit_nodes.sh Traceback (most recent call last): File "./api.py", line 285, in
main()
File "./api.py", line 266, in main
print json.dumps({'data': api.list_nodes()})
File "./api.py", line 91, in list_nodes
for node in self.call_api('nodes'):
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 111] Connection refused>
We have also tried adding hsotname as localhost, hostname.xxx.com, hostname itself and all get the same issue. Can you help us with our configuration?