client configs append subscriptions


#1

All,

New to Senus here. Using 0.12 on CentOS 6.5

I am seeing something odd in that when I add clients, each time I add one, it appends any subscriptions to whatever was in the last added client, rather than replace it.

My configs:

from config.json:

—snip----

“client”: {

“name”: “localhost”,

“address”: “127.0.0.1”,

“subscriptions”: [

“test”

]

}

-----snip—

conf.d/client_node01.json:

···

=========================

{

“client”: {

“name”: “node01.vm.firstspot.net”,

“address”: “10.1.1.1”,

“subscriptions”: [ “testsub” ]

}

}

conf.d/client_www.json:

=========================

{

“client”: {

“name”: “www.vm.firstspot.net”,

“address”: “10.2.1.1”,

“subscriptions”: [ “webservers” ]

}

}

Output from redis-cli:

redis 127.0.0.1:6379> GET client:localhost

“{“name”:“localhost”,“address”:“127.0.0.1”,“subscriptions”:[“test”],“timestamp”:1395174799}”

redis 127.0.0.1:6379> GET client:node01.vm.firstspot.net

“{“name”:“node01.vm.firstspot.net”,“address”:“10.1.1.1”,“subscriptions”:[“test”,“testsub”],“timestamp”:1395174878}”

redis 127.0.0.1:6379> GET client:www.vm.firstspot.net

“{“name”:“www.vm.firstspot.net”,“address”:“10.2.1.1”,“subscriptions”:[“test”,“testsub”,“webservers”],“timestamp”:1395176279}”

Obviously this would not be manageable quickly. Is there something in client configs that I am doing wrong here? I have tried flushing the db in redis, deleting/recreating the vhost in RabbitMQ, restarting all the services…

Thanks in advance,

Brian Andrus


#2