项目作者: sensu-plugins

项目描述 :
Sensu Zookeeper Plugins
高级语言: Ruby
项目地址: git://github.com/sensu-plugins/sensu-plugins-zookeeper.git
创建时间: 2015-03-11T13:34:55Z
项目社区:https://github.com/sensu-plugins/sensu-plugins-zookeeper

开源协议:MIT License

下载


Sensu-Plugins-Zookeeper

Build Status
Gem Version
Code Climate
Test Coverage
Dependency Status
Sensu Bonsai Asset

Sensu Asset

The Sensu assets packaged from this repository are built against the Sensu Ruby runtime environment. When using these assets as part of a Sensu Go resource (check, mutator or handler), make sure you include the corresponding Sensu Ruby runtime asset in the list of assets needed by the resource. The current ruby-runtime assets can be found here in the Bonsai Asset Index.

Functionality

Files

  • check-znode.rb - Check if zookeeper znode exists and optionally match its contents
  • check-zookeeper-file-descriptors.rb - Check if Zookeeper has normal opened file descriptors rate
  • check-zookeeper-latency.rb - Check average latency on Zookeeper node
  • check-zookeeper-reqs.rb - Check if Zookeeper node has reliable number of outstanding requests
  • check-zookeeper-ruok.rb - Check if Zookeeper node responds to ‘ruok’ query succesfully
  • check-zookeeper-mode.rb - Check if Zookeeper node is in standalone or cluster(leader or follower) mode
  • check-zookeeper-cluster.rb - Check if a exhibitor managed Zookeeper cluster is OK.
  • check-netty-zookeeper-cluster.rb - Check if a zookeeper 3.5 cluster is OK.
  • metrics-zookeeper.rb - Gather metrics from Zookeeper
  • metrics-zookeeper-cluster.rb - Gather metrics from An Exhibitor run Zookeeper cluster

Usage

  1. $ check-znode.rb --help
  2. Usage: ./bin/check-znode.rb (options)
  3. -v, --check_value REGEX Optionally check the znode value against a regex
  4. -s, --servers zk-address zk address to connect to (required)
  5. -z, --znode ZNODE znode to check (required)
  1. $ check-zookeeper-file-descriptors.rb --help
  2. Usage: ./bin/check-zookeeper-file-descriptors.rb (options)
  3. -d DESCRIPTORS, Critical threshold for Zookeeper open files descriptors
  4. --file-descriptors
  5. -p, --port PORT Zookeeper port to connect to.
  6. -s, --server HOSTNAME Zookeeper hostname to connect to.
  7. -t, --timeout SECS How long to wait for a reply in seconds.
  1. $ check-zookeeper-cluster.rb --help
  2. Usage: ./bin/check-zookeeper-cluster.rb (options)
  3. -c, --count count Zookeeper cluster node count
  4. -e, --exhibitor status end point exhibitor end node for status checks
  5. -l, --latency TICKS Critical threshold for Zookeeper average latency
  6. -t, --timeout SECS How long to wait for a reply in seconds.
  7. -p, --port port Zookeeper nodes' listen port
  1. $ check-netty-zookeeper-cluster.rb --help
  2. Usage: ./bin/check-netty-zookeeper-cluster.rb (options)
  3. -c, --count count Zookeeper cluster follower count
  4. -l, --latency TICKS Critical threshold for Zookeeper average latency
  5. -p, --port port Zookeeper nodes' listen port
  1. $ metrics-zookeeper.rb --help
  2. Usage: ./bin/metrics-zookeeper.rb (options)
  3. --host HOST ZooKeeper host
  4. --port PORT ZooKeeper port
  5. --scheme SCHEME Metric naming scheme, text to prepend to metrics
  1. $ metrics-zookeeper-cluster.rb --help
  2. Usage: ./bin/metrics-zookeeper-cluster.rb (options)
  3. -e, --exhibitor status end point exhibitor end node for status checks
  4. --scheme SCHEME Metric naming scheme, text to prepend to metrics
  5. -p, --port port Zookeeper nodes' listen port
  1. $ check-zookeeper-ruok.rb --help
  2. Usage: ./bin/check-zookeeper-ruok.rb (options)
  3. -p, --port PORT Zookeeper port to connect to.
  4. -s, --server HOSTNAME Zookeeper hostname to connect to.
  5. -t, --timeout SECS How long to wait for a reply in seconds.
  1. $ check-zookeeper-reqs.rb --help
  2. Usage: ./bin/check-zookeeper-reqs.rb (options)
  3. -r, --reqs REQS Critical threshold for Zookeeper outstanding requests
  4. -p, --port PORT Zookeeper port to connect to.
  5. -s, --server HOSTNAME Zookeeper hostname to connect to.
  6. -t, --timeout SECS How long to wait for a reply in seconds.
  1. $ check-zookeeper-mode.rb --help
  2. Usage check-zookeeper-mode.rb (options)
  3. -m, --mode MODE Space separated expected modes. (required)
  4. -p, --port PORT Zookeeper port to connect to.
  5. -s, --server HOSTNAME Zookeeper hostname to connect to.
  6. -t, --timeout SECS How long to wait for a reply in seconds.
  1. $ check-zookeeper-latency.rb --help
  2. Usage: ./bin/check-zookeeper-latency.rb (options)
  3. -l, --latency TICKS Critical threshold for Zookeeper average latency
  4. -p, --port PORT Zookeeper port to connect to.
  5. -s, --server HOSTNAME Zookeeper hostname to connect to.
  6. -t, --timeout SECS How long to wait for a reply in seconds.

Installation

Installation and Setup

Notes