#
# 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
Create a 4 hour heartbeat e-mail recipe in wt_monitoring that goes to the admin_email in wt_common
Create a 4 hour heartbeat e-mail recipe in wt_monitoring that goes to the admin_email in wt_common


Former-commit-id: b0d2ac99aaf1b147d689b37205ec0b4467340c2e [formerly acd53badb692d131427c04eda2f0e3ad4ff503dc] [formerly ac69e488174a0f954bd1789ac6562e4055555fde [formerly bba87f7ee63505ca3ab8013414652838acf02b5c [formerly 710b309e049f64a32c38e14e24b5f6d6becca644]]]
Former-commit-id: f6962f7a3a0e19d81ffc04ad86deca7077e79f2c [formerly 4e0cf1137bb4ec23069fc21e13f930bdb2cb9eaf]
Former-commit-id: be0f0cbf69e3263674b9fc5a745ac9c3a56e2122
Former-commit-id: 53cc7476b0a58016ff203dcd4f15240961f5f59b