Skip to content

Instantly share code, notes, and snippets.

@Rudd-O
Created December 12, 2011 23:46
Show Gist options
  • Save Rudd-O/1469695 to your computer and use it in GitHub Desktop.
Save Rudd-O/1469695 to your computer and use it in GitHub Desktop.
monitoring.json config file example (for role webservers)
{
"checks": {
"Test Web server is alive": {
"command": "check_http",
"subscribers": [
"webservers"
],
"interval": 30
},
"Test Web server is not delivering garbage": {
"command": "check_http for='It worked!'",
"subscribers": [
"webservers"
],
"interval": 60,
"runbook": "http://some/url"
},
},
}
@Rudd-O
Copy link
Author

Rudd-O commented Dec 12, 2011

the client in this case would only execute the first and second checks.

@Rudd-O
Copy link
Author

Rudd-O commented Dec 12, 2011

the fourth check says "all", clients who want to subscribe to that check must say "all".

this means I need intelligent logic to merge the "all" checks, or something.

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