Skip to content

Instantly share code, notes, and snippets.

@slackpad
Last active December 8, 2015 08:01
Show Gist options
  • Save slackpad/0ab061ab629f1bbdafa2 to your computer and use it in GitHub Desktop.
Save slackpad/0ab061ab629f1bbdafa2 to your computer and use it in GitHub Desktop.
Sample Consul check configurations from the Consul demo

disk.json

{
    "check": {
        "name": "Disk Util",
        "interval": "60s",
        "notes": "Critical 5%, warning 10% free",
        "script": "/usr/lib/nagios/plugins/check_disk -w 10% -c 5% -p /"
    }
}

load.json

{
    "check": {
        "name": "Load Avg",
        "interval": "30s",
        "notes": "Critical load average 2, warning load average 1",
        "script": "/usr/lib/nagios/plugins/check_load -w 1,1,1 -c 2,2,2"
    }
}

memory.json

{
    "check": {
        "name": "Memory Util",
        "interval": "30s",
        "notes": "Critical 95% util, warning 85% util",
        "script": "/usr/lib/nagios/plugins/check_mem -w 85% -c 95%"
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment