Skip to content

Instantly share code, notes, and snippets.

@wakwanza
Created October 25, 2016 18:56
Show Gist options
  • Save wakwanza/1f745c7951cf86179c6dac4a97d7a903 to your computer and use it in GitHub Desktop.
Save wakwanza/1f745c7951cf86179c6dac4a97d7a903 to your computer and use it in GitHub Desktop.
consul system checks
{
"checks": [
{
"id": "memory-check",
"name": "mem",
"script": "/usr/lib64/nagios/plugins/check_used_mem",
"interval": "30s"
},
{
"id": "cpu-check",
"name": "cpu",
"script": "/usr/lib64/nagios/plugins/check_cpu 20 10",
"interval": "20s"
},
{
"id": "disk-check",
"name": "disk",
"script": "/usr/lib64/nagios/plugins/check_disk -w 10% -c 5% -A -I '/archive/*' ",
"interval": "12s"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment