Skip to content

Instantly share code, notes, and snippets.

@seth-paxton
Forked from nstielau/check_with_remediation.json
Last active August 29, 2015 14:07
Show Gist options
  • Save seth-paxton/0ffe1b1152ce5b56e678 to your computer and use it in GitHub Desktop.
Save seth-paxton/0ffe1b1152ce5b56e678 to your computer and use it in GitHub Desktop.
{
"checks": {
"check_something": {
"command": "ps aux | grep cron",
"interval": 60,
"subscribers": ["application_server"],
"handlers": ["debug", "irc", "remediator"],
"remediation": {
"light_remediation": {
"occurrences": [1, 2],
"severities": [1]
},
"medium_remediation": {
"occurrences": ["3-10"],
"severities": [1]
},
"heavy_remediation": {
"occurrences": ["1+"],
"severities": [2]
}
}
},
"light_remediation": {
"command": "/bin/something",
"subscribers": [],
"handlers": ["debug", "irc"],
"publish": false
},
"medium_remediation": {
"command": "/bin/something_else",
"subscribers": [],
"handlers": ["debug", "irc"],
"publish": false
},
"heavy_remediation": {
"command": "sudo reboot",
"subscribers": [],
"handlers": ["debug", "irc"],
"publish": false
}
}
}
@seth-paxton
Copy link
Author

Removed commas from "publish" options.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment