Skip to content

Instantly share code, notes, and snippets.

@silviabotros
Created November 10, 2015 17:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save silviabotros/b5106796352a55573b4a to your computer and use it in GitHub Desktop.
Save silviabotros/b5106796352a55573b4a to your computer and use it in GitHub Desktop.
{
"checks": {
"add_table_partitions": {
"command": "/usr/local/pdb/bin/pdb-parted --add --interval m +7m.startof h=localhost,u=specialdbuser,p=:::redacted_partition_password:::,D=mydb,t=special_table >> /var/log/partition_rotation.log 2>&1",
"handlers": [
"default_handler",
"special_dba_handler"
],
"standalone": true,
"interval": 86400,
"occurrences": 3,
"notification": "hostname failed adding partitions to special table. See log file in /var/log/partition_rotation.log"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment