Last active
January 7, 2018 14:11
-
-
Save jage/29e0b7e617467fcaaf51 to your computer and use it in GitHub Desktop.
Consul (Nagios) compatible script to check ZooKeeper node
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
test "$(echo ruok | nc 127.0.0.1 2181)" = "imok" || $(exit 2) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment