diff --git a/userparamter_couchbase.conf b/userparamter_couchbase.conf index 6283f46..e38ce7f 100644 --- a/userparamter_couchbase.conf +++ b/userparamter_couchbase.conf @@ -47,22 +47,22 @@ UserParameter=cb.strage.hdd.datapath[*],sudo /opt/couchbase/bin/couchbase-cli se UserParameter=cb.strage.hdd.indexpath[*],sudo /opt/couchbase/bin/couchbase-cli server-info -c 127.0.0.1:8091 -u $1 -p $2 | /usr/local/bin/jq ".storage.hdd[$3].index_path" | cut -d "\"" -f2 # bucket name -UserParameter=cb.bucket.name[*],/usr/bin/curl -s -u $1:$2 http://localhost:8091/pools/$3/buckets | /usr/local/bin/jq ".[0].name" | cut -d "\"" -f2 +UserParameter=cb.bucket.name[*],/usr/bin/curl -s -u $1:$2 http://localhost:8091/pools/default/buckets/$3 | /usr/local/bin/jq ".name" | cut -d "\"" -f2 # bucket type -UserParameter=cb.bucket.type[*],/usr/bin/curl -s -u $1:$2 http://localhost:8091/pools/$3/buckets | /usr/local/bin/jq ".[0].bucketType" | cut -d "\"" -f2 +UserParameter=cb.bucket.type[*],/usr/bin/curl -s -u $1:$2 http://localhost:8091/pools/default/buckets/$3 | /usr/local/bin/jq ".bucketType" | cut -d "\"" -f2 # bucket item count -UserParameter=cb.bucket.items[*],/usr/bin/curl -s -u $1:$2 http://localhost:8091/pools/$3/buckets | /usr/local/bin/jq ".[0].basicStats.itemCount" +UserParameter=cb.bucket.items[*],/usr/bin/curl -s -u $1:$2 http://localhost:8091/pools/default/buckets/$3 | /usr/local/bin/jq ".basicStats.itemCount" # bucket ops -UserParameter=cb.bucket.ops[*],/usr/bin/curl -s -u $1:$2 http://localhost:8091/pools/$3/buckets | /usr/local/bin/jq ".[0].basicStats.opsPerSec" +UserParameter=cb.bucket.ops[*],/usr/bin/curl -s -u $1:$2 http://localhost:8091/pools/default/buckets/$3 | /usr/local/bin/jq ".basicStats.opsPerSec" # bucket quota percent used -UserParameter=cb.bucket.quotapercent[*],/usr/bin/curl -s -u $1:$2 http://localhost:8091/pools/$3/buckets | /usr/local/bin/jq ".[0].basicStats.quotaPercentUsed" +UserParameter=cb.bucket.quotapercent[*],/usr/bin/curl -s -u $1:$2 http://localhost:8091/pools/default/buckets/$3 | /usr/local/bin/jq ".basicStats.quotaPercentUsed" # bucket size -UserParameter=cb.bucket.size[*],/usr/bin/curl -s -u $1:$2 http://localhost:8091/pools/$3/buckets | /usr/local/bin/jq ".[0].quota.ram" +UserParameter=cb.bucket.size[*],/usr/bin/curl -s -u $1:$2 http://localhost:8091/pools/default/buckets/$3 | /usr/local/bin/jq ".quota.ram" # cluster membership UserParameter=cb.cluster.membership[*],sudo /opt/couchbase/bin/couchbase-cli server-info -c 127.0.0.1:8091 -u $1 -p $2 | /usr/local/bin/jq ".clusterMembership" | cut -d "\"" -f2 diff --git a/zbx_couchbase_templates.xml b/zbx_couchbase_templates.xml index 141e222..8808f1a 100644 --- a/zbx_couchbase_templates.xml +++ b/zbx_couchbase_templates.xml @@ -1182,7 +1182,7 @@ - 100-{Template App Couchbasea:cb.bucket.quotapercent[{$USERNAME},{$PASSWORD},{$BUCKET}].last()}<70 + 100-{Template App Couchbasea:cb.bucket.quotapercent[{$USERNAME},{$PASSWORD},{$BUCKET}].last()}>70 Lack of free bucket quota warning on server {HOST.NAME} 0