#
# 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
  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
Tweak the cron job for the nagios heartbeat
Tweak the cron job for the nagios heartbeat


Former-commit-id: f1df6c478f62b9bf6f2526c176ef225d07b2c863 [formerly 2f27ef241098d754005e40498259303876d2497c] [formerly 972bf819f651da59f633e2e82084dc136fd48692 [formerly a1d0fa0644b4cd0ffb88e7361a1adbbbb8b24612 [formerly 96715a01d89bf33118d1bb395a5329cf24d13c45]]]
Former-commit-id: 3e05ca9892187769f98a2efa39908e3f00ce5e59 [formerly 3f799a1eb91bf92deee6ac0dd4ebe61e72d83431]
Former-commit-id: cae7557f48258236b44022c1f46d20383afe0b09
Former-commit-id: bed18f8b4319e0492202653baaeae0fbce898850