jasonmcintosh / rabbitmq-zabbix

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

Name of a queue containing space and comma characters #96

Open leweafan opened 6 years ago

leweafan commented 6 years ago

We have a problem with zabbix sender if name of a queue containing space and comma characters like "Queue, Name". According to https://www.rabbitmq.com/queues.html it's allowed.

According to https://www.zabbix.com/documentation/3.4/manpages/zabbix_sender

Double-quote and backslash characters inside quoted entry must be escaped with a backslash.

Can you add a fix for this problem?

jasonmcintosh commented 6 years ago

I don't spend a huge amount of time on Zabbix/RabbitMQ right now - shouldn't be SUPER hard to do this kinda thing though. Just have to do the conversion on both sides I believe - api.py can be updated to convert the queue names to url encoded or spaced or similar. Probably pretty easy to write tests for these cases as well.

If you want to work and add support & tests for this, feel free. Otherwise, it's likely to be a bit of time before I'd be able to add any kind of support here - just too much else going on :(