jasonmcintosh / rabbitmq-zabbix

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

No data return ,INFO: Found return code of 0 #105

Open huangyonghome opened 5 years ago

huangyonghome commented 5 years ago

HI

My Zabbix discovered all queues and items . But no any data displayed on Zabbix.

I check tail -f /var/log/zabbix-agent/rabbitmq_zabbix.log log file :

2019-05-31 11:04:40,040 INFO: Found return code of 0

I modified the log level to "DEBUG" in .rab.auth file. The log file repeatedly issued below message:

2019-05-31 14:12:15,354 DEBUG: Started trying to process data

2019-05-31 14:12:15,354 DEBUG: Issue a rabbit API call to get data on overview against hsq-mq-es-node1

2019-05-31 14:12:15,354 DEBUG: Full URL:http://hsq-mq-es-node1:15672/api/overview

2019-05-31 14:12:15,433 DEBUG: Started trying to process data

2019-05-31 14:12:15,434 DEBUG: Issue a rabbit API call to get data on overview against mq-es-node1

2019-05-31 14:12:15,434 DEBUG: Full URL:http://mq-es-node1:15672/api/overview

2019-05-31 14:12:15,486 DEBUG: Started trying to process data

2019-05-31 14:12:15,486 DEBUG: Issue a rabbit API call to get data on overview against mq-es-node1

2019-05-31 14:12:15,487 DEBUG: Full URL:http://mq-es-node1:15672/api/overview

2019-05-31 14:12:15,539 DEBUG: Started trying to process data

2019-05-31 14:12:15,540 DEBUG: Issue a rabbit API call to get data on nodes against mq-es-node1

2019-05-31 14:12:15,543 DEBUG: Full URL:http://mq-es-node1:15672/api/nodes

2019-05-31 14:12:15,549 DEBUG: Checking to see if node name mq-es-node1 is in rabbit@mq-es-node1 for item partitions found 2 nodes

2019-05-31 14:12:15,549 DEBUG: Got data from node mq-es-node1 of []

2019-05-31 14:12:15,589 DEBUG: Started trying to process data

2019-05-31 14:12:15,590 DEBUG: Issue a rabbit API call to get data on shovels against mq-es-node1

2019-05-31 14:12:15,590 DEBUG: Full URL:http://mq-es-node1:15672/api/shovels

Could you please help me ??

jasonmcintosh commented 5 years ago

SO you should be able to run the scripts by hand as a zabbix user. BUT key thing I see:

 Got data from node mq-es-node1 of []

Looks like when querying your node, it's not getting any data back. You can specify a host name if you want to target a different node (possibly incorrect naming?) I'd guess though a config issue or similar. You can also try hitting the rabbitmq management end points directly to validate what's coming back.

huangyonghome commented 5 years ago

@jasonmcintosh Thank you , I already managed to resolve this problem ... I followed the steps in issue #77 to filter specific queues that the name starts with string: "hsq". But i got no any data response from rabbitmq servers.(see logs above). Then I found there are additional codes need to change.(please refer to another issue #104 )