<commit_before>#
# 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<commit_msg>Define the minute to run on the first minute of the hour only<commit_after>#
# 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
{'fraction_non_alphanumeric': 0.18250235183443086, 'fraction_numerical': 0.014111006585136407, 'mean_word_length': 3.4894514767932487, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3515148', 'n_tokens_mistral': 400, 'n_tokens_neox': 370, 'n_words': 133}