Skip to content

Instantly share code, notes, and snippets.

View slackpad's full-sized avatar

James Phillips slackpad

View GitHub Profile
{
"Name": "My-Test-Token",
"Type": "client",
"Rules": "
key \"\" { policy = \"read\" }
key \"web/\" { policy = \"write\" }
key \"web/key1\" { policy = \"deny\" }
service \"\" { policy = \"write\" }
service \"secure-\" { policy = \"read\" }
event \"\" { policy = \"write\" }
{
"check": {
"name": "Disk Util",
"interval": "60s",
"notes": "Critical 5%, warning 10% free",
"script": "/usr/lib/nagios/plugins/check_disk -w 10% -c 5% -p /"
}
}
{
@slackpad
slackpad / demo_checks.md
Last active December 8, 2015 08:01
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 /"
    }
}

Keybase proof

I hereby claim:

  • I am slackpad on github.
  • I am slackpad (https://keybase.io/slackpad) on keybase.
  • I have a public key whose fingerprint is 341A 925E B454 13DF AC9C A866 7718 3E68 2AC5 FC11

To claim this, I am signing this object: