cbstats to get cluster stats using sasl auth
hello, i'm using membase 1.8.0 with multiple memcached buckets using access control (SASL). I am able to view node stats using cbstats localhost:11210 all [bucketname] . however, when i try to view the cluster stats i am unable to do so. i am trying cbstats localhost:11211 all [bucketname] and it hangs. when i kill the process i get this message:
Stats '' are not available from the requested engine.
am i doing this incorrectly ?
i tried that unfortunately my version doesn't recognize those flags
-bash-3.2$ /opt/couchbase/bin/cbstats localhost:11211 all -b monitor -p test
usage: cbstats [options]
cbstats: error: no such option: -b
just got a 1.8.0 node installed - no flags, simply put the bucket name and then the password after all.
bucket name: phong
bucket pass: 1234
[root@cb5 bin]# ./cbstats localhost:11211 all phong 1234
a little more info on what i just tried and discovered. i installed 1.8.0 on one node and created 5 buckets, cbstats worked for port 11210 and 11211. no issues found... however, when i installed 1.8.0 on another node and joined them, 11210 worked but 11211 stopped working. can you see if you have the same issue on your end ? i am using couchbase-server-enterprise_x86_64_1.8.0.rpm md5sum c83d21bf8585bf7a44cbc4872bb08b7b
Hey Phong,
We're using the exact same package. I may not have enough nodes left to test this today. That sounds slightly weird, the moxi on the newest node should be able to connect and gather stats for you just as it should be able to direct traffic to any node.
-Alex.
Interesting information. I like your topic. Thanks for sharing it.
testking free latest dumps and braindumps
ccie lab dumps practice test
ccie workbook practice test
ccie voice bootcamp practice test
Hey Phong,
I have a test running on my lab cluster now thats 2.0 so I dont have a 2.0 specific example - but I just gave this a try and it works fine.
There are two options that you may need to specify:
-b 'bucket name'
-p 'bucket password'
[root@cb1 bin]# ./cbstats localhost:11211 all -b apptest1
Authentication error for apptest1
[root@cb1 bin]# ./cbstats localhost:11211 all apptest1
Too many args, given ['apptest1'], but expected a maximum of 0
[root@cb1 bin]# ./cbstats localhost:11211 all -b apptest1 -p 1234 | wc -l
274
let me know if that helps.
thanks
-Alex