ZABBIX Forums  
  #11  
Old 24-07-2014, 19:18
rchannel rchannel is offline
Junior Member
 
Join Date: Apr 2014
Posts: 5
Default Add request

So figured out all my earlier issues. But would love to get this added:
/api/aliveness-test/vhost

Just a hopeful.
Reply With Quote
  #12  
Old 18-08-2014, 10:55
pskittz pskittz is offline
Junior Member
 
Join Date: Aug 2014
Posts: 1
Unhappy HTTPError: HTTP Error 401: Unauthorized

Hi!

Been trying to configure zabbix to monitor rabbitmq queues. I stumbled upon the same issue as mentioned above. I created the file but I still get the same error.

[root@my-server scripts]# ll .rab.auth
-rwxr-xr-x. 1 zabbix zabbix 209 Aug 18 07:17 .rab.auth
[root@my-server scripts]#


[root@my-server scripts]# pwd
/etc/zabbix/scripts

[root@my-server scripts]# cat .rab.auth
USERNAME=guest
PASSWORD=guest
CONF=/etc/zabbix/zabbix_agentd.conf

FILTER='[{"Inbound Queue" : "inbound.queue"}, {"Outbound Queue" : "outbound.queue"}, {"Not Outgoing Routable" : "notoutgoing.queue"}]'

Error
------

[root@my-server rabbitmq]# ./list_rabbit_queues.sh
./list_rabbit_queues.sh: line 11: .rab.auth: No such file or directory
Traceback (most recent call last):
File "./api.py", line 185, in <module>
main()
File "./api.py", line 168, in main
print json.dumps({'data': api.list_queues(filters)})
File "./api.py", line 42, in list_queues
for queue in self.call_api('queues'):
File "./api.py", line 32, in call_api
return json.loads(urllib2.build_opener(handler).open(url) .read())
File "/usr/lib64/python2.6/urllib2.py", line 397, in open
response = meth(req, response)
File "/usr/lib64/python2.6/urllib2.py", line 510, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib64/python2.6/urllib2.py", line 429, in error
result = self._call_chain(*args)
File "/usr/lib64/python2.6/urllib2.py", line 369, in _call_chain
result = func(*args)
File "/usr/lib64/python2.6/urllib2.py", line 880, in http_error_401
url, req, headers)
File "/usr/lib64/python2.6/urllib2.py", line 858, in http_error_auth_reqed
return self.retry_http_basic_auth(host, req, realm)
File "/usr/lib64/python2.6/urllib2.py", line 868, in retry_http_basic_auth
return self.parent.open(req, timeout=req.timeout)
File "/usr/lib64/python2.6/urllib2.py", line 397, in open
response = meth(req, response)
File "/usr/lib64/python2.6/urllib2.py", line 510, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib64/python2.6/urllib2.py", line 435, in error
return self._call_chain(*args)
File "/usr/lib64/python2.6/urllib2.py", line 369, in _call_chain
result = func(*args)
File "/usr/lib64/python2.6/urllib2.py", line 518, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
urllib2.HTTPError: HTTP Error 401: Unauthorized
[root@my-server rabbitmq]# cd ../

The other issue is, I have installed zabbix_sender and the zabbix-rabbitmq.conf is configured correctly but when I restart the zabbix_agentd nothing in regards to the zabbix_rabbitmq is logged on the zabbix_agentd log. What I'm I missing?
Reply With Quote
  #13  
Old 15-10-2014, 18:21
rmsys rmsys is offline
Junior Member
 
Join Date: Jul 2013
Posts: 12
Default urllib2.HTTPError: HTTP Error 401: Unauthorized

I'm with the same error.
Reply With Quote
  #14  
Old 21-10-2014, 19:03
kamill kamill is offline
Junior Member
 
Join Date: Oct 2014
Posts: 1
Default

Answer in first line - ./list_rabbit_queues.sh: line 11: .rab.auth: No such file or directory.
File .rab.auth must be in same folder with list_rabbit_queues.sh, by default in /etc/zabbix/scripts/rabbitmq/.rab.auth
Reply With Quote
  #15  
Old 28-04-2015, 14:37
marty.fox marty.fox is offline
Junior Member
 
Join Date: Feb 2015
Posts: 4
Default Cant see queue data

Hi All,

I have been trying to configure this plugin and have followed the advice on this thread but I still receive the same error as above (except i dont get "./list_rabbit_queues.sh: line 11: .rab.auth: No such file or directory" just the traceback error)

The .rab.auth file is in the /scripts/rabbitmq/ folder and i have given it 777 access (and I have tried both root and zabbix as owner) just to make sure that wasn't the issue but still nothing.

Any tips on what i could be doing wrong?

Thanks
Marty

Last edited by marty.fox; 28-04-2015 at 14:44.
Reply With Quote
  #16  
Old 17-07-2015, 23:26
innocent innocent is offline
Junior Member
 
Join Date: Dec 2012
Posts: 12
Default

I have this working when using http but not when I use rabbitmq in ssl_only mode. With https I get error: 111 Connection refused.

This does work

curl -i -u guest:guest https://localhost:15671/api/vhosts --insecure

But https in api.py instead of http and port 15671 instead of 15672 in .rab.auth gives me the 111 error.

Last edited by innocent; 18-07-2015 at 00:17.
Reply With Quote
  #17  
Old 09-06-2016, 21:24
nick0909 nick0909 is offline
Member
 
Join Date: Apr 2013
Posts: 73
Default

Most of this seems to work great, however I am having a problem with the Partitions item. It always returns 'not found' from api.py and I can't figure out why right now. Does anyone have this item working?
Reply With Quote
  #18  
Old 23-11-2016, 17:09
kaloyan.s kaloyan.s is offline
Junior Member
 
Join Date: Nov 2016
Posts: 3
Default

The same here as well.
Reply With Quote
  #19  
Old 10-11-2017, 08:06
deepaksharma171191 deepaksharma171191 is offline
Junior Member
 
Join Date: Nov 2017
Posts: 1
Smile

Quote:
Originally Posted by mcintoshj View Post
I've updated this template to v2. The update uses zabbix_sender to push data back to zabbix, has some updated discovery and triggers, numerous other fixes, simplified python, etc.
Hi mcintoshj,

I am using scripts for monitoring RabbitMQ. Everything is working fine, but I am looking for something where I can have customized triggers for a specific queue. I had tried by cloning current api.py and list_queues.sh scripts and updating them so that I can modify the item key variables in the template. But its throwing "Unsupported item key" error. Can you provide some comments so that I can have a separate item key for my defined queue and for which I can have customized trigger. Or any other solution will be helpful.

Hi Friends,

If you have any suggestions kindly share the same.

Thanks in advance...
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 19:33.