#
# Cookbook Name:: wt_monitoring
# Recipe:: email_heartbeat
#
# Copyright 2012, Webtrends
#
# All rights reserved - Do Not Redistribute
#
# This recipe is used to send a heartbeat e-mail to the admin e-mail address every 4 hours
#

cron "email_heartbeat" do
  hour "*/6"
  command "echo \"At the tone the time will be $(date \\+\\%k:\\%M) on $(date \\+\\%Y-\\%m-\\%d)\" | /bin/mail -s \"Nagios 4hr Heartbeat - $(date \\+\\%k:\\%M)\" #{node['wt_common']['admin_email']}"
end
#
# Cookbook Name:: wt_monitoring
# Recipe:: email_heartbeat
#
# Copyright 2012, Webtrends
#
# All rights reserved - Do Not Redistribute
#
# This recipe is used to send a heartbeat e-mail to the admin e-mail address every 4 hours
#

cron "email_heartbeat" do
  minute "0"
  hour "*/6"
  command "echo \"At the tone the time will be $(date \\+\\%k:\\%M) on $(date \\+\\%Y-\\%m-\\%d)\" | /bin/mail -s \"Nagios 4hr Heartbeat - $(date \\+\\%k:\\%M)\" #{node['wt_common']['admin_email']}"
end
Define the minute to run on the first minute of the hour only
Define the minute to run on the first minute of the hour only


Former-commit-id: 54d8cbfaa60951eb18b1f787e0c968b98d329100 [formerly 13f10dd83f17911e46a5871e1a08f35b2dafe861] [formerly 436054e333c925cbf302bd686741cfcb6b6cbc40 [formerly 006ecf01b269ed03d7081f515099b95874c02ed2]]
Former-commit-id: 4f56a043fccacac41398858bd0ab001b3e974e78 [formerly c6c84bf405bbb38514be2654f81e44862a461982]
Former-commit-id: 196219dc4f49813fa3b2bd85b11e5eec46115c52