Skip to content

Instantly share code, notes, and snippets.

@darioblanco
Created May 30, 2018 08:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save darioblanco/7cd6b26e0877601e0f68b714755b92a7 to your computer and use it in GitHub Desktop.
Save darioblanco/7cd6b26e0877601e0f68b714755b92a7 to your computer and use it in GitHub Desktop.
Zookeeper check with remediation
{
"checks": {
"check-zookeeper-proc": {
"command": "/etc/sensu/plugins/check-procs.rb -p '/usr/share/java/zookeeper.jar'",
"interval": 60,
"occurrences": 2,
"handlers": ["default", "remediator"],
"subscribers": ["zookeeper"],
"standalone": false,
"remediation": {
"remediate-zookeeper-proc": {
"occurrences": [1, 3],
"severities": [2]
},
"trigger_on": ["zookeper"]
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment