Created
November 10, 2015 17:30
-
-
Save silviabotros/98acd9bdf6e5eb987838 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sensu_check 'add_table_partitions' do | |
command "/usr/local/pdb/bin/pdb-parted --add --interval d +7d.startof h=localhost,u=specialdbuser,p=:::redacted_partition_password:::,D=mydb,t=special_table >> /var/log/partition_rotation.log 2>&1" | |
handlers %w(default_handler special_dba_handler) | |
interval 86400 | |
standalone true | |
additional(:occurrences => 3, :notification => "#{node['hostname']} failed adding partitions to important table. See log file in /var/log/mail_send_cancel_pause.log") | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment