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